rstudio / shinydashboard

Shiny Dashboarding framework
https://rstudio.github.io/shinydashboard/
Other
885 stars 300 forks source link

Change dashboard Header colors #361

Open HeleneRoyo opened 3 years ago

HeleneRoyo commented 3 years ago

I want to change my dashboard header colors without using themes (because I am using a banner, a customized style for my shiny dashboard etc.). Currently my dashboard header is a thin empty one, still useful to hide or show the sidebar menu.

Example of code and header that needs customized colors:

dashboardHeader(
      titleWidth = 260, 
      tags$li(class = "dropdown",
              tags$style(".main-header {max-height: 20px}"),
              tags$style(".main-header .logo {height: 20px;}"),
              tags$style(".sidebar-toggle {height: 20px; padding-top: 1px !important;}"),
              tags$style(".navbar {min-height:20px !important}")
      )
      )

image

Would it be useful to have a color and background.color argument in the dashboardHeader function?

williamlai2 commented 2 years ago

Is this what you want?

tags$style(".skin-blue .main-header .navbar {background-color: green;}")
ismirsehregal commented 1 year ago

Check library(fresh).