diff --git a/app/view/auxiliary_interface.py b/app/view/auxiliary_interface.py index 471ce18b..1a7613c4 100644 --- a/app/view/auxiliary_interface.py +++ b/app/view/auxiliary_interface.py @@ -4,7 +4,7 @@ from PyQt5.QtGui import QIcon from qfluentwidgets import (SettingCardGroup, SwitchSettingCard, ExpandLayout, - SmoothScrollArea, SettingCard, LineEdit, + SmoothScrollArea, SettingCard, LineEdit, setCustomStyleSheet, PushButton, ComboBox, SwitchButton, ConfigItem, qconfig, IndicatorPosition, InfoBar, InfoBarPosition, SpinBox) from PyQt5.QtCore import Qt @@ -605,6 +605,14 @@ def __init__(self, title, content, enableConfigItem: ConfigItem = None, self.__onSwitchButtonCheckedChanged) # 这玩意在 enabled 是 false 的时候边框怪怪的,强行让它不那么怪 + qss = """ + SpinBox:disabled { + color: rgba(255, 255, 255, 150); + border: 1px solid rgba(255, 255, 255, 0.0698); + background-color: rgba(255, 255, 255, 0.0419); + } + """ + setCustomStyleSheet(self.lineEdit, "", qss) def setValue(self, delay: int, isChecked: bool): qconfig.set(self.delayConfigItem, delay)