Skip to content

Commit

Permalink
update to fix styling issues match the fan control row repo styles fo…
Browse files Browse the repository at this point in the history
…r the default theme in HA.
  • Loading branch information
finity69x2 authored Feb 6, 2020
1 parent e80f760 commit 4a6c1e5
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions dist/light-brightness-preset-row.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,24 +198,24 @@ class CustomLightBrightnessRow extends Polymer.Element {
}
} else {
if (low == 'on') {
lowcolor = 'background-color: var(--switch-checked-button-color)';
lowcolor = 'background-color: var(--switch-checked-color)';
} else {
lowcolor = 'background-color: var(--switch-unchecked-button-color)';
lowcolor = 'background-color: var(--switch-unchecked-color)';
}
if (med == 'on') {
medcolor = 'background-color: var(--switch-checked-button-color)';
medcolor = 'background-color: var(--switch-checked-color)';
} else {
medcolor = 'background-color: var(--switch-unchecked-button-color)';
medcolor = 'background-color: var(--switch-unchecked-color)';
}
if (high == 'on') {
hicolor = 'background-color: var(--switch-checked-button-color)';
hicolor = 'background-color: var(--switch-checked-color)';
} else {
hicolor = 'background-color: var(--switch-unchecked-button-color)';
hicolor = 'background-color: var(--switch-unchecked-color)';
}
if (offstate == 'on') {
offcolor = 'background-color: var(--switch-checked-button-color)';
offcolor = 'background-color: var(--switch-checked-color)';
} else {
offcolor = 'background-color: var(--switch-unchecked-button-color)';
offcolor = 'background-color: var(--switch-unchecked-color)';
}
}

Expand Down

0 comments on commit 4a6c1e5

Please sign in to comment.