Files
MDHelper/mdhelper/resources/ui_style_dialog.qss
T

179 lines
4.2 KiB
Plaintext

QDialog {
background: ${chrome};
color: ${text};
}
QLabel {
color: ${text};
}
QLineEdit,
QTextEdit,
QComboBox,
QFontComboBox,
QSpinBox,
QDoubleSpinBox {
background: ${surface};
color: ${text};
border: 1px solid ${border};
border-radius: 4px;
padding: 4px 6px;
selection-background-color: ${selected};
}
QLineEdit#styleNameEdit {
min-height: 24px;
font-weight: 600;
}
QLineEdit:focus,
QTextEdit:focus,
QComboBox:focus,
QFontComboBox:focus,
QSpinBox:focus,
QDoubleSpinBox:focus {
border-color: ${focus};
}
QSpinBox,
QDoubleSpinBox {
padding-right: 18px;
}
QSpinBox::up-button,
QDoubleSpinBox::up-button,
QSpinBox::down-button,
QDoubleSpinBox::down-button {
width: 15px;
background: transparent;
border-left: 1px solid ${border};
}
QSpinBox::up-button,
QDoubleSpinBox::up-button {
subcontrol-origin: border;
subcontrol-position: top right;
border-bottom: 1px solid ${border};
border-top-right-radius: 3px;
}
QSpinBox::down-button,
QDoubleSpinBox::down-button {
subcontrol-origin: border;
subcontrol-position: bottom right;
border-bottom-right-radius: 3px;
}
QSpinBox::up-button:hover,
QDoubleSpinBox::up-button:hover,
QSpinBox::down-button:hover,
QDoubleSpinBox::down-button:hover {
background: ${hover};
}
QSpinBox::up-arrow,
QDoubleSpinBox::up-arrow,
QSpinBox::down-arrow,
QDoubleSpinBox::down-arrow {
width: 7px;
height: 7px;
}
QCheckBox {
color: ${text};
}
QListWidget#styleTargetList {
background: ${surface};
color: ${text};
border: 1px solid ${border};
border-radius: 6px;
padding: 4px;
outline: 0;
}
QListWidget#styleTargetList::item {
min-height: 28px;
padding: 4px 8px;
border-radius: 4px;
}
QListWidget#styleTargetList::item:hover {
background: ${hover};
}
QListWidget#styleTargetList::item:selected {
background: ${selected};
color: ${text};
}
QGroupBox#styleSection {
background: ${surface};
color: ${text};
border: 1px solid ${border};
border-radius: 6px;
margin-top: 10px;
font-weight: 600;
}
QGroupBox#styleSection::title {
subcontrol-origin: margin;
left: 10px;
padding: 0 5px;
background: ${chrome};
}
QFrame#stylePreview {
background: ${surface};
border: 1px solid ${border};
border-radius: 6px;
}
QLabel#stylePreviewTitle {
color: ${muted};
font-weight: 600;
}
QLabel#stylePreviewText {
color: ${text};
line-height: 1.5;
}
QPushButton {
background: ${surface};
color: ${text};
border: 1px solid ${border};
border-radius: 4px;
padding: 6px 12px;
}
QPushButton:hover {
background: ${hover};
}
QPushButton#styleResetButton {
color: ${muted};
}
QTabWidget::pane {
border: 1px solid ${border};
background: ${surface};
border-radius: 6px;
top: -1px;
}
QTabBar::tab {
background: ${chrome};
color: ${muted};
border: 1px solid ${border};
border-bottom: 0;
padding: 7px 14px;
}
QTabBar::tab:selected {
background: ${surface};
color: ${text};
border-color: ${border};
}