Update xiaoshi-device-balance-button.js

This commit is contained in:
xiaoshi
2025-12-27 13:06:56 +08:00
committed by GitHub
parent 740bac1c63
commit c93735be82

View File

@@ -1656,7 +1656,7 @@ class XiaoshiBalanceButton extends LitElement {
const buttonIcon = this.config.button_icon || 'mdi:cellphone'; 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'; const displayMode = this.config.display_mode || 'min_value';