qt/LedOK/qss/00_Common.css
2022-08-25 18:37:24 +08:00

126 lines
2.5 KiB
CSS

QLineEdit,QComboBox,QAbstractSpinBox {
border: 1px solid #aaaaaa;
border-radius: 3px;
padding: 2px;
}
QGroupBox {
border: 1px solid #aaaaaa;
border-radius: 3px;
margin-top: 1.2ex;
padding-top: 1ex;
}
QGroupBox::title {
subcontrol-origin: margin;
position: relative;
left: 1.4ex;
}
QComboBox::drop-down,
QAbstractSpinBox::up-button,
QAbstractSpinBox::down-button {
border: 0;
}
QComboBox::down-arrow,
QAbstractSpinBox::down-arrow {
image: url(:/res/ArrowDropDown.png);
}
QComboBox::down-arrow:on,
QAbstractSpinBox::up-arrow {
image: url(:/res/ArrowDropUp.png);
}
QAbstractSpinBox::up-arrow:pressed {
top: -1px;
}
QAbstractSpinBox::down-arrow:pressed {
top: 1px;
}
QCheckBox::indicator {
width: 24px;
height: 24px;
}
QCheckBox::indicator:disabled {
background-color: #666666;
}
QCheckBox::indicator:unchecked {
image: url(:/res/CheckBoxUnchecked.png);
}
QCheckBox::indicator:checked {
image: url(:/res/CheckBoxChecked.png);
}
ExtendedGroupBox::indicator {
width: 10px;
height: 10px;
}
ExtendedGroupBox::indicator:unchecked {
image: url(:/res/ProgramManager/EditProgram/uncheck.png);
}
ExtendedGroupBox::indicator:checked {
image: url(:/res/ProgramManager/EditProgram/check.png);
}
QScrollArea {
border : 0;
}
QScrollBar:vertical {
width: 12px;
}
QScrollBar:horizontal {
height: 12px;
}
QMenu {
background-color: #eeeeee;
border: 2px solid #cccccc;
}
QMenu::item {
background-color: transparent;
}
QMenu::item:selected {
background-color: #8FC0D6;
}
QMenu::indicator:exclusive:checked {
image: url(:/res/RadioChecked.png);
}
QToolBar::separator {
background-color: #888888;
width: 1px;
}
LoColorSelector {
border: 1px solid #aaaaaa;
border-radius: 4px;
background-color: transparent;
padding: 3px 6px;
max-height: 30px;
}
QTreeWidget[ssType="topList"]::item {
border-right: 1px solid #dddddd;
border-bottom: 1px solid #dddddd;
height: 40px;
}
QTreeWidget[ssType="topList"] QHeaderView::section {
border-top: 1px solid #aaaaaa;
border-bottom: 1px solid #aaaaaa;
border-left: 0;
border-right: 0;
height: 36px;
}
QTreeWidget[ssType="topList"]::item:hover {
background-color: #dddddd;
}
QTreeWidget[ssType="topList"]::indicator,
QTreeWidget[ssType="topList"]::indicator:unchecked {
image: url(:/res/CheckBoxUnchecked.png);
}
QTreeWidget[ssType="topList"]::indicator:checked {
image: url(:/res/CheckBoxChecked.png);
}