Skip to content

Commit

Permalink
Fix for beta 5
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasloven committed Apr 3, 2023
1 parent fbb52d6 commit f6f2641
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 14 deletions.
6 changes: 4 additions & 2 deletions src/patch/ha-sidebar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ customElements.whenDefined("ha-sidebar").then(() => {

selectTree(
document,
"home-assistant$home-assistant-main$mwc-drawer ha-sidebar",
"home-assistant$home-assistant-main$ ha-sidebar",
false
).then((root) => root?.firstUpdated());
).then((root) => {
root?.firstUpdated();
});
});
2 changes: 1 addition & 1 deletion src/patch/hui-root.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ customElements.whenDefined("hui-root").then(() => {

selectTree(
document,
"home-assistant$home-assistant-main$mwc-drawer partial-panel-resolver ha-panel-lovelace$hui-root",
"home-assistant$home-assistant-main$partial-panel-resolver ha-panel-lovelace$hui-root",
false
).then((root: any) => {
root?.firstUpdated();
Expand Down
13 changes: 6 additions & 7 deletions test/themes/airy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,11 @@ airy:
ha-card-box-shadow: none
background-image: url("https://thumbs.dreamstime.com/b/green-leaf-seamless-texture-detail-close-image-tree-macro-pattern-35841066.jpg")


disabled-text-color: gray

theme-box-shadow: 0px 2px 1px -1px rgba(0, 0, 0, 0.2),
0px 1px 1px 0px rgba(0, 0, 0, 0.14),
0px 1px 3px 0px rgba(0, 0, 0, 0.12)
theme-box-shadow: 0px 2px 1px -1px rgba(0, 0, 0, 0.2),
0px 1px 1px 0px rgba(0, 0, 0, 0.14),
0px 1px 3px 0px rgba(0, 0, 0, 0.12)
theme-border-radius: 10px

background-1: rgba(250, 250, 250, 0.5)
Expand Down Expand Up @@ -41,16 +40,16 @@ airy:
}
card-mod-root: |
ha-app-layout {
ha-app-layout, div#view {
background: var(--background-image) !important;
background-size: cover;
}
app-header {
app-header, div.header {
background: var(--background-1) !important;
backdrop-filter: var(--bg-filter);
box-shadow: var(--theme-box-shadow);
}
app-toolbar {
app-toolbar, div.toolbar {
background: none !important;
}
Expand Down
8 changes: 4 additions & 4 deletions test/themes/art-nouveau.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,17 +61,17 @@ art-nouveau:
}
card-mod-root: |
ha-app-layout, #view {
ha-app-layout, div#view {
background: var(--background-image);
background-size: 300px;
}
app-header, .header {
}
app-header, div.header {
background: var(--theme-card-background) !important;
border-bottom: var(--theme-thick-border);
padding-bottom: 3px;
transform: none !important;
}
app-toolbar, .toolbar {
app-toolbar, div.toolbar {
background: none !important;
border-bottom: var(--theme-thin-border)
}
Expand Down

0 comments on commit f6f2641

Please sign in to comment.