Skip to content

Commit

Permalink
Separate outline color (#18109)
Browse files Browse the repository at this point in the history
  • Loading branch information
KTibow authored Oct 9, 2023
1 parent eae3c13 commit d3fd279
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
5 changes: 1 addition & 4 deletions src/components/ha-expansion-panel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,10 +163,7 @@ export class HaExpansionPanel extends LitElement {
box-shadow: none;
border-width: 1px;
border-style: solid;
border-color: var(
--ha-card-border-color,
var(--divider-color, #e0e0e0)
);
border-color: var(--outline-color);
border-radius: var(--ha-card-border-radius, 12px);
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/ha-outlined-button.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export class HaOutlinedButton extends OutlinedButton {
:host {
--ha-icon-display: block;
--md-sys-color-primary: var(--primary-text-color);
--md-sys-color-outline: var(--divider-color);
--md-sys-color-outline: var(--outline-color);
}
`,
];
Expand Down
1 change: 1 addition & 0 deletions src/resources/ha-style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ documentContainer.innerHTML = `<custom-style>
--light-primary-color: #b3e5fC;
--accent-color: ${DEFAULT_ACCENT_COLOR};
--divider-color: rgba(0, 0, 0, .12);
--outline-color: rgba(0, 0, 0, .12);
--scrollbar-thumb-color: rgb(194, 194, 194);
Expand Down
3 changes: 2 additions & 1 deletion src/resources/styles-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export const darkStyles = {
"switch-unchecked-button-color": "#999999",
"switch-unchecked-track-color": "#9b9b9b",
"divider-color": "rgba(225, 225, 225, .12)",
"outline-color": "rgba(225, 225, 225, .12)",
"mdc-ripple-color": "#AAAAAA",
"mdc-linear-progress-buffer-color": "rgba(255, 255, 255, 0.1)",

Expand Down Expand Up @@ -110,7 +111,7 @@ export const derivedStyles = {
"mdc-radio-disabled-color": "var(--disabled-text-color)",
"mdc-tab-text-label-color-default": "var(--primary-text-color)",
"mdc-button-disabled-ink-color": "var(--disabled-text-color)",
"mdc-button-outline-color": "var(--divider-color)",
"mdc-button-outline-color": "var(--outline-color)",
"mdc-dialog-scroll-divider-color": "var(--divider-color)",
"mdc-dialog-heading-ink-color": "var(--primary-text-color)",
"mdc-dialog-content-ink-color": "var(--primary-text-color)",
Expand Down

0 comments on commit d3fd279

Please sign in to comment.