qt/LedOK/css.css
2023-08-01 11:42:41 +08:00

180 lines
3.6 KiB
CSS

Table {selection-background-color: #8ce;}
QLineEdit,QComboBox,QAbstractSpinBox {
border: 1px solid #aaa;
border-radius: 3px;
padding: 2px;
}
QGroupBox {
border: 1px solid #aaa;
border-radius: 3px;
margin-top: 0.5em;
padding-top: 0.4em;
}
QGroupBox::title {
subcontrol-origin: margin;
left: 0.5em;
}
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, QTreeWidget::indicator {
border-image: url(:/res/CheckBoxUnchecked.png); width: 1em; height: 1em; margin-left: 0.25em;
}
QCheckBox::indicator:checked, QTreeWidget::indicator:checked {
border-image: url(:/res/CheckBoxChecked.png);
}
QCheckBox::indicator:disabled {
background-color: #666;
}
ExtendedGroupBox::indicator {
border-image: url(:/res/groupbox-unchecked.png);
}
ExtendedGroupBox::indicator:checked {
border-image: url(:/res/groupbox-checked.png);
}
QScrollArea {
border : 0;
}
QScrollBar:vertical {
width: 12px;
}
QScrollBar:horizontal {
height: 12px;
}
QMenu {
background-color: #eee;
border: 2px solid #ccc;
}
QMenu::item {
background-color: transparent;
}
QMenu::item:selected {
background-color: #8CD;
}
QListWidget {
selection-background-color: #8ce;
}
LoColorSelector {
border: 1px solid #aaa;
border-radius: 4px;
background-color: transparent;
padding: 3px 6px;
max-height: 30px;
font-size: 14px;
}
QTreeWidget[ssType="topList"]::item {
border-right: 1px solid #ddd;
border-bottom: 1px solid #ddd;
height: 40px;
}
QTreeWidget[ssType="topList"] QHeaderView::section {
border-top: 1px solid #aaa;
border-bottom: 1px solid #aaa;
border-left: 0;
border-right: 0;
height: 36px;
}
QTreeWidget[ssType="topList"]::item:hover {
background-color: #ddd;
}
QPushButton[ssType="progManageTool"] {
border-radius: 4px;
background-color: #19c;
color: #000;
padding: 3px 6px;
}
QPushButton[ssType="progManageTool"]:hover {
background-color: #08b;
color: #fff;
}
QPushButton[ssType="progManageTool"]:pressed {
background-color: #07a;
}
QPushButton[ssType="progManageTool"]:disabled {
background-color: #bbb;
color: #777;
}
LoQTitleBar QPushButton {
border-radius: 4px;
icon-size: 20px;
width: 32px;
height: 28px;
}
LoQTitleBar QPushButton:press,
LoQTitleBar QPushButton:hover {
background-color: #C1C1C1;
}
LoQTitleBar QPushButton::menu-indicator {
image: none;
}
QToolButton[ss="MainTab"],
QToolButton[ss="CtrlTab"] {
border: none;
}
QToolButton[ss="MainTab"]:checked,
QToolButton[ss="MainTab"]:hover {
background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #ddd, stop: 1.0 #8cd);
font-size: 13px;
color: #04d;
}
QToolButton[ss="CtrlTab"]:checked,
QToolButton[ss="CtrlTab"]:hover {
background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #eee, stop: 1.0 #ade);
font-size: 13px;
color: #04d;
}
QPushButton#bnSelectFile {
border-radius: 4px;
background-color: #19c;
border: 1px solid #888;
padding: 3px 6px;
}
QPushButton#bnSelectFile:pressed {
background: transparent;
}
QPushButton[style="multiTool"] {
border-radius: 4px;
padding: 3px 6px;
}
QPushButton[style="multiTool"]:hover {
background-color: rgba(226,226,226,1);
}