Skip to content

Commit c89fc35

Browse files
authored
Fix OHF logo theme (#27830)
1 parent f03cd9c commit c89fc35

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/panels/config/info/ha-config-info.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,8 @@ class HaConfigInfo extends LitElement {
107107
const customUiList: { name: string; url: string; version: string }[] =
108108
(window as any).CUSTOM_UI_LIST || [];
109109

110+
const isDark = this.hass.themes?.darkMode || false;
111+
110112
return html`
111113
<hass-subpage
112114
.hass=${this.hass}
@@ -186,7 +188,7 @@ class HaConfigInfo extends LitElement {
186188
: nothing}
187189
</ul>
188190
</ha-card>
189-
<ha-card outlined class="ohf">
191+
<ha-card outlined class="ohf ${isDark ? "dark" : ""}">
190192
<div>
191193
${this.hass.localize("ui.panel.config.info.proud_part_of")}
192194
</div>
@@ -346,6 +348,10 @@ class HaConfigInfo extends LitElement {
346348
max-width: 250px;
347349
}
348350
351+
.ohf.dark img {
352+
color-scheme: dark;
353+
}
354+
349355
.versions {
350356
display: flex;
351357
flex-direction: column;

0 commit comments

Comments
 (0)