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.
nmWATI/Bin/Config/Common/WTAI_Qt5.css

697 lines
13 KiB
CSS

/*
* WTAI's css setting
* By WANG, Zhan-guo
* Created On: 2017-04-05
* Modified On: 2017-07-13
*/
/*iPlotCurveWxT*/
iPlotCurveWxT {
border : 1px ridge gray;
}
/* QPushButton */
QPushButton {
background-color: 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;
/* font-size:24px;*/
}
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 {
}
/* === QToolTip === */
QToolTip {
background-color: lightgray;
color: black;
}
/* QLabel */
QLabel {
background-color: transparent;
}
/* QLineEdit */
QLineEdit {
background-color: transparent;
}
QLineEdit[readOnly="true"]{
color: gray;
}
/* QTextEdit */
QTextEdit {
background-color: transparent;
}
/*QSlider*/
QSlider::groove:horizontal {
position: absolute;
top: 1px; height: 1px;
background: #B1B1B1;
}
QSlider::handle:horizontal {
border-image:url($/Res/Icon/slider-handle.png);
border: 1px solid #000000;
width: 8px;
margin: -5px 0;
}
/* QCheckBox */
QCheckBox {
background-color: transparent;
}
QCheckBox::indicator::checked {
image: url($/Res/Icon/checkBox_checked.png);
}
QCheckBox::indicator::unchecked {
image: url($/Res/Icon/checkBox_unchecked.png);
}
/* QRadioButton */
QRadioButton {
background-color: transparent;
}
QRadioButton::indicator::checked {
image: url($/Res/Icon/radio_checked.png);
}
QRadioButton::indicator::unchecked {
image: url($/Res/Icon/radio_unchecked.png);
}
/* QComboBox*/
QComboBox {
background-color: transparent;
border: 1px solid gray;
border-radius: 3px;
padding: 1px 2px 1px 2px;
min-width: 3em;
}
ZxHeaderComboBoxEx{
background-color: lightgray;
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($/Res/Icon/CbxBtn.png);
}
/* QSpinBox */
QSpinBox {
background-color: transparent;
/* border: 1px solid gray;*/
}
/* QDoubleSpinBox */
QDoubleSpinBox {
background-color: transparent;
/* border: 1px solid gray;*/
}
/* QDateTimeEdit */
/*QDateTimeEdit {
background-color: transparent;
}*/
/* 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:lightblue;
border-width:0px;
border-style:dotted;
height:1px;
}
/*QProgressBar*/
QProgressBar{
border: 1px solid gray;
border-radius: 5px;
text-align: center;
}
/* QListWidget */
QListWidget {
background-color: transparent;
border: 1px solid gray;
}
QListWidget::item:selected{
background:lightblue;
color:blue;
}
QListWidget QScrollBar {
/* background:transparent;*/
}
/* QTreeWidget */
QTreeWidget{
background-color: transparent;
border-color:lightgray;
}
QTreeWidget QHeaderView::section {
border: 1px solid lightgray;
background: transparent;
}
QTreeWidget QHeaderView {
background: transparent;
}
/*QTreeWidget*/
QTreeWidget {
background-color: transparent;
}
/*QTreeView*/
QTreeView{
background-color: transparent;
alternate-background-color:rgb(0, 192, 0);
border-color:lightgray;
}
QTreeView QHeaderView::section {
border: 1px solid lightgray;
background: transparent;
}
QTreeView QHeaderView {
background: transparent;
}
/*QTreeView::item:selected{
background:lightblue;
color:blue;
}*/
/* QTableWidget */
QTableWidget{
background-color:transparent;
alternate-background-color:rgb(0, 192, 0);
border: none;
}
QTableWidget QHeaderView::section {
border: 1px solid lightgray;
background: transparent;
}
QTableWidget QHeaderView {
background: transparent;
}
QTableWidget QTableCornerButton::section {
border: 1px solid lightgray;
background: transparent;
}
QTableWidget QScrollBar {
background:transparent;
}
/* QTableView */
QTableView {
background-color: transparent;
alternate-background-color: rgb(232, 232, 232);
gridline-color: lightgray;
selection-background-color: rgb(51, 153, 255);
selection-color: white;
border: 1px solid gray;
border-style: ridge;
}
/* QTableView::item {
selection-background-color: rgb(23,165,230)
}*/
QTableView QHeaderView {
background: transparent;
border: 1px solid lightgray;
}
QTableView QHeaderView::section {
border: 1px solid lightgray;
background: transparent;
}
/*上侧表头*/
/*QTableView QHeaderView#hHeader::section {
height:20;color: red;padding-left: 4px;
}
/*左侧表头*/
/*QTableView QHeaderView#vHeader::section {
width:30;
height:10;
}*/
QTableView QTableCornerButton::section {
border: 1px solid lightgray;
background: transparent;
border-radius:0px;
}
QTableView QScrollBar {
background:transparent;
}
/*QTableView::item::selected
{
background-color:lightblue;
color: white;
}*/
/* QTabWidget */
QTabWidget {
background-color: transparent;
}
QTabWidget::pane{
border-width:1px;
border-color:transparent;
border-style:dotted;
background-color: transparent;
}
QTabWidget::tab-bar{
border-width:0px;
}
QTabBar::tab:first:selected,
QTabBar::tab:middle:selected,
QTabBar::tab:last:selected,
QTabBar::tab:only-one{
/* background-color: white;*/
/* color: blue;*/
/* border-width:10px;
border-color:rgb(48, 104, 151);
border-style: outset;*/
}
QTabBar::tab:first:!selected,
QTabBar::tab:middle:!selected,
QTabBar::tab:last:!selected {
/* background-color: transparent;*/
/* color: rgb(128, 128, 128);*/
/* border:1px solid rgba(0,0,0,50);*/
/* border-width:10px;
border-color:rgb(48, 104, 151);
border-style: ridge;*/
}
QTabBar::tab:top, QTabBar::tab:bottom {
/* min-width:60px;*/
}
QTabBar::tab:left, QTabBar::tab:right {
/* min-height:50px;*/
}
/*QTabBar::tab{
border-bottom-color: red;
padding: 0px;
}
QTabBar QToolButton::right-arrow {
background-color:light blue;
border-width: 0;
background-image: url(:/images/tab/rightbtn.png);
}
QTabBar QToolButton::left-arrow {
background-color:light blue;
border-width: 0;
background-image: url(:/images/tab/leftbtn.png);
}*/
/* === QMenu === */
QMenu {
background-color: rgb(138, 209, 251);
/* border: 1px solid gray;
color: white;
padding: 1px;*/
}
/*QMenu::item {
padding: 2px 25px 2px 20px;
border: 1px solid transparent;
}
QMenu::item:disabled {
color: #666666;
}
QMenu::item:selected {
border-color: gray;
background: #222222;
}
QMenu::icon:checked {
}
QMenu::separator {
height: 1px;
}
QMenu::indicator {
width: 13px;
height: 13px;
}*/
/* === QMenuBar === */
QMenuBar {
background-color: transparent;
}
/*QMenuBar::item {
background: transparent;
}
QMenuBar::item:disabled {
color: gray;
}
QMenuBar::item:selected {
background: #222222;
}
QMenuBar::item:pressed {
background: #444444;
}*/
/*QDockWidget*/
QDockWidget{
/* image: url($/Res/Image/WTAI_Main.png);*/
/* border:1px ridge lightgray;
border:3px ridge red;*/
/*titlebar-close-icon: url($/Res/Icon/close.png);*/
/* titlebar-normal-icon: url($/Res/Icon/ExcludeRect.png);*/
}
QDockWidget::title {
text-align: left;
/* background: transparent;*/
padding-left:5px;
height:20px;
}
QDockWidget::close-button,QDockWidget::float-button {
/* border:1px solid darkgray;*/
/* background: darkgray;*/
/* padding:0px;*/
}
QDockWidget::close-button:hover,QDockWidget::float-button:hover {
/* titlebar-normal-icon: url($/Res/Icon/ExcludeRect.png);*/
background: gray;
}
QDockWidget::close-button:pressed,QDockWidget::float-button:pressed {
/* titlebar-normal-icon: url($/Res/Icon/ExcludeRect.png);*/
/* padding:1px-1px-1px-1px;*/
}
/*QDockWidget::close-button {
subcontrol-position: top left;
subcontrol-origin: margin;
position: absolute;
top:0px; left:0px; bottom:0px;
width:14px;
}
QDockWidget::float-button {
subcontrol-position: top left;
subcontrol-origin: margin;
position: absolute;
top:0px; left:16px; bottom:0px;
width:14px;
}*/
/*ZxPropertySheet*/
ZxPropertySheet {
background : transparent;
border:1px ridge gray;
}
/*QMdiArea*/
QMdiArea {
/* background : transparent;*/
border:1px ridge gray;
/* border-image:url($/Res/Image/WTAI_Main.png);
image:url($/Res/Image/WTAI_Main.png);*/
}
iSubWndFitting {
/* background : transparent;*/
border-image:url($/Res/Image/WTAI_Main.png);
image:url($/Res/Image/WTAI_Main.png);
}
/*QMdiSubWindow*/
QMdiSubWindow{
background : rgb(194, 213, 233);
/* border:1px ridge gray;*/
}
/*接下来是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;
}
/*QWidget{
font-family: "微软雅黑";
}
#MainWindowClass{
background-color: #D2DCEA;
}*/
#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);
}
/*
QTabWidget:pane{ \
border: 1px solid red; top: -1px;background-color:grey;}\
QTabBar::tab{height:22px; background-color:grey; margin-right: 2px; margin-bottom:-2px;}\
QTabBar::tab:selected{border:1px solid red;border-bottom-color: none;}\
QTabBar::tab:!selected{border-bottom: 3px solid red;}*/
#tabWxMain::tab-bar {
left: 65px;
/* border: 1px solid #BAC9DB;*/
}
#tabWxMain QTabBar::tab{
height:24px;
/*background: transparent;
margin-left: 5px;
margin-right: 5px;*/
/* border: 1px solid #BAC9DB;*/
}
#tabWxMain QTabBar::tab:selected
{
/*border:1px solid red;border-bottom-color: none;
border-top-left-radius: 0px;
border-top-right-radius: 0px;
margin-left: 2px;
margin-right: 2px;
border: 1px solid #BAC9DB;
border-bottom-color: #FFFFFF;*/
}
#tabWxMain QTabBar::tab:!selected
{
background-color: transparent;
/*border-bottom: 1px solid red;
margin-top: 1px;
border: none;
border-bottom-color: #FFFFFF;*/
/* margin-left: 2px;
margin-right: 2px;
border-left-color: #FFFFFF;*/
}
#tabWxMain QTabBar::tab:hover :selected
{
/* background-color: light Gray;
border-top-left-radius: 2px;
border-top-right-radius: 2px;*/
}
#tabWxMain QTabBar::tab:hover:!selected
{
background-color: rgb(250, 250, 250);
/* border: 1px solid #ECBC3D;*/
}
#tabWxMain QTabWidget::pane{
/*border-width:4px;
border-color:red;
border-style: solid;
background-color: transparent;
border: 1px solid red; top: -1px;background-color:grey;*/
}
#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;
}
/* QWebView */
QWebView {
background-color: transparent;
}