mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-23 17:26:42 +00:00
Quick Bar dark mode, ignore leading white space (#7387)
This commit is contained in:
parent
c1de162c99
commit
c0b2143c7c
@ -110,7 +110,11 @@ export class QuickBar extends LitElement {
|
|||||||
<ha-icon .icon=${item.icon} slot="graphic"></ha-icon>
|
<ha-icon .icon=${item.icon} slot="graphic"></ha-icon>
|
||||||
<span>${item.text}</span>
|
<span>${item.text}</span>
|
||||||
${item.altText
|
${item.altText
|
||||||
? html` <span slot="secondary">${item.altText}</span> `
|
? html`
|
||||||
|
<span slot="secondary" class="secondary"
|
||||||
|
>${item.altText}</span
|
||||||
|
>
|
||||||
|
`
|
||||||
: null}
|
: null}
|
||||||
${this._commandTriggered === index
|
${this._commandTriggered === index
|
||||||
? html`<ha-circular-progress
|
? html`<ha-circular-progress
|
||||||
@ -186,7 +190,7 @@ export class QuickBar extends LitElement {
|
|||||||
if (altText) {
|
if (altText) {
|
||||||
values.push(altText);
|
values.push(altText);
|
||||||
}
|
}
|
||||||
return fuzzySequentialMatch(this._itemFilter, values);
|
return fuzzySequentialMatch(this._itemFilter.trimLeft(), values);
|
||||||
})
|
})
|
||||||
.sort((itemA, itemB) => compare(itemA.text, itemB.text));
|
.sort((itemA, itemB) => compare(itemA.text, itemB.text));
|
||||||
}
|
}
|
||||||
@ -228,6 +232,11 @@ export class QuickBar extends LitElement {
|
|||||||
padding: 20px 20px 0px;
|
padding: 20px 20px 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
mwc-list-item span[slot="secondary"],
|
||||||
|
ha-icon[slot="graphic"] {
|
||||||
|
color: var(--secondary-text-color);
|
||||||
|
}
|
||||||
|
|
||||||
ha-dialog {
|
ha-dialog {
|
||||||
--dialog-z-index: 8;
|
--dialog-z-index: 8;
|
||||||
--dialog-content-padding: 0px 24px 20px;
|
--dialog-content-padding: 0px 24px 20px;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user