Skip to content

Commit

Permalink
remove light mode secondary background color, define primary backgrou…
Browse files Browse the repository at this point in the history
…nd color in theme modes and inherit from that instead of navbar background
  • Loading branch information
Nerwyn committed Oct 22, 2024
1 parent 40f93bd commit 8d73034
Show file tree
Hide file tree
Showing 2 changed files with 85 additions and 92 deletions.
19 changes: 9 additions & 10 deletions src/material_rounded/theme.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,17 @@ Material Rounded:
secondary-text-color: rgb(138 140 153)
disabled-text-color: rgba(255, 255, 255, 0.5)
lovelace-background: rgb(19, 19, 20)
navbar-background: rgb(30, 31, 32)
secondary-background-color: rgb(55, 57, 59)
primary-background-color: rgb(30, 31, 32)
disabled-color: rgb(0, 0, 0)
input-background-color: rgb(46, 48, 56)
card-background-color: rgb(40, 42, 44)
state-inactive-color: rgb(72, 74, 78)
slider-color: rgb(8, 66, 160)
mdc-switch-checked-button-color: var(--accent-color)
mdc-switch-checked-track-color: var(--primary-color)
mdc-switch-unchecked-button-color: rgb(140, 144, 159)
mdc-switch-unchecked-track-color: rgb(65, 71, 83)
secondary-background-color: rgb(55, 57, 59) # dark mode only
state-inactive-color: rgb(72, 74, 78) # dark mode only

light:
dark-mode: 0
Expand All @@ -38,8 +38,7 @@ Material Rounded:
secondary-text-color: rgb(68, 71, 70)
disabled-text-color: rgb(128, 128, 128)
lovelace-background: rgb(255, 255, 255)
navbar-background: rgb(240, 244, 249)
secondary-background-color: rgb(255, 255, 255)
primary-background-color: rgb(240, 244, 249)
disabled-color: rgb(173, 176, 174)
input-background-color: rgb(234, 234, 235)
card-background-color: rgb(233, 238, 246)
Expand All @@ -61,8 +60,9 @@ Material Rounded:
app-header-background-color: var(--lovelace-background)
app-header-text-color: var(--primary-text-color)
app-header-edit-text-color: var(--app-header-text-color)
app-header-edit-background-color: var(--navbar-background)
app-header-edit-background-color: var(--primary-background-color)
app-header-selection-bar-color: none
navbar-background: var(--primary-background-color)
paper-tab-ink: rgba(0, 0, 0, 0)

# Typography
Expand Down Expand Up @@ -93,10 +93,9 @@ Material Rounded:
link-text-color: var(--primary-color)

# Main Interface Colors
primary-background-color: var(--navbar-background)
dark-primary-color: var(--primary-color)
light-primary-color: var(--primary-color)
divider-color: var(--navbar-background)
divider-color: var(--primary-background-color)
slider-secondary-color: var(--primary-color)
md-divider-color: var(--divider-color)
mdc-theme-primary: var(--primary-color)
Expand All @@ -109,7 +108,7 @@ Material Rounded:
sidebar-selected-text-color: var(--primary-text-color)
sidebar-selected-icon-color: var(--primary-color)
sidebar-text-color: var(--sidebar-icon-color)
sidebar-background-color: var(--navbar-background)
sidebar-background-color: var(--primary-background-color)

# Cards
border-radius: 28px
Expand Down Expand Up @@ -164,7 +163,7 @@ Material Rounded:
mdc-text-field-hover-line-color: var(--input-hover-line-color)

# Editors
code-editor-background-color: var(--navbar-background)
code-editor-background-color: var(--primary-background-color)
codemirror-meta: var(--primary-text-color)
codemirror-property: var(--primary-color)
codemirror-atom: var(--codemirror-property)
Expand Down
Loading

0 comments on commit 8d73034

Please sign in to comment.