Update xiaoshi-device-todo-button.js

This commit is contained in:
xiaoshi
2025-12-06 20:16:06 +08:00
committed by GitHub
parent 1523dc76d3
commit 7b7f0c632d

View File

@@ -1663,7 +1663,7 @@ class XiaoshiTodoButton extends LitElement {
buttonHtml = html` buttonHtml = html`
<div class="todo-status" style="--fg-color: ${fgColor}; --bg-color: ${buttonBgColor};" @click=${this._handleButtonClick}> <div class="todo-status" style="--fg-color: ${fgColor}; --bg-color: ${buttonBgColor};" @click=${this._handleButtonClick}>
${!hideIcon ? html`<ha-icon class="status-icon" icon="${buttonIcon}"></ha-icon>` : ''} ${!hideIcon ? html`<ha-icon class="status-icon" style="color: ${fgColor};" icon="${buttonIcon}"></ha-icon>` : ''}
${displayText} ${displayText}
</div> </div>
`; `;
@@ -1703,7 +1703,7 @@ class XiaoshiTodoButton extends LitElement {
buttonHtml = html` buttonHtml = html`
<div class="todo-status" style="--fg-color: ${textColor}; --bg-color: ${buttonBgColor};" @click=${this._handleButtonClick}> <div class="todo-status" style="--fg-color: ${textColor}; --bg-color: ${buttonBgColor};" @click=${this._handleButtonClick}>
${!hideIcon ? html`<ha-icon class="status-icon" icon="${buttonIcon}"></ha-icon>` : ''} ${!hideIcon ? html`<ha-icon class="status-icon" style="color: ${fgColor};" icon="${buttonIcon}"></ha-icon>` : ''}
${displayText} ${displayText}
</div> </div>
`; `;