From 6501aeead78fc2d29c52f8baefc1423ea0eabadf Mon Sep 17 00:00:00 2001 From: xiaoshi <115949669+xiaoshi930@users.noreply.github.com> Date: Sat, 27 Dec 2025 13:07:29 +0800 Subject: [PATCH] Update xiaoshi-device-consumables-button.js --- xiaoshi-device-consumables-button.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xiaoshi-device-consumables-button.js b/xiaoshi-device-consumables-button.js index 45eb9f1..c4102cd 100644 --- a/xiaoshi-device-consumables-button.js +++ b/xiaoshi-device-consumables-button.js @@ -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;