Fix media browser panel title + selection header color (#6807)

This commit is contained in:
Philip Allgaier 2020-09-06 22:17:34 +02:00 committed by GitHub
parent 509481ef06
commit cfa0c45213
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 32 additions and 27 deletions

View File

@ -13,6 +13,7 @@ import { fireEvent } from "../../common/dom/fire_event";
import { createCloseHeading } from "../../components/ha-dialog";
import { BROWSER_SOURCE } from "../../data/media-player";
import type { HomeAssistant } from "../../types";
import { haStyleDialog } from "../../resources/styles";
import type { SelectMediaPlayerDialogParams } from "./show-select-media-source-dialog";
@customElement("hui-dialog-select-media-player")
@ -74,15 +75,18 @@ export class HuiDialogSelectMediaPlayer extends LitElement {
this.closeDialog();
}
static get styles(): CSSResult {
return css`
ha-dialog {
--dialog-content-padding: 0 24px 20px;
}
paper-item {
cursor: pointer;
}
`;
static get styles(): CSSResult[] {
return [
haStyleDialog,
css`
ha-dialog {
--dialog-content-padding: 0 24px 20px;
}
paper-item {
cursor: pointer;
}
`,
];
}
}

View File

@ -11,6 +11,7 @@ import { fireEvent } from "../../common/dom/fire_event";
import { createCloseHeading } from "../../components/ha-dialog";
import "../../components/ha-hls-player";
import type { HomeAssistant } from "../../types";
import { haStyleDialog } from "../../resources/styles";
import { WebBrowserPlayMediaDialogParams } from "./show-media-player-dialog";
@customElement("hui-dialog-web-browser-play-media")
@ -92,26 +93,25 @@ export class HuiDialogWebBrowserPlayMedia extends LitElement {
`;
}
static get styles(): CSSResult {
return css`
ha-dialog {
--mdc-dialog-heading-ink-color: var(--primary-text-color);
}
@media (min-width: 800px) {
ha-dialog {
--mdc-dialog-max-width: 800px;
--mdc-dialog-min-width: 400px;
static get styles(): CSSResult[] {
return [
haStyleDialog,
css`
@media (min-width: 800px) {
ha-dialog {
--mdc-dialog-max-width: 800px;
--mdc-dialog-min-width: 400px;
}
}
}
video,
audio,
img {
outline: none;
width: 100%;
}
`;
video,
audio,
img {
outline: none;
width: 100%;
}
`,
];
}
}

View File

@ -9,6 +9,7 @@
"mailbox": "Mailbox",
"shopping_list": "Shopping list",
"developer_tools": "Developer Tools",
"media_browser": "Media Browser",
"profile": "Profile"
},
"state": {