Skip to content

Commit

Permalink
Fix background header bug
Browse files Browse the repository at this point in the history
  • Loading branch information
dwainscheeren committed Dec 3, 2021
1 parent 26c9a2e commit 0e10f65
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 8 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,5 @@ image/
blueprints/
._*
.fuse_hidden002e3c9700002485
home-assistant.log.1
home-assistant.log.fault
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
</ha-card>
`}set hass(e){this.card&&(this.card.hass=e)}_handleClick(){let e,t=window.location.pathname,o=t.substring(0,t.lastIndexOf("/"))+"/"+this._config.navigation_path;window.history.pushState(null,"",o),e=new Event("location-changed",{composed:!0}),e.detail={replace:!1},window.dispatchEvent(e)}static get styles(){return[r`
ha-card {
background-color: var(--app-header-background-color);
background-color: var(--app-header-background-color2);
color: var(--app-header-text-color, white);
margin-top: -2px;
padding-left: 16px;
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ Promise.race(bases).then(() => {
return [
css`
ha-card {
background-color: var(--app-header-background-color);
background-color: var(--app-header-background-color2);
color: var(--app-header-text-color, white);
margin-top: -2px;
padding-left: 16px;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ dwains-theme-black:

#iOS app
app-header-background-color: 'var(--dwains-theme-primary)'
app-header-background-color2: 'var(--dwains-theme-primary)'

#Lights
dwains-theme-unavailable: '#303030'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ dwains-theme-dark:

#iOS app
app-header-background-color: 'var(--dwains-theme-primary)'
app-header-background-color2: 'var(--dwains-theme-primary)'

#Lights
dwains-theme-unavailable: '#303030'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ dwains-theme-light:
dwains-theme-header-button-background: '#1c1c1e'

app-header-background-color: 'var(--dwains-theme-header-background)'
app-header-background-color2: 'var(--dwains-theme-header-background)'
app-header-text-color: 'var(--dwains-theme-header-text)'

## Lovelace Theme
Expand Down
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
- type: custom:dwains-wrapper-card
css: |
padding: 0px;
background-color: var(--app-header-background-color);
background-color: var(--app-header-background-color2);
color: var(--app-header-text-color, white);
border-radius: 0;
overflow: hidden;
Expand Down

0 comments on commit 0e10f65

Please sign in to comment.