qt/LedOK/qss1/00_Common.css
2022-01-04 18:11:48 +08:00

241 lines
4.6 KiB
CSS

/* Common */
QWidget {
/* font */
font-family: Arial;
font-size: 14px;
font-weight: 450;
color: rgba(0,0,0,1);
}
QWidget[ssPrettify="fillet"] { border-radius:5px; }
QWidget[ssBackground="black"] { background-color: #000000; border: 0px; }
QWidget[ssBackground="dark"] { background-color: #D8D8D8; border: 0px; }
QWidget[ssBackground="bright"] { background-color: #ECECEC; border: 0px; }
QLabel,
QCheckBox,
QTabWidget,
QScrollArea,
QPushButton,
QListWidget,
QTreeWidget,
QToolBar QWidget {
/* background-color: transparent;*/
border: 0px solid #8d8d8d;
}
QTreeView::item {
border: 1px solid #d9d9d9;
border-top-color: transparent;
border-left-color: transparent;
border-right-color: #d9d9d9;
border-bottom-color: #d9d9d9;
}
QGraphicsView {
background-color: #ECECEC;
border: 0px;
}
/* PushButton */
QPushButton{
border-radius: 4px;
padding-left:5px;
padding-right:5px;
padding-top:2px;
padding-bottom:2px;
}
QPushButton:pressed {
margin-top: 0px;
margin-left: 0px;
}
QPushButton:hover {
/* background-color: rgba(222,90,90,1);*/
background-color: rgba(226,226,226,1);
}
/* Menu */
QMenu {
background-color: #ECECEC;
border: 2px solid #C2C7CB;
}
QMenu::item {
background-color: transparent;
}
QMenu::item:selected {
background-color: #8FC0D6;
}
QMenu::indicator:exclusive:checked {
image: url(:/res/RadioChecked.png);
}
/* Dialog */
QDialog,
QDialog QFrame {
background-color: rgba(216,216,216,1);
border-radius: 5px;
}
QDialog QPushButton {
background-color: rgba(28,154,210,1);
/* width: 66;
height: 28;*/
color: rgba(255,255,255,1);
}
QToolButton:hover
{
background-color: rgba(226,226,226,1);
}
QDialog QPushButton#bnOK {
background-color: rgba(28,154,210,1);
/* width: 66;
height: 28;*/
color: rgba(255,255,255,1);
}
QDialog QPushButton#bnOK:pressed {
background-color: rgba(28,154,210,0.6);
}
QDialog QPushButton#bnCancel {
background-color: #6A838F;
border: 1px solid #6A838F;
/* width: 64;
height: 28;*/
}
QDialog QPushButton#bnCancel:pressed {
background-color: #6A838F;
border: 0;
color: rgba(255,255,255,1);
}
/* Edit */
QSpinBox,
QComboBox,
QTimeEdit,
QDateEdit,
QLineEdit {
height: 22;
}
QSpinBox,
QComboBox,
QTimeEdit,
QDateEdit,
QLineEdit,
QTextEdit[readOnly="false"] {
background-color: white;
border: 1px solid #6A838F;
border-radius: 3px;
}
QSpinBox:disabled {
background-color: transparent;
}
QSpinBox[readOnly="true"],
QComboBox[readOnly="true"],
QTimeEdit[readOnly="true"],
QDateEdit[readOnly="true"],
QTextEdit[readOnly="true"] {
/* background-color: transparent;*/
border: 0;
}
QTimeEdit::up-button,
QTimeEdit::down-button,
QDateEdit::up-button,
QDateEdit::down-button,
QSpinBox::up-button,
QSpinBox::down-button {
border: 0;
}
QTimeEdit::up-arrow,
QDateEdit::up-arrow,
QSpinBox::up-arrow {
image: url(:/res/ArrowDropUp.png);
}
QTimeEdit::down-arrow,
QDateEdit::down-arrow,
QSpinBox::down-arrow {
image: url(:/res/ArrowDropDown.png);
}
QComboBox::drop-down {
border: 0px;
}
QComboBox::down-arrow {
image: url(:/res/ArrowDropDown.png);
}
QTimeEdit::up-arrow:pressed,
QDateEdit::up-arrow:pressed,
QSpinBox::up-arrow:pressed {
top: -1px;
left: 1px;
}
QTimeEdit::down-arrow:pressed,
QDateEdit::down-arrow:pressed,
QSpinBox::down-arrow:pressed,
QComboBox::down-arrow:on {
top: 1px;
left: 1px;
}
/* Check Box */
QCheckBox::indicator {
width: 24px;
height: 24px;
}
QCheckBox::indicator:disabled {
background-color: #515151;
}
QCheckBox::indicator:unchecked {
image: url(:/res/CheckBoxUnchecked.png);
}
QCheckBox::indicator:checked {
image: url(:/res/CheckBoxChecked.png);
}
/*QCheckBox[ssType="header"]::indicator {
width: 24px;
height: 24px;
}
QCheckBox[ssType="header"]::indicator:unchecked {
image: url(:/res/CheckBoxUnchecked.png);
}
QCheckBox[ssType="header"]::indicator:checked {
image: url(:/res/CheckBoxChecked.png);
}*/
/* QScrollBar */
QScrollBar:vertical {
width:10px;
background:rgba(0,0,0,0%);
padding-top:6px;
padding-bottom:6px;
}
QScrollBar:horizontal {
height: 10px;
background:rgba(0,0,0,0%);
padding-left:6px;
padding-right:6px;
}
/* LoClass */
LoColorSelector {
background-color: transparent;
border: 1px solid #6A838F;
max-width: 30;
max-height: 30;
}
LoDateSelector {
background-color: transparent;
image: url(:/res/ProgramManager/EditProgram/DateSelect_enable.png);
max-width: 32;
max-height: 32;
}
LoDateSelector:!enabled{
image: url(:/res/ProgramManager/EditProgram/DateSelect.png);
}
LoDateSelector:pressed {
margin-top: 1px;
margin-left: 1px;
}