mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 18:26:35 +00:00
Fix dialog text colors theme (#16296)
* Fix dialog text colors theme * fix drawer border
This commit is contained in:
parent
07cef18918
commit
e793675c47
@ -65,6 +65,7 @@ export class HaDrawer extends DrawerBase {
|
|||||||
.mdc-drawer {
|
.mdc-drawer {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 0;
|
top: 0;
|
||||||
|
border-color: var(--divider-color, rgba(0, 0, 0, 0.12));
|
||||||
}
|
}
|
||||||
.mdc-drawer.mdc-drawer--modal.mdc-drawer--open {
|
.mdc-drawer.mdc-drawer--modal.mdc-drawer--open {
|
||||||
z-index: 200;
|
z-index: 200;
|
||||||
|
@ -161,8 +161,6 @@ class DialogBox extends LitElement {
|
|||||||
--mdc-theme-primary: var(--error-color);
|
--mdc-theme-primary: var(--error-color);
|
||||||
}
|
}
|
||||||
ha-dialog {
|
ha-dialog {
|
||||||
--mdc-dialog-heading-ink-color: var(--primary-text-color);
|
|
||||||
--mdc-dialog-content-ink-color: var(--primary-text-color);
|
|
||||||
/* Place above other dialogs */
|
/* Place above other dialogs */
|
||||||
--dialog-z-index: 104;
|
--dialog-z-index: 104;
|
||||||
}
|
}
|
||||||
|
@ -176,8 +176,6 @@ export class DialogEnterCode
|
|||||||
static get styles(): CSSResultGroup {
|
static get styles(): CSSResultGroup {
|
||||||
return css`
|
return css`
|
||||||
ha-dialog {
|
ha-dialog {
|
||||||
--mdc-dialog-heading-ink-color: var(--primary-text-color);
|
|
||||||
--mdc-dialog-content-ink-color: var(--primary-text-color);
|
|
||||||
/* Place above other dialogs */
|
/* Place above other dialogs */
|
||||||
--dialog-z-index: 104;
|
--dialog-z-index: 104;
|
||||||
}
|
}
|
||||||
|
@ -125,8 +125,6 @@ class ConfirmEventDialogBox extends LitElement {
|
|||||||
--mdc-theme-primary: var(--error-color);
|
--mdc-theme-primary: var(--error-color);
|
||||||
}
|
}
|
||||||
ha-dialog {
|
ha-dialog {
|
||||||
--mdc-dialog-heading-ink-color: var(--primary-text-color);
|
|
||||||
--mdc-dialog-content-ink-color: var(--primary-text-color);
|
|
||||||
/* Place above other dialogs */
|
/* Place above other dialogs */
|
||||||
--dialog-z-index: 104;
|
--dialog-z-index: 104;
|
||||||
}
|
}
|
||||||
|
@ -75,8 +75,6 @@ export class DialogYamlIntegration extends LitElement {
|
|||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
ha-dialog {
|
ha-dialog {
|
||||||
--mdc-dialog-heading-ink-color: var(--primary-text-color);
|
|
||||||
--mdc-dialog-content-ink-color: var(--primary-text-color);
|
|
||||||
/* Place above other dialogs */
|
/* Place above other dialogs */
|
||||||
--dialog-z-index: 104;
|
--dialog-z-index: 104;
|
||||||
}
|
}
|
||||||
|
@ -9,6 +9,7 @@ import type { PipelineRun } from "../../../../data/assist_pipeline";
|
|||||||
import type { HomeAssistant } from "../../../../types";
|
import type { HomeAssistant } from "../../../../types";
|
||||||
import { formatNumber } from "../../../../common/number/format_number";
|
import { formatNumber } from "../../../../common/number/format_number";
|
||||||
import "../../../../components/ha-yaml-editor";
|
import "../../../../components/ha-yaml-editor";
|
||||||
|
import { showAlertDialog } from "../../../../dialogs/generic/show-dialog-box";
|
||||||
|
|
||||||
const RUN_DATA = {
|
const RUN_DATA = {
|
||||||
pipeline: "Pipeline",
|
pipeline: "Pipeline",
|
||||||
@ -314,7 +315,12 @@ export class AssistPipelineDebug extends LitElement {
|
|||||||
private _playTTS(): void {
|
private _playTTS(): void {
|
||||||
const url = this.pipelineRun!.tts!.tts_output!.url;
|
const url = this.pipelineRun!.tts!.tts_output!.url;
|
||||||
const audio = new Audio(url);
|
const audio = new Audio(url);
|
||||||
audio.play();
|
audio.addEventListener("error", () => {
|
||||||
|
showAlertDialog(this, { title: "Error", text: "Error playing audio" });
|
||||||
|
});
|
||||||
|
audio.addEventListener("canplaythrough", () => {
|
||||||
|
audio.play();
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
static styles = css`
|
static styles = css`
|
||||||
|
@ -112,6 +112,8 @@ export const derivedStyles = {
|
|||||||
"mdc-button-disabled-ink-color": "var(--disabled-text-color)",
|
"mdc-button-disabled-ink-color": "var(--disabled-text-color)",
|
||||||
"mdc-button-outline-color": "var(--divider-color)",
|
"mdc-button-outline-color": "var(--divider-color)",
|
||||||
"mdc-dialog-scroll-divider-color": "var(--divider-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)",
|
||||||
|
|
||||||
"mdc-text-field-idle-line-color": "var(--input-idle-line-color)",
|
"mdc-text-field-idle-line-color": "var(--input-idle-line-color)",
|
||||||
"mdc-text-field-hover-line-color": "var(--input-hover-line-color)",
|
"mdc-text-field-hover-line-color": "var(--input-hover-line-color)",
|
||||||
@ -296,8 +298,6 @@ export const haStyleDialog = css`
|
|||||||
ha-dialog {
|
ha-dialog {
|
||||||
--mdc-dialog-min-width: 400px;
|
--mdc-dialog-min-width: 400px;
|
||||||
--mdc-dialog-max-width: 600px;
|
--mdc-dialog-max-width: 600px;
|
||||||
--mdc-dialog-heading-ink-color: var(--primary-text-color);
|
|
||||||
--mdc-dialog-content-ink-color: var(--primary-text-color);
|
|
||||||
--justify-action-buttons: space-between;
|
--justify-action-buttons: space-between;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user