Skip to content

Commit

Permalink
Browser mod 2 update popup
Browse files Browse the repository at this point in the history
  • Loading branch information
DBuit committed Sep 11, 2022
1 parent 6390ed2 commit ff583be
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 14 deletions.
16 changes: 9 additions & 7 deletions dist/homekit-panel-card.js
Original file line number Diff line number Diff line change
Expand Up @@ -24565,16 +24565,18 @@ class HomeKitCard extends LitElement {
popUpCard = Object.assign({}, entity.popup, { entity: entity_id });
}
const popUpStyle = {
'$': ".mdc-dialog .mdc-dialog__container { width: 100%; } .mdc-dialog .mdc-dialog__container .mdc-dialog__surface { width:100%; box-shadow:none; }",
'.': ":host { --mdc-theme-surface: rgba(0,0,0,0); --secondary-background-color: rgba(0,0,0,0); --ha-card-background: rgba(0,0,0,0); --mdc-dialog-scrim-color: rgba(0,0,0,0.8); --mdc-dialog-min-height: 100%; --mdc-dialog-min-width: 100%; --mdc-dialog-max-width: 100%; } mwc-icon-button { color: #FFF; }"
'.': ":host { --mdc-theme-surface: rgba(0,0,0,0); --secondary-background-color: rgba(0,0,0,0); --ha-card-background: rgba(0,0,0,0); --mdc-dialog-scrim-color: rgba(0,0,0,0.8); } mwc-icon-button { color: #FFF; }"
};
const action = {
browser_mod: {
command: "popup",
title: " ",
style: popUpStyle,
card: popUpCard,
deviceID: ['this']
service: "browser_mod.popup",
data: {
title: " ",
style: popUpStyle,
content: popUpCard,
size: "fullscreen",
deviceID: ['this']
}
}
};
fireEvent("ll-custom", action);
Expand Down
16 changes: 9 additions & 7 deletions src/homekit-panel-card.ts
Original file line number Diff line number Diff line change
Expand Up @@ -813,16 +813,18 @@ class HomeKitCard extends LitElement {
popUpCard = Object.assign({}, entity.popup, {entity: entity_id});
}
const popUpStyle = {
'$': ".mdc-dialog .mdc-dialog__container { width: 100%; } .mdc-dialog .mdc-dialog__container .mdc-dialog__surface { width:100%; box-shadow:none; }",
'.': ":host { --mdc-theme-surface: rgba(0,0,0,0); --secondary-background-color: rgba(0,0,0,0); --ha-card-background: rgba(0,0,0,0); --mdc-dialog-scrim-color: rgba(0,0,0,0.8); --mdc-dialog-min-height: 100%; --mdc-dialog-min-width: 100%; --mdc-dialog-max-width: 100%; } mwc-icon-button { color: #FFF; }"
'.': ":host { --mdc-theme-surface: rgba(0,0,0,0); --secondary-background-color: rgba(0,0,0,0); --ha-card-background: rgba(0,0,0,0); --mdc-dialog-scrim-color: rgba(0,0,0,0.8); } mwc-icon-button { color: #FFF; }"
}
const action = {
browser_mod: {
command: "popup",
title: " ",
style: popUpStyle,
card: popUpCard,
deviceID: ['this']
service: "browser_mod.popup",
data: {
title: " ",
style: popUpStyle,
content: popUpCard,
size: "fullscreen",
deviceID: ['this']
}
}
}
fireEvent("ll-custom", action);
Expand Down

0 comments on commit ff583be

Please sign in to comment.