Files
iDescriptor/resources/win.light.qcss
T
uncor3 43d804991e refactor(ui): add WinUI stylesheet for Windows
- Introduced WinToolWidget for custom window management on Windows.
- Implemented backdrop type settings for Windows in SettingsManager.
- Enhanced SettingsWidget to allow selection of backdrop type.
- Improved status balloon and toolbox widget styles for Windows.
- Refined tab widget animations and styles for better visual feedback.
- Fixed issues with loading and error widgets in ZLoadingWidget.
- Updated welcome widget to support custom hyperlink colors.
- General code cleanup and style adjustments across multiple files.
2026-02-22 11:59:57 +03:00

1124 lines
25 KiB
Plaintext

QWidget {
background: transparent;
color: rgb(0, 0, 0);
font-size: 17px;
font-family: "Segoe UI Variable Small", serif;
font-weight: 400;
}
/*MENU*/
QMenuBar {
background-color: transparent;
color: rgba(0, 0, 0);
padding: 10px;
font-size: 17px;
font-family: "Segoe UI Variable Small", serif;
font-weight: 400;
}
QMenuBar::item {
background-color: transparent;
padding: 10px 13px;
margin-left: 5px;
border-radius: 5px;
}
QMenuBar::item:selected {
background-color: rgb(0, 0, 0, 10);
}
QMenuBar::item:pressed {
background-color: rgb(0, 0, 0, 7);
color: rgb(0, 0, 0, 150);
}
QMenu {
background-color: transparent;
padding-left: 1px;
padding-top: 1px;
border-radius: 5px;
border: 1px solid rgb(0, 0, 0, 13);
}
QMenu::item {
background-color: transparent;
padding: 5px 15px;
border-radius: 5px;
min-width: 60px;
margin: 3px;
}
QMenu::item:selected {
background-color: rgb(0, 0, 0, 10);
}
QMenu::item:pressed {
background-color: rgb(0, 0, 0, 7);
}
QMenu::right-arrow {
image: url(:/resources/win/light/TreeViewClose.png);
min-width: 40px;
min-height: 18px;
}
QMenuBar:disabled {
color: rgb(0, 0, 0, 150);
}
QMenu::item:disabled {
color: rgb(0, 0, 0, 150);
background-color: transparent;
}
/*PUSHBUTTON*/
QPushButton {
background-color: rgb(0, 0, 0, 7);
border: 1px solid rgb(0, 0, 0, 13);
border-radius: 7px;
min-height: 38px;
max-height: 38px;
}
QPushButton:hover {
background-color: rgb(0, 0, 0, 10);
border: 1px solid rgb(0, 0, 0, 13);
}
QPushButton::pressed {
color: rgb(0, 0, 0, 150);
}
QPushButton::disabled {
color: rgb(0, 0, 0, 110);
background-color: rgb(0, 0, 0, 13);
border: 1px solid rgb(0, 0, 0, 5);
}
/*RADIOBUTTON*/
QRadioButton {
min-height: 30px;
max-height: 30px;
}
QRadioButton::indicator {
width: 22px;
height: 22px;
border-radius: 13px;
border: 2px solid #999999;
background-color: rgb(0, 0, 0, 5);
margin-right: 5px;
}
QRadioButton::indicator:hover {
background-color: rgb(0, 0, 0, 0);
}
QRadioButton::indicator:pressed {
background-color: rgb(0, 0, 0, 5);
border: 2px solid #bbbbbb;
image: url(:/resources/win/light/RadioButton.png);
}
QRadioButton::indicator:checked {
background-color: %1;
border: 2px solid %1;
image: url(:/resources/win/light/RadioButton.png);
color: rgb(255, 255, 255);
}
QRadioButton::indicator:checked:hover {
image: url(:/resources/win/light/RadioButtonHover.png);
}
QRadioButton::indicator:checked:pressed {
image: url(:/resources/win/light/RadioButtonPressed.png);
}
QRadioButton:disabled {
color: rgb(0, 0, 0, 110);
}
QRadioButton::indicator:disabled {
border: 2px solid #bbbbbb;
background-color: rgb(0, 0, 0, 0);
}
/*CHECKBOX*/
QCheckBox {
min-height: 30px;
max-height: 30px;
}
QCheckBox::indicator {
width: 22px;
height: 22px;
border-radius: 5px;
border: 2px solid #999999;
background-color: rgb(0, 0, 0, 0);
margin-right: 5px;
}
QCheckBox::indicator:hover {
background-color: rgb(0, 0, 0, 15);
}
QCheckBox::indicator:pressed {
background-color: rgb(0, 0, 0, 24);
border: 2px solid #bbbbbb;
}
QCheckBox::indicator:checked {
background-color: %1;
border: 2px solid %1;
image: url(:/resources/win/light/CheckBox.png);
color: rgb(255, 255, 255);
}
QCheckBox::indicator:checked:pressed {
image: url(:/resources/win/light/CheckBoxPressed.png);
}
QCheckBox:disabled {
color: rgb(0, 0, 0, 110);
}
QCheckBox::indicator:disabled {
border: 2px solid #bbbbbb;
background-color: rgb(0, 0, 0, 0);
}
/*GROUPBOX*/
QGroupBox {
border-radius: 5px;
border: 1px solid rgb(0, 0, 0, 13);
margin-top: 36px;
}
QGroupBox::title {
subcontrol-origin: margin;
subcontrol-position: top left;
background-color: rgb(0, 0, 0, 10);
padding: 7px 15px;
margin-left: 5px;
border-top-left-radius: 5px;
border-top-right-radius: 5px;
}
QGroupBox::title::disabled {
color: rgb(0, 0, 0, 150);
}
/*TABWIDGET*/
QTabWidget {
}
QWidget {
border-radius: 5px;
}
QTabWidget::pane {
border: 1px solid rgb(0, 0, 0, 13);
border-radius: 5px;
}
QTabWidget::tab-bar {
left: 5px;
}
QTabBar::tab {
background-color: rgb(0, 0, 0, 0);
padding: 7px 15px;
margin-right: 2px;
}
QTabBar::tab:hover {
background-color: rgb(0, 0, 0, 13);
border-top-left-radius: 5px;
border-top-right-radius: 5px;
}
QTabBar::tab:selected {
background-color: rgb(0, 0, 0, 10);
border-top-left-radius: 5px;
border-top-right-radius: 5px;
}
QTabBar::tab:disabled {
color: rgb(0, 0, 0, 150)
}
/*SPINBOX*/
QSpinBox {
background-color: rgb(0, 0, 0, 7);
border: 1px solid rgb(0, 0, 0, 13);
border-radius: 5px;
padding-left: 10px;
min-height: 38px;
max-height: 38px;
min-width: 100px;
border-bottom: 1px solid rgb(0, 0, 0, 100);
}
QSpinBox:hover {
background-color: rgb(0, 0, 0, 13);
border: 1px solid rgb(0, 0, 0, 13);
border-bottom: 1px solid rgb(0, 0, 0, 100);
}
QSpinBox::focus {
background-color: rgb(0, 0, 0, 5);
border: 1px solid rgb(0, 0, 0, 10);
color: rgb(0, 0, 0, 200);
border-bottom: 2px solid %1;
}
QSpinBox::up-button {
image: url(:/resources/win/light/SpinBoxUp.png);
background-color: rgb(0, 0, 0, 0);
border: 1px solid rgb(0, 0, 0, 0);
border-radius: 4px;
margin-top: 1px;
margin-bottom: 1px;
margin-right: 2px;
min-width: 30px;
max-width: 30px;
min-height: 20px;
}
QSpinBox::up-button:hover {
background-color: rgb(0, 0, 0, 10);
}
QSpinBox::up-button:pressed {
background-color: rgb(0, 0, 0, 5);
}
QSpinBox::down-button {
image: url(:/resources/win/light/SpinBoxDown.png);
background-color: rgb(0, 0, 0, 0);
border: 1px solid rgb(0, 0, 0, 0);
border-radius: 4px;
margin-top: 1px;
margin-bottom: 1px;
margin-right: 2px;
min-width: 30px;
max-width: 30px;
min-height: 20px;
}
QSpinBox::down-button:hover {
background-color: rgb(0, 0, 0, 10);
}
QSpinBox::down-button:pressed {
background-color: rgb(0, 0, 0, 5);
}
QSpinBox::drop-down {
background-color: transparent;
width: 50px;
}
QSpinBox:disabled {
color: rgb(0, 0, 0, 110);
background-color: rgb(0, 0, 0, 13);
border: 1px solid rgb(0, 0, 0, 5);
}
QSpinBox::up-button:disabled {
image: url(:/resources/win/light/SpinBoxUpDisabled.png);
}
QSpinBox::down-button:disabled {
image: url(:/resources/win/light/SpinBoxDownDisabled.png);
}
/*DOUBLESPINBOX*/
QDoubleSpinBox {
background-color: rgb(0, 0, 0, 7);
border: 1px solid rgb(0, 0, 0, 13);
border-radius: 5px;
padding-left: 10px;
min-height: 38px;
max-height: 38px;
min-width: 100px;
border-bottom: 1px solid rgb(0, 0, 0, 100);
}
QDoubleSpinBox:hover {
background-color: rgb(0, 0, 0, 13);
border: 1px solid rgb(0, 0, 0, 13);
border-bottom: 1px solid rgb(0, 0, 0, 100);
}
QDoubleSpinBox::focus {
background-color: rgb(0, 0, 0, 5);
border: 1px solid rgb(0, 0, 0, 10);
color: rgb(0, 0, 0, 200);
border-bottom: 2px solid %1;
}
QDoubleSpinBox::up-button {
image: url(:/resources/win/light/SpinBoxUp.png);
background-color: rgb(0, 0, 0, 0);
border: 1px solid rgb(0, 0, 0, 0);
border-radius: 4px;
margin-top: 1px;
margin-bottom: 1px;
margin-right: 2px;
min-width: 30px;
max-width: 30px;
min-height: 20px;
}
QDoubleSpinBox::up-button:hover {
background-color: rgb(0, 0, 0, 10);
}
QDoubleSpinBox::up-button:pressed {
background-color: rgb(0, 0, 0, 5);
}
QDoubleSpinBox::down-button {
image: url(:/resources/win/light/SpinBoxDown.png);
background-color: rgb(0, 0, 0, 0);
border: 1px solid rgb(0, 0, 0, 0);
border-radius: 4px;
margin-top: 1px;
margin-bottom: 1px;
margin-right: 2px;
min-width: 30px;
max-width: 30px;
min-height: 20px;
}
QDoubleSpinBox::down-button:hover {
background-color: rgb(0, 0, 0, 10);
}
QDoubleSpinBox::down-button:pressed {
background-color: rgb(0, 0, 0, 5);
}
QDoubleSpinBox::drop-down {
background-color: transparent;
width: 50px;
}
QDoubleSpinBox:disabled {
color: rgb(0, 0, 0, 110);
background-color: rgb(0, 0, 0, 13);
border: 1px solid rgb(0, 0, 0, 5);
}
QDoubleSpinBox::up-button:disabled {
image: url(:/resources/win/light/SpinBoxUpDisabled.png);
}
QDoubleSpinBox::down-button:disabled {
image: url(:/resources/win/light/SpinBoxDownDisabled.png);
}
/*DATETIMEEDIT*/
QDateTimeEdit {
background-color: rgb(0, 0, 0, 7);
border: 1px solid rgb(0, 0, 0, 13);
border-radius: 5px;
padding-left: 10px;
min-height: 38px;
max-height: 38px;
min-width: 100px;
border-bottom: 1px solid rgb(0, 0, 0, 100);
}
QDateTimeEdit:hover {
background-color: rgb(0, 0, 0, 13);
border: 1px solid rgb(0, 0, 0, 13);
border-bottom: 1px solid rgb(0, 0, 0, 100);
}
QDateTimeEdit::focus {
background-color: rgb(0, 0, 0, 5);
border: 1px solid rgb(0, 0, 0, 10);
color: rgb(0, 0, 0, 200);
border-bottom: 2px solid %1;
}
QDateTimeEdit::up-button {
image: url(:/resources/win/light/SpinBoxUp.png);
background-color: rgb(0, 0, 0, 0);
border: 1px solid rgb(0, 0, 0, 0);
border-radius: 4px;
margin-top: 1px;
margin-bottom: 1px;
margin-right: 2px;
min-width: 30px;
max-width: 30px;
min-height: 20px;
}
QDateTimeEdit::up-button:hover {
background-color: rgb(0, 0, 0, 10);
}
QDateTimeEdit::up-button:pressed {
background-color: rgb(0, 0, 0, 5);
}
QDateTimeEdit::down-button {
image: url(:/resources/win/light/SpinBoxDown.png);
background-color: rgb(0, 0, 0, 0);
border: 1px solid rgb(0, 0, 0, 0);
border-radius: 4px;
margin-top: 1px;
margin-bottom: 1px;
margin-right: 2px;
min-width: 30px;
max-width: 30px;
min-height: 20px;
}
QDateTimeEdit::down-button:hover {
background-color: rgb(0, 0, 0, 10);
}
QDateTimeEdit::down-button:pressed {
background-color: rgb(0, 0, 0, 5);
}
QDateTimeEdit::drop-down {
background-color: transparent;
width: 50px;
}
QDateTimeEdit:disabled {
color: rgb(0, 0, 0, 110);
background-color: rgb(0, 0, 0, 13);
border: 1px solid rgb(0, 0, 0, 5);
}
QDateTimeEdit::up-button:disabled {
image: url(:/resources/win/light/SpinBoxUpDisabled.png);
}
QDateTimeEdit::down-button:disabled {
image: url(:/resources/win/light/SpinBoxDownDisabled.png);
}
/*SLIDERVERTICAL*/
QSlider:vertical {
min-width: 30px;
min-height: 100px;
}
QSlider::groove:vertical {
width: 5px;
background-color: rgb(0, 0, 0, 100);
border-radius: 2px;
}
QSlider::handle:vertical {
background-color: %1;
border: 6px solid #dbdbdb;
height: 13px;
min-width: 15px;
margin: 0px -10px;
border-radius: 12px;
}
QSlider::handle:vertical:hover {
background-color: %1;
border: 4px solid #dbdbdb;
height: 17px;
min-width: 15px;
margin: 0px -10px;
border-radius: 12px
}
QSlider::handle:vertical:pressed {
background-color: %1;
border: 7px solid #dbdbdb;
height: 11px;
min-width: 15px;
margin: 0px -10px;
border-radius: 12px
}
QSlider::groove:vertical:disabled {
background-color: rgb(0, 0, 0, 75);
}
QSlider::handle:vertical:disabled {
background-color: #808080;
border: 6px solid #cccccc;
}
/*SLIDERHORIZONTAL*/
QSlider:horizontal {
min-width: 100px;
min-height: 30px;
}
QSlider::groove:horizontal {
height: 5px;
background-color: rgb(0, 0, 0, 100);
border-radius: 2px;
}
QSlider::handle:horizontal {
background-color: %1;
border: 6px solid #dbdbdb;
width: 13px;
min-height: 15px;
margin: -10px 0;
border-radius: 12px
}
QSlider::handle:horizontal:hover {
background-color: %1;
border: 4px solid #dbdbdb;
width: 17px;
min-height: 15px;
margin: -10px 0;
border-radius: 12px
}
QSlider::handle:horizontal:pressed {
background-color: %1;
border: 7px solid #dbdbdb;
width: 11px;
min-height: 15px;
margin: -10px 0;
border-radius: 12px
}
QSlider::groove:horizontal:disabled {
background-color: rgb(0, 0, 0, 75);
}
QSlider::handle:horizontal:disabled {
background-color: #808080;
border: 6px solid #cccccc;
}
/*PROGRESSBAR*/
QProgressBar {
background-color: qlineargradient(spread:reflect, x1:0.5, y1:0.5, x2:0.5, y2:1, stop:0.233831 rgba(0, 0, 0, 255), stop:0.343284 rgba(0, 0, 0, 0));
border-radius: 2px;
min-height: 4px;
max-height: 4px;
}
QProgressBar::chunk {
background-color: %1;
border-radius: 2px;
}
/*COMBOBOX*/
QComboBox {
background-color: rgb(0, 0, 0, 7);
border: 1px solid rgb(0, 0, 0, 13);
border-radius: 5px;
padding-left: 10px;
min-height: 38px;
max-height: 38px;
}
QComboBox:hover {
background-color: rgb(0, 0, 0, 13);
border: 1px solid rgb(0, 0, 0, 13);
}
QComboBox::pressed {
border: 1px solid rgb(0, 0, 0, 10);
}
QComboBox::down-arrow {
image: url(:/resources/win/light/ComboBox.png);
}
QComboBox::drop-down {
background-color: transparent;
min-width: 50px;
}
QComboBox:disabled {
color: rgb(0, 0, 0, 110);
background-color: rgb(0, 0, 0, 13);
border: 1px solid rgb(0, 0, 0, 5);
}
QComboBox::down-arrow:disabled {
image: url(:/resources/win/light/ComboBoxDisabled.png);
}
/*LINEEDIT*/
QLineEdit {
background-color: rgb(0, 0, 0, 7);
border: 1px solid rgb(0, 0, 0, 13);
font-size: 16px;
font-family: "Segoe UI", serif;
font-weight: 500;
border-radius: 7px;
border-bottom: 1px solid rgb(0, 0, 0, 100);
padding-top: 0px;
padding-left: 5px;
}
QLineEdit:hover {
background-color: rgb(0, 0, 0, 13);
border: 1px solid rgb(0, 0, 0, 13);
border-bottom: 1px solid rgb(0, 0, 0, 100);
}
QLineEdit:focus {
border-bottom: 2px solid %1;
background-color: rgb(0, 0, 0, 5);
border-top: 1px solid rgb(0, 0, 0, 13);
border-left: 1px solid rgb(0, 0, 0, 13);
border-right: 1px solid rgb(0, 0, 0, 13);
}
QLineEdit:disabled {
color: rgb(0, 0, 0, 150);
background-color: rgb(0, 0, 0, 13);
border: 1px solid rgb(0, 0, 0, 5);
}
/*SCROLLVERTICAL*/
QScrollBar:vertical {
border: 6px solid rgb(0, 0, 0, 0);
margin: 14px 0px 14px 0px;
width: 16px;
}
QScrollBar:vertical:hover {
border: 5px solid rgb(0, 0, 0, 0);
}
QScrollBar::handle:vertical {
background-color: rgb(0, 0, 0, 110);
border-radius: 2px;
min-height: 25px;
}
QScrollBar::sub-line:vertical {
image: url(:/resources/win/light/ScrollTop.png);
subcontrol-position: top;
subcontrol-origin: margin;
}
QScrollBar::sub-line:vertical:hover {
image: url(:/resources/win/light/ScrollTopHover.png);
}
QScrollBar::sub-line:vertical:pressed {
image: url(:/resources/win/light/ScrollTopPressed.png);
}
QScrollBar::add-line:vertical {
image: url(:/resources/win/light/ScrollBottom.png);
subcontrol-position: bottom;
subcontrol-origin: margin;
}
QScrollBar::add-line:vertical:hover {
image: url(:/resources/win/light/ScrollBottomHover.png);
}
QScrollBar::add-line:vertical:pressed {
image: url(:/resources/win/light/ScrollBottomPressed.png);
}
QScrollBar::add-page:vertical, QScrollBar::sub-page:vertical {
background: none;
}
/*SCROLLHORIZONTAL*/
QScrollBar:horizontal {
border: 6px solid rgb(0, 0, 0, 0);
margin: 0px 14px 0px 14px;
height: 16px;
}
QScrollBar:horizontal:hover {
border: 5px solid rgb(0, 0, 0, 0);
}
QScrollBar::handle:horizontal {
background-color: rgb(0, 0, 0, 110);
border-radius: 2px;
min-width: 25px;
}
QScrollBar::sub-line:horizontal {
image: url(:/resources/win/light/ScrollLeft.png);
subcontrol-position: left;
subcontrol-origin: margin;
}
QScrollBar::sub-line:horizontal:hover {
image: url(:/resources/win/light/ScrollLeftHover.png);
}
QScrollBar::sub-line:horizontal:pressed {
image: url(:/resources/win/light/ScrollLeftPressed.png);
}
QScrollBar::add-line:horizontal {
image: url(:/resources/win/light/ScrollRight.png);
subcontrol-position: right;
subcontrol-origin: margin;
}
QScrollBar::add-line:horizontal:hover {
image: url(:/resources/win/light/ScrollRightHover.png);
}
QScrollBar::add-line:horizontal:pressed {
image: url(:/resources/win/light/ScrollRightPressed.png);
}
QScrollBar::add-page:horizontal, QScrollBar::sub-page:horizontal {
background: none;
}
/*TEXTEDIT*/
QTextEdit {
background-color: rgb(0, 0, 0, 7);
border: 1px solid rgb(0, 0, 0, 13);
font-size: 16px;
font-family: "Segoe UI", serif;
font-weight: 500;
border-radius: 7px;
border-bottom: 1px solid rgb(0, 0, 0, 100);
padding: 5px;
}
QTextEdit:hover {
background-color: rgb(0, 0, 0, 13);
border: 1px solid rgb(0, 0, 0, 13);
border-bottom: 1px solid rgb(0, 0, 0, 100);
}
QTextEdit:focus {
background-color: rgb(0, 0, 0, 5);
border-top: 1px solid rgb(0, 0, 0, 13);
border-left: 1px solid rgb(0, 0, 0, 13);
border-right: 1px solid rgb(0, 0, 0, 13);
border-bottom: 2px solid %1;
}
QTextEdit:disabled {
color: rgb(0, 0, 0, 110);
background-color: rgb(0, 0, 0, 13);
border: 1px solid rgb(0, 0, 0, 5);
}
/*CALENDAR*/
QCalendarWidget {
}
QCalendarWidget QToolButton {
height: 36px;
font-size: 18px;
background-color: rgb(0, 0, 0, 0);
margin: 5px;
}
QCalendarWidget QWidget#qt_calendar_navigationbar {
background-color: rgb(0, 0, 0, 0);
border: 1px solid rgb(0, 0, 0, 13);
border-top-left-radius: 5px;
border-top-right-radius: 5px;
border-bottom-left-radius: 0px;
border-bottom-right-radius: 0px;
border-bottom: none;
}
QCalendarWidget QMenu {
background-color : #f3f3f3;
}
#qt_calendar_prevmonth {
qproperty-icon: url(:/resources/win/light/PrevMonth.png);
width: 32px;
}
#qt_calendar_nextmonth {
qproperty-icon: url(:/resources/win/light/NextMonth.png);
width: 32px;
}
#qt_calendar_prevmonth:hover, #qt_calendar_nextmonth:hover {
background-color: rgb(0, 0, 0, 10);
border-radius: 5px;
}
#qt_calendar_prevmonth:pressed, #qt_calendar_nextmonth:pressed {
background-color: rgb(0, 0, 0, 7);
border-radius: 5px;
}
#qt_calendar_yearbutton, #qt_calendar_monthbutton {
color: rgb(0, 0, 0);
margin: 5px 0px;
padding: 0px 10px;
}
#qt_calendar_yearbutton:hover, #qt_calendar_monthbutton:hover {
background-color: rgb(0, 0, 0, 10);
border-radius: 5px;
}
#qt_calendar_yearbutton:pressed, #qt_calendar_monthbutton:pressed {
background-color: rgb(0, 0, 0, 7);
border-radius: 5px;
}
QCalendarWidget QToolButton::menu-indicator#qt_calendar_monthbutton {
background-color: transparent;
}
QCalendarWidget QSpinBox {
margin: 5px 0px;
}
QCalendarWidget QSpinBox::focus {
background-color: rgb(0, 0, 0, 5);
border: 1px solid rgb(0, 0, 0, 10);
color: rgb(0, 0, 0, 200);
border-bottom: 2px solid %1;
}
QCalendarWidget QSpinBox::up-button {
image: url(:/resources/win/light/SpinBoxUp.png);
background-color: rgb(0, 0, 0, 0);
border: 1px solid rgb(0, 0, 0, 0);
border-radius: 4px;
margin-top: 1px;
margin-bottom: 1px;
margin-right: 2px;
min-width: 30px;
max-width: 30px;
min-height: 20px;
}
QCalendarWidget QSpinBox::up-button:hover {
background-color: rgb(0, 0, 0, 10);
}
QCalendarWidget QSpinBox::up-button:pressed {
background-color: rgb(0, 0, 0, 5);
}
QCalendarWidget QSpinBox::down-button {
image: url(:/resources/win/light/SpinBoxDown.png);
background-color: rgb(0, 0, 0, 0);
border: 1px solid rgb(0, 0, 0, 0);
border-radius: 4px;
margin-top: 1px;
margin-bottom: 1px;
margin-right: 2px;
min-width: 30px;
max-width: 30px;
min-height: 20px;
}
QCalendarWidget QSpinBox::down-button:hover {
background-color: rgb(0, 0, 0, 10);
}
QCalendarWidget QSpinBox::down-button:pressed {
background-color: rgb(0, 0, 0, 5);
}
QCalendarWidget QWidget {
alternate-background-color: rgb(0, 0, 0, 0);
}
QCalendarWidget QAbstractItemView:enabled {
color: rgb(0, 0, 0);
selection-background-color: %1;
selection-color: black;
border: 1px solid rgb(0, 0, 0, 10);
border-top-left-radius: 0px;
border-top-right-radius: 0px;
border-bottom-left-radius: 5px;
border-bottom-right-radius: 5px;
outline: 0;
}
QCalendarWidget QAbstractItemView:disabled {
color: rgb(30, 30, 30);
selection-background-color: rgb(30, 30, 30);
selection-color: black;
border: 1px solid rgb(0, 0, 0, 13);
border-top-left-radius: 0px;
border-top-right-radius: 0px;
border-bottom-left-radius: 5px;
border-bottom-right-radius: 5px;
}
#qt_calendar_yearbutton:disabled, #qt_calendar_monthbutton:disabled {
color: rgb(0, 0, 0, 110);
}
#qt_calendar_prevmonth:disabled {
qproperty-icon: url(:/resources/win/light/PrevMonthDisabled.png);
}
#qt_calendar_nextmonth:disabled {
qproperty-icon: url(:/resources/win/light/NextMonthDisabled.png);
}
/*TREEWIDGET*/
QTreeView {
background-color: transparent;
border: 1px solid rgb(0, 0, 0, 13);
border-radius: 5px;
outline: 0;
padding-right: 5px;
}
QTreeView::item {
padding: 7px;
margin-top: 3px;
}
QTreeView::item:selected {
color: rgb(0, 0, 0);
background-color: rgb(0, 0, 0, 7);
border-radius: 5px;
margin-bottom: 3px;
padding-left: 0px;
}
QTreeView::item:!selected:hover {
background-color: rgb(0, 0, 0, 13);
border-radius: 5px;
margin-bottom: 3px;
padding-left: 0px;
}
QTreeView::branch:has-children:!has-siblings:closed,
QTreeView::branch:closed:has-children:has-siblings {
image: url(:/resources/win/light/TreeViewClose.png);
}
QTreeView::branch:open:has-children:!has-siblings,
QTreeView::branch:open:has-children:has-siblings {
image: url(:/resources/win/light/TreeViewOpen.png);
}
QTreeView:disabled {
color: rgb(0, 0, 0, 110);
}
/*TOGGLESWITCH*/
#toggleSwitch {
color: rgb(0, 0, 0);
font-size: 17px;
font-family: "Segoe UI Variable Small", serif;
font-weight: 400;
}
#toggleSwitch::indicator {
width: 22px;
height: 22px;
border-radius: 13px;
border: 2px solid #999999;
background-color: rgb(0, 0, 0, 0);
image: url(:/resources/win/light/ToggleSwitchOff.png);
margin-right: 5px;
padding-right: 25px;
padding-left: 0px;
}
#toggleSwitch::indicator:hover {
background-color: rgb(0, 0, 0, 15);
image: url(:/resources/win/light/ToggleSwitchOffHover.png);
}
#toggleSwitch::indicator:pressed {
background-color: rgb(0, 0, 0, 24);
width: 26px;
padding-right: 21px;
image: url(:/resources/win/light/ToggleSwitchOffPressed.png);
}
#toggleSwitch::indicator:checked {
background-color: %1;
border: 2px solid %1;
image: url(:/resources/win/light/ToggleSwitchOn.png);
color: rgb(255, 255, 255);
padding-left: 25px;
padding-right: 0px;
}
#toggleSwitch::indicator:checked:hover {
background-color: %1;
image: url(:/resources/win/light/ToggleSwitchOnHover.png);
}
#toggleSwitch::indicator:checked:pressed {
background-color: %1;
width: 26px;
padding-left: 21px;
image: url(:/resources/win/light/ToggleSwitchOnPressed.png);
}
#toggleSwitch:disabled {
color: rgb(0, 0, 0, 110);
}
#toggleSwitch::indicator:disabled {
border: 2px solid #bbbbbb;
image: url(:/resources/win/light/ToggleSwitchDisabled.png);
}
/*HYPERLINKBUTTON*/
#hyperlinkButton {
color: %1;
font-size: 17px;
font-family: "Segoe UI Variable Small", serif;
border-radius: 5px;
background-color: rgb(0, 0, 0, 0);
border: none;
}
#hyperlinkButton:hover {
background-color: rgb(0, 0, 0, 10);
}
#hyperlinkButton::pressed {
background-color: rgb(0, 0, 0, 7);
color: %1;
}
#hyperlinkButton:disabled {
color: rgb(0, 0, 0, 110)
}
/*LISTVIEW*/
QListView {
background-color: transparent;
font-size: 17px;
font-family: "Segoe UI Variable Small", serif;
font-weight: 400;
padding: 7px;
border-radius: 10px;
outline: 0;
}
QListView::item {
height: 35px;
}
QListView::item:selected {
background-color: rgb(0, 0, 0, 13);
color: black;
border-radius: 5px;
padding-left: 0px;
}