qt/LedOK/css.css
2023-09-19 11:49:20 +08:00

151 lines
3.0 KiB
CSS

QListWidget, QTreeWidget, TableWidget {selection-background-color: #4ae;}
QCheckBox::indicator, QTableWidget::indicator, QTreeWidget::indicator {
width: 1.15em; height: 1.15em;
}
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;
}
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;
}
LoColorSelector {
border: 1px solid #aaa;
border-radius: 4px;
background-color: transparent;
padding: 3px 6px;
max-height: 30px;
font-size: 14px;
}
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);
}