From 9e87dd3b8cc8f91d23f447dd4fdc0a0919fe0ab9 Mon Sep 17 00:00:00 2001 From: Zzaphkiel <1278228162@qq.com> Date: Wed, 13 Sep 2023 15:45:50 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E7=A1=AE=E8=AE=A4=E5=BB=B6?= =?UTF-8?q?=E8=BF=9F=E7=9A=84=E7=BC=96=E8=BE=91=E6=A1=86=E5=9C=A8=E6=B7=B1?= =?UTF-8?q?=E8=89=B2=E6=A8=A1=E5=BC=8F=E4=B8=8B=E7=9A=84=E5=A4=96=E8=A7=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/view/auxiliary_interface.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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)