Compare commits

..

5 Commits

Author SHA1 Message Date
xiaoshi
67f13a23ca Update xiaoshi-pad-card.js 2025-12-27 13:08:52 +08:00
xiaoshi
56e85c834f Update xiaoshi-device-todo-button.js 2025-12-27 13:08:15 +08:00
xiaoshi
367a47d33b Update xiaoshi-device-ha-info-button.js 2025-12-27 13:07:54 +08:00
xiaoshi
6501aeead7 Update xiaoshi-device-consumables-button.js 2025-12-27 13:07:29 +08:00
xiaoshi
c93735be82 Update xiaoshi-device-balance-button.js 2025-12-27 13:06:56 +08:00
5 changed files with 5 additions and 5 deletions

View File

@@ -1656,7 +1656,7 @@ class XiaoshiBalanceButton extends LitElement {
const buttonIcon = this.config.button_icon || 'mdi:cellphone';
// 设置背景颜色
const buttonBgColor = transparentBg ? 'transparent' : bgColor;
const buttonBgColor = transparentBg ? 'transparent' : theme === 'on' ? 'rgb(255, 255, 255, 0.6)' : 'rgb(50, 50, 50, 0.6)';
// 获取显示模式
const displayMode = this.config.display_mode || 'min_value';

View File

@@ -1863,7 +1863,7 @@ class XiaoshiConsumablesButton extends LitElement {
const buttonIcon = this.config.button_icon || 'mdi:battery-sync';
// 设置背景颜色
const buttonBgColor = transparentBg ? 'transparent' : bgColor;
const buttonBgColor = transparentBg ? 'transparent' : theme === 'on' ? 'rgb(255, 255, 255, 0.6)' : 'rgb(50, 50, 50, 0.6)';
// 检查是否需要自动隐藏只有数据加载完成且数量为0时才考虑隐藏
const shouldAutoHide = this._dataLoaded && autoHide && warningCount === 0;

View File

@@ -1792,7 +1792,7 @@ export class XiaoshiHaInfoButton extends LitElement {
const buttonIcon = this.config.button_icon || 'mdi:home-assistant';
// 设置背景颜色
const buttonBgColor = transparentBg ? 'transparent' : bgColor;
const buttonBgColor = transparentBg ? 'transparent' : theme === 'on' ? 'rgb(255, 255, 255, 0.6)' : 'rgb(50, 50, 50, 0.6)';
// 检查是否需要自动隐藏只有数据加载完成且数量为0时才考虑隐藏
const shouldAutoHide = this._dataLoaded && autoHide && warningCount === 0;

View File

@@ -1630,7 +1630,7 @@ class XiaoshiTodoButton extends LitElement {
const buttonIcon = this.config.button_icon || 'mdi:clipboard-list';
// 设置背景颜色
const buttonBgColor = transparentBg ? 'transparent' : bgColor;
const buttonBgColor = transparentBg ? 'transparent' : theme === 'on' ? 'rgb(255, 255, 255, 0.6)' : 'rgb(50, 50, 50, 0.6)';
// 检查是否需要自动隐藏只有数据加载完成且数量为0时才考虑隐藏
const shouldAutoHide = this._dataLoaded && autoHide && totalIncompleteCount === 0;

View File

@@ -1,4 +1,4 @@
console.info("%c 消逝卡-平板端 \n%c v 0.2.1 ", "color: red; font-weight: bold; background: black", "color: white; font-weight: bold; background: black");
console.info("%c 消逝卡-平板端 \n%c v 0.2.3 ", "color: red; font-weight: bold; background: black", "color: white; font-weight: bold; background: black");
const loadCards = async () => {
await import('./xiaoshi-pad-grid-card.js');