diff --git a/dashmachine/static/css/global/dashmachine-theme.css b/dashmachine/static/css/global/dashmachine-theme.css index f8e3f5b..318e1d3 100644 --- a/dashmachine/static/css/global/dashmachine-theme.css +++ b/dashmachine/static/css/global/dashmachine-theme.css @@ -12,6 +12,7 @@ --theme-color-font-muted: rgba(44, 47, 58, 0.85); --theme-color-font-muted2: rgba(44, 47, 58, 0.65); --theme-warning: #f44336; + --theme-on-primary: #fff; } [data-theme="dark"] { --theme-background: #1c1c1c; @@ -43,27 +44,34 @@ } [data-accent="lightBlue"] { --theme-primary: #03a9f4; + --theme-on-primary: #2c2f3a; } [data-accent="cyan"] { --theme-primary: #00bcd4; + --theme-on-primary: #2c2f3a; } [data-accent="teal"] { --theme-primary: #009688; } [data-accent="green"] { --theme-primary: #4caf50; + --theme-on-primary: #2c2f3a; } [data-accent="lightGreen"] { --theme-primary: #8bc34a; + --theme-on-primary: #2c2f3a; } [data-accent="lime"] { --theme-primary: #cddc39; + --theme-on-primary: #2c2f3a; } [data-accent="yellow"] { --theme-primary: #ffeb3b; + --theme-on-primary: #2c2f3a; } [data-accent="amber"] { --theme-primary: #ffc107; + --theme-on-primary: #2c2f3a; } [data-accent="deepOrange"] { --theme-primary: #ff5722; @@ -73,6 +81,7 @@ } [data-accent="grey"] { --theme-primary: #9e9e9e; + --theme-on-primary: #2c2f3a; } [data-accent="blueGrey"] { --theme-primary: #607d8b; @@ -125,4 +134,10 @@ } .theme-surface-transparent1 { background: rgba(var(--theme-surface-rgb), 0.9) !important; +} +.theme-on-primary { + background-color: var(--theme-on-primary) !important; +} +.theme-on-primary-text { + color: var(--theme-on-primary) !important; } \ No newline at end of file diff --git a/dashmachine/static/css/global/dashmachine.css b/dashmachine/static/css/global/dashmachine.css index 439d717..e8c14b2 100644 --- a/dashmachine/static/css/global/dashmachine.css +++ b/dashmachine/static/css/global/dashmachine.css @@ -626,6 +626,15 @@ input:disabled { top: unset; bottom: 10px; } +.sidenav-active-rounded .sidenav li > a.active > i { + color: var(--theme-on-primary) !important; +} +.sidenav-active-rounded .sidenav li > a.active > span { + color: var(--theme-on-primary) !important; +} +.sidenav-active-rounded .sidenav li > a.active { + min-width: 3.6rem; +} .border-bottom-1 { border-bottom: 1px solid var(--theme-background); @@ -730,7 +739,7 @@ span.badge.new { } .icon-btn:hover { - color: white !important; + color: var(--theme-on-primary) !important; background-color: var(--theme-primary); border-radius: 24px; padding: 5px; diff --git a/dashmachine/templates/global_macros.html b/dashmachine/templates/global_macros.html index 979281c..b5b3d5b 100644 --- a/dashmachine/templates/global_macros.html +++ b/dashmachine/templates/global_macros.html @@ -52,7 +52,7 @@ icon=None, float="right", href=None )%} - - chevron_right + chevron_right diff --git a/dashmachine/templates/settings_system/files.html b/dashmachine/templates/settings_system/files.html index 49aec0a..b379fed 100644 --- a/dashmachine/templates/settings_system/files.html +++ b/dashmachine/templates/settings_system/files.html @@ -9,7 +9,7 @@