Skip to content

Commit

Permalink
调整确认延迟的编辑框在深色模式下的外观
Browse files Browse the repository at this point in the history
  • Loading branch information
Zzaphkiel committed Sep 13, 2023
1 parent 4558b3a commit 9e87dd3
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion app/view/auxiliary_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 9e87dd3

Please sign in to comment.