You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
610 lines
13 KiB
CSS
610 lines
13 KiB
CSS
/*
|
|
* WTAI's css setting
|
|
* By WANG, Zhan-guo
|
|
* Created On: 2017-04-05
|
|
* Modified On: 2022-06-13
|
|
*/
|
|
/*对话框的背景色 白色*/
|
|
QWidget{
|
|
/* background: #ffffff;*/
|
|
}
|
|
|
|
/* QPushButton */
|
|
QPushButton {
|
|
/*border: none; 去掉默认边框*/
|
|
background: transparent;
|
|
}
|
|
QPushButton::menu-indicator {
|
|
subcontrol-position: right bottom;
|
|
subcontrol-origin: padding;
|
|
left: -2px;
|
|
}
|
|
QPushButton:hover:pressed {
|
|
background-color: #0081cf;
|
|
}
|
|
QPushButton:hover:!pressed {
|
|
background-color: #0081cf;
|
|
border-radius: 5px;
|
|
box-sizing: border-box; /* 确保边框包含在元素的总尺寸中 */
|
|
}
|
|
QPushButton {
|
|
color: black;
|
|
}
|
|
|
|
|
|
/* QToolBar */
|
|
QToolBar {
|
|
background-color: transparent;
|
|
border-style : dotted;
|
|
}
|
|
QToolBar:handle {
|
|
}
|
|
QToolBar::separator {
|
|
}
|
|
|
|
|
|
|
|
/* === QToolButton === */
|
|
QToolButton {
|
|
background-color: transparent;
|
|
}
|
|
QToolButton:hover {
|
|
background-color: #0081cf;
|
|
}
|
|
QToolButton:checked{ /*选中后*/
|
|
background-color: #0081cf;
|
|
border:none;
|
|
}
|
|
|
|
/*QToolButton:pressed {
|
|
background-color: #8100cf;
|
|
}*/
|
|
|
|
|
|
/* only for MenuButtonPopup */
|
|
QToolButton[popupMode="1"] {
|
|
padding-right: 20px;
|
|
}
|
|
/*QToolButton::menu-button {
|
|
background: transparent;
|
|
width: 16px;
|
|
}*/
|
|
|
|
QDateTimeEdit {
|
|
background: transparent;
|
|
}
|
|
|
|
#qt_calendar_calendarview {
|
|
background: white;
|
|
}
|
|
QCalendarView{
|
|
}
|
|
QCalendarView QHeaderView::section {
|
|
border: 1px solid lightgray;
|
|
height: 1px
|
|
}
|
|
QCalendarView QHeaderView {
|
|
border: 1px solid lightgray;
|
|
height: 1px
|
|
}
|
|
QCalendarView QTableCornerButton::section {
|
|
border: 1px solid lightgray;
|
|
height: 1px
|
|
}
|
|
QCalendarView QScrollBar {
|
|
}
|
|
|
|
QDockWidget::title {
|
|
text-align: left;
|
|
background-color: qlineargradient(spread:pad,x1:0,y1:0,x2:0,y2:1,stop:0 #DEF0FE,stop:1 #C0DEF6);
|
|
padding-left:5px;
|
|
height:20px;
|
|
}
|
|
|
|
QTreeView,QListView,QTableView,QTabWidget::pane{
|
|
border:1px solid #C0DCF2;
|
|
selection-background-color:#F2F9FF;
|
|
selection-color:#386487;
|
|
alternate-background-color:#DAEFFF;
|
|
gridline-color:#C0DCF2;
|
|
}
|
|
|
|
QTreeView,QListView,QTableView,iWxParam,QSplitter::handle,QTreeView::branch{
|
|
background:#EAF7FF;
|
|
}
|
|
|
|
QTableView::item:selected,QListView::item:selected,QTreeView::item:selected{
|
|
color:#386487;
|
|
background:qlineargradient(spread:pad,x1:0,y1:0,x2:0,y2:1,stop:0 #DEF0FE,stop:1 #C0DEF6);
|
|
}
|
|
|
|
QTableView::item:hover,QListView::item:hover,QTreeView::item:hover{
|
|
color:#386487;
|
|
background:qlineargradient(spread:pad,x1:0,y1:0,x2:0,y2:1,stop:0 #F2F9FF,stop:1 #DAEFFF);
|
|
}
|
|
|
|
QTableView::item,QListView::item,QTreeView::item{
|
|
padding:1px;
|
|
margin:0px;
|
|
}
|
|
|
|
QTreeView::branch:closed:has-children{
|
|
margin:4px;
|
|
border-image:url($/ResIcon/Collapse.png);
|
|
}
|
|
|
|
QTreeView::branch:open:has-children{
|
|
margin:4px;
|
|
border-image:url($/ResIcon/Expand.png);
|
|
}
|
|
|
|
QHeaderView::section{
|
|
padding:3px;
|
|
margin:0px;
|
|
color:#386487;
|
|
border:1px solid #C0DCF2;
|
|
border-left-width:0px;
|
|
border-right-width:1px;
|
|
border-top-width:0px;
|
|
border-bottom-width:1px;
|
|
background:qlineargradient(spread:pad,x1:0,y1:0,x2:0,y2:1,stop:0 #F2F9FF,stop:1 #DAEFFF);
|
|
}
|
|
|
|
MdiSubWindowEx::title {
|
|
height:26px;
|
|
}
|
|
|
|
SubMdiSubWindowEx::title {
|
|
height:20px;
|
|
}
|
|
|
|
MdiSubWindowEx
|
|
{
|
|
padding: 5px;
|
|
border-left-width:2px;
|
|
border-right-width:2px;
|
|
border-top-width:2px;
|
|
border-bottom-width:2px;
|
|
|
|
background:#DEF0FE;
|
|
}
|
|
|
|
SubMdiSubWindowEx
|
|
{
|
|
padding: 5px;
|
|
border-left-width:2px;
|
|
border-right-width:2px;
|
|
border-top-width:2px;
|
|
border-bottom-width:2px;
|
|
|
|
background:#DEF0FE;
|
|
}
|
|
|
|
SubMdiSubWindowEx::hover
|
|
{
|
|
background:#C0DCF2;
|
|
}
|
|
|
|
QSlider::groove:horizontal{
|
|
background:#DEF0FE;
|
|
height:8px;
|
|
border-radius:4px;
|
|
}
|
|
|
|
QSlider::add-page:horizontal{
|
|
background:#DEF0FE;
|
|
height:8px;
|
|
border-radius:4px;
|
|
}
|
|
|
|
QSlider::sub-page:horizontal{
|
|
background:#C0DCF2;
|
|
height:8px;
|
|
border-radius:4px;
|
|
}
|
|
|
|
QSlider::handle:horizontal{
|
|
width:13px;
|
|
margin-top:-3px;
|
|
margin-bottom:-3px;
|
|
border-radius:6px;
|
|
background:qradialgradient(spread:pad,cx:0.5,cy:0.5,radius:0.5,fx:0.5,fy:0.5,stop:0.6 #EAF7FF,stop:0.8 #C0DCF2);
|
|
}
|
|
|
|
QSlider::groove:vertical{
|
|
width:8px;
|
|
border-radius:4px;
|
|
background:#DEF0FE;
|
|
}
|
|
|
|
QSlider::add-page:vertical{
|
|
width:8px;
|
|
border-radius:4px;
|
|
background:#DEF0FE;
|
|
}
|
|
|
|
QSlider::sub-page:vertical{
|
|
width:8px;
|
|
border-radius:4px;
|
|
background:#C0DCF2;
|
|
}
|
|
|
|
QSlider::handle:vertical{
|
|
height:14px;
|
|
margin-left:-3px;
|
|
margin-right:-3px;
|
|
border-radius:6px;
|
|
background:qradialgradient(spread:pad,cx:0.5,cy:0.5,radius:0.5,fx:0.5,fy:0.5,stop:0.6 #EAF7FF,stop:0.8 #C0DCF2);
|
|
}
|
|
|
|
QScrollBar:horizontal{
|
|
background:#DEF0FE;
|
|
padding:0px;
|
|
border-radius:6px;
|
|
max-height:12px;
|
|
}
|
|
|
|
QScrollBar::handle:horizontal{
|
|
background:#ADD8E6;
|
|
min-width:50px;
|
|
border-radius:6px;
|
|
}
|
|
|
|
QScrollBar::handle:horizontal:hover{
|
|
background:#C0DCF2;
|
|
}
|
|
|
|
QScrollBar::handle:horizontal:pressed{
|
|
background:#C0DCF2;
|
|
}
|
|
|
|
QScrollBar::add-page:horizontal{
|
|
background:none;
|
|
}
|
|
|
|
QScrollBar::sub-page:horizontal{
|
|
background:none;
|
|
}
|
|
|
|
QScrollBar::add-line:horizontal{
|
|
background:none;
|
|
}
|
|
|
|
QScrollBar::sub-line:horizontal{
|
|
background:none;
|
|
}
|
|
|
|
QScrollBar:vertical{
|
|
background:#DEF0FE;
|
|
padding:0px;
|
|
border-radius:6px;
|
|
max-width:12px;
|
|
}
|
|
|
|
QScrollBar::handle:vertical{
|
|
background:#ADD8E6;
|
|
min-height:50px;
|
|
border-radius:6px;
|
|
}
|
|
|
|
QScrollBar::handle:vertical:hover{
|
|
background:#C0DCF2;
|
|
}
|
|
|
|
QScrollBar::handle:vertical:pressed{
|
|
background:#C0DCF2;
|
|
}
|
|
|
|
QScrollBar::add-page:vertical{
|
|
background:none;
|
|
}
|
|
|
|
QScrollBar::sub-page:vertical{
|
|
background:none;
|
|
}
|
|
|
|
QScrollBar::add-line:vertical{
|
|
background:none;
|
|
}
|
|
|
|
QScrollBar::sub-line:vertical{
|
|
background:none;
|
|
}
|
|
|
|
QScrollArea{
|
|
border:0px;
|
|
}
|
|
|
|
|
|
/*Ribbon*/
|
|
|
|
QMenu {
|
|
background-color: #FCFCFC;
|
|
border: 1px solid #8492A6;
|
|
}
|
|
QMenu::item {
|
|
background-color: transparent;
|
|
}
|
|
iWxMenuItem::hover{
|
|
border: 1px solid #FFB700;
|
|
background-color: qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1,stop:0 #FEF9F4, stop:0.38 #FDE0BD,stop:0.39 #FFCE69, stop:1 #FFFFE7);
|
|
}
|
|
QMenu::item:selected {
|
|
background-color: #654321;
|
|
}
|
|
|
|
#btnRibbonFile::menu-indicator{
|
|
image:None;
|
|
}
|
|
|
|
#btnRibbonFile{
|
|
min-width:50px;
|
|
max-width:50px;
|
|
height:22px;
|
|
|
|
color:white;
|
|
border: 1px solid #416ABD;
|
|
border-top-left-radius: 2px;
|
|
border-top-right-radius: 2px;
|
|
background-color: qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1,
|
|
stop:0 #467FBD, stop:0.5 #2A5FAC,stop:0.51 #1A4088, stop:1 #419ACF);
|
|
}
|
|
#btnRibbonFile::hover{
|
|
background-color: qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1,
|
|
stop:0 #7BB2EB, stop:0.5 #477ECD,stop:0.51 #114ECF, stop:1 #80E1FF);
|
|
}
|
|
#btnRibbonFile::pressed{
|
|
background-color: qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1,
|
|
stop:0 #467BBB, stop:0.5 #2F63AE,stop:0.51 #1C438A, stop:1 #358BC9);
|
|
}
|
|
QDialog#iWxRibbon
|
|
{
|
|
background-color: qlineargradient(spread:pad,x1:0,y1:0,x2:0,y2:1,stop:0 #DEF0FE,stop:1 #C0DEF6);
|
|
}
|
|
#tabWxMain QTabBar
|
|
{
|
|
background-color: qlineargradient(spread:pad,x1:0,y1:0,x2:0,y2:1,stop:0 #DEF0FE,stop:1 #C0DEF6);
|
|
}
|
|
#tabWxMain::tab-bar {
|
|
left: 65px;
|
|
}
|
|
#tabWxMain QTabBar::tab{
|
|
height:24px;
|
|
background: transparent;
|
|
}
|
|
#tabWxMain QTabBar::tab:selected
|
|
{
|
|
background: qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1,
|
|
stop:0 #467FBD, stop:0.5 #2A5FAC,stop:0.51 #1A4088, stop:1 #419ACF);
|
|
color : #ffffff;
|
|
}
|
|
#tabWxMain QTabBar::tab:!selected
|
|
{
|
|
background-color: qlineargradient(spread:pad,x1:0,y1:0,x2:0,y2:1,stop:0 #DEF0FE,stop:1 #C0DEF6);
|
|
}
|
|
|
|
#tabWxMain QTabBar::tab:hover :selected
|
|
{
|
|
background-color:qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1,
|
|
stop:0 #7BB2EB, stop:0.5 #477ECD,stop:0.51 #114ECF, stop:1 #80E1FF);
|
|
color : #ffffff;
|
|
}
|
|
#tabWxMain QTabBar::tab:hover:!selected
|
|
{
|
|
background-color:qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1,
|
|
stop:0 #7BB2EB, stop:0.5 #477ECD,stop:0.51 #114ECF, stop:1 #80E1FF);
|
|
color : #ffffff;
|
|
}
|
|
|
|
#tabWxMain QTabWidget::pane{
|
|
background-color: transparent;
|
|
}
|
|
|
|
#tabWxMain::pane
|
|
{
|
|
border-width: 1px;
|
|
border-color: rgb(192, 192, 192);
|
|
border-style:solid;
|
|
top: -1px;/*background-color:grey;*/
|
|
}
|
|
|
|
#tabWxMain QGroupBox{
|
|
border-left: 1px solid #B0B0B0;
|
|
border-top: 0px solid gray;
|
|
}
|
|
#tabWxMain QGroupBox::title {
|
|
color: #081121/*#738399*/;
|
|
subcontrol-position: bottom center;
|
|
}
|
|
|
|
TabWidgetEx#mTabWidget QTabBar::tab{
|
|
border:1px solid #C0DCF2;
|
|
color:#386487;
|
|
margin:0px;
|
|
background:qlineargradient(spread:pad,x1:0,y1:0,x2:0,y2:1,stop:0 #F2F9FF,stop:1 #DAEFFF);
|
|
}
|
|
|
|
TabWidgetEx#mTabWidget QTabBar::tab:selected,TabWidgetEx#mTabWidget QTabBar::tab:hover{
|
|
border-style:solid;
|
|
background:qlineargradient(spread:pad,x1:0,y1:0,x2:0,y2:1,stop:0 #DEF0FE,stop:1 #C0DEF6);
|
|
}
|
|
|
|
TabWidgetEx#mTabWidget QTabBar::tab:top,TabWidgetEx#mTabWidget QTabBar::tab:bottom{
|
|
padding:3px 8px 3px 8px;
|
|
}
|
|
|
|
TabWidgetEx#mTabWidget QTabBar::tab:left,TabWidgetEx#mTabWidget QTabBar::tab:right{
|
|
padding:8px 3px 8px 3px;
|
|
}
|
|
|
|
TabWidgetEx#mTabWidget QTabBar::tab:top:selected,TabWidgetEx#mTabWidget QTabBar::tab:top:hover{
|
|
border-width:2px 0px 0px 0px;
|
|
}
|
|
|
|
TabWidgetEx#mTabWidget QTabBar::tab:right:selected,TabWidgetEx#mTabWidget QTabBar::tab:right:hover{
|
|
border-width:0px 0px 0px 2px;
|
|
}
|
|
|
|
TabWidgetEx#mTabWidget QTabBar::tab:bottom:selected,TabWidgetEx#mTabWidget QTabBar::tab:bottom:hover{
|
|
border-width:0px 0px 2px 0px;
|
|
}
|
|
|
|
TabWidgetEx#mTabWidget QTabBar::tab:left:selected,TabWidgetEx#mTabWidget QTabBar::tab:left:hover{
|
|
border-width:0px 2px 0px 0px;
|
|
}
|
|
|
|
TabWidgetEx#mTabWidget QTabBar::tab:first:top:selected,TabWidgetEx#mTabWidget QTabBar::tab:first:top:hover,TabWidgetEx#mTabWidget QTabBar::tab:first:bottom:selected,TabWidgetEx#mTabWidget QTabBar::tab:first:bottom:hover{
|
|
border-left-width:1px;
|
|
border-left-color:#C0DCF2;
|
|
}
|
|
|
|
TabWidgetEx#mTabWidget QTabBar::tab:first:left:selected,TabWidgetEx#mTabWidget QTabBar::tab:first:left:hover,TabWidgetEx#mTabWidget QTabBar::tab:first:right:selected,TabWidgetEx#mTabWidget QTabBar::tab:first:right:hover{
|
|
border-top-width:1px;
|
|
border-top-color:#C0DCF2;
|
|
}
|
|
|
|
TabWidgetEx#mTabWidget QTabBar::tab:last:top:selected,TabWidgetEx#mTabWidget QTabBar::tab:last:top:hover,TabWidgetEx#mTabWidget QTabBar::tab:last:bottom:selected,TabWidgetEx#mTabWidget QTabBar::tab:last:bottom:hover{
|
|
border-right-width:1px;
|
|
border-right-color:#C0DCF2;
|
|
}
|
|
|
|
TabWidgetEx#mTabWidget QTabBar::tab:last:left:selected,TabWidgetEx#mTabWidget QTabBar::tab:last:left:hover,TabWidgetEx#mTabWidget QTabBar::tab:last:right:selected,TabWidgetEx#mTabWidget QTabBar::tab:last:right:hover{
|
|
border-bottom-width:1px;
|
|
border-bottom-color:#C0DCF2;
|
|
}
|
|
|
|
iDlgBase
|
|
{
|
|
background-color: #FFFFFF;
|
|
}
|
|
|
|
QGroupBox#gbxCurrentProjs
|
|
{
|
|
background-color: #DAEFFF;
|
|
}
|
|
/*
|
|
QGroupBox#groupBox_2
|
|
{
|
|
background-color: qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:0,stop:0 #FEF9F4, stop:0.38 #FDE0BD,stop:0.39 #FFCE69, stop:1 #FFFFE7);
|
|
}*/
|
|
|
|
QRadioButton::indicator::unchecked{
|
|
image:url($/ResIcon/radiobutton_unchecked.png);
|
|
}
|
|
|
|
QRadioButton::indicator::unchecked:disabled{
|
|
image:url($/ResIcon/radiobutton_unchecked_disable.png);
|
|
}
|
|
|
|
QRadioButton::indicator::checked{
|
|
image:url($/ResIcon/radiobutton_checked.png);
|
|
}
|
|
|
|
QRadioButton::indicator::checked:disabled{
|
|
image:url($/ResIcon/radiobutton_checked_disable.png);
|
|
}
|
|
|
|
QCheckBox::indicator:unchecked,QGroupBox::indicator:unchecked,QTreeWidget::indicator:unchecked,QListWidget::indicator:unchecked{
|
|
image:url($/ResIcon/checkbox_unchecked.png);
|
|
}
|
|
|
|
QCheckBox::indicator:unchecked:disabled,QGroupBox::indicator:unchecked:disabled,QTreeWidget::indicator:unchecked:disabled,QListWidget::indicator:disabled{
|
|
image:url($/ResIcon/checkbox_unchecked_disable.png);
|
|
}
|
|
|
|
QCheckBox::indicator:checked,QGroupBox::indicator:checked,QTreeWidget::indicator:checked,QListWidget::indicator:checked{
|
|
image:url($/ResIcon/checkbox_checked.png);
|
|
}
|
|
|
|
QCheckBox::indicator:checked:disabled,QGroupBox::indicator:checked:disabled,QTreeWidget::indicator:checked:disabled,QListWidget::indicator:checked:disabled{
|
|
image:url($/ResIcon/checkbox_checked_disable.png);
|
|
}
|
|
|
|
QCheckBox::indicator:indeterminate,QGroupBox::indicator:indeterminate,QTreeWidget::indicator:indeterminate,QListWidget::indicator:indeterminate{
|
|
image:url($/ResIcon/checkbox_parcial.png);
|
|
}
|
|
|
|
QCheckBox::indicator:indeterminate:disabled,QGroupBox::indicator:indeterminate:disabled,QTreeWidget::indicator:indeterminate:disabled,QListWidget::indicator:indeterminate:disabled{
|
|
image:url($/ResIcon/checkbox_parcial_disable.png);
|
|
}
|
|
|
|
/* QComboBox*/
|
|
QComboBox {
|
|
background-color: transparent;
|
|
border: 1px solid gray;
|
|
border-radius: 3px;
|
|
padding: 1px 2px 1px 2px;
|
|
min-width: 3em;
|
|
}
|
|
|
|
ZxHeaderComboBoxEx{
|
|
background-color: light gray;
|
|
min-width: 1em;
|
|
}
|
|
|
|
QComboBox::drop-down {
|
|
subcontrol-origin: padding;
|
|
subcontrol-position: top right;
|
|
width: 20px;
|
|
|
|
border-left-width: 1px;
|
|
border-left-color: darkgray;
|
|
border-left-style: solid;
|
|
border-top-right-radius: 3px;
|
|
border-bottom-right-radius: 3px;
|
|
}
|
|
QComboBox::down-arrow {
|
|
/*border: 2px solid #333333;*/
|
|
/* background: #5f5f5f;*/
|
|
/* border-style : dotted;*/
|
|
image: url($/ResIcon/CbxBtn.png);
|
|
}
|
|
|
|
/* QSpinBox */
|
|
QSpinBox {
|
|
background-color: transparent;
|
|
/* border: 1px solid gray;*/
|
|
}
|
|
|
|
|
|
|
|
/* QDoubleSpinBox */
|
|
QDoubleSpinBox {
|
|
background-color: transparent;
|
|
/* border: 1px solid gray;*/
|
|
}
|
|
|
|
|
|
/* QGroupBox */
|
|
QGroupBox {
|
|
background-color: transparent;
|
|
}
|
|
QGroupBox::title {
|
|
color: blue;
|
|
subcontrol-origin: margin;
|
|
subcontrol-position: top left;
|
|
margin-left: 5px;
|
|
}
|
|
|
|
|
|
|
|
/* QSplitter */
|
|
QSplitter {
|
|
/* background-color: transparent;*/
|
|
}
|
|
QSplitter::handle {
|
|
background-color:light blue;
|
|
border-width:0px;
|
|
border-style:dotted;
|
|
height:1px;
|
|
}
|
|
|
|
|
|
|
|
/*QProgressBar*/
|
|
QProgressBar{
|
|
border: 1px solid gray;
|
|
border-radius: 5px;
|
|
text-align: center;
|
|
}
|