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_2k.css

716 lines
15 KiB
CSS

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

/*
* WTAI's css setting for 2k-about monitor
* By WANG, Zhan-guo
* Created On: 2023-12-05
* Modified On: 2024-09-13
*/
/*窗体背景*/
iDlgBase,iSubWndData{
background-color: #ffffff;
}
iPlotCurveWxT,iGuiPlot {
border : none;
}
/*QWidget {
font: 9pt;
}*/
/*参数及绘图属性窗体*/
iGridRowUtils{
background-color: #ffffff;
border : none;
}
ZxPtyPano{
background-color: #ffffff;
/* border : none;*/
}
/* 两种ButtonQPushButton&QToolButton */
QPushButton,QToolButton {
background-color: transparent;
color: black;
}
QPushButton:hover:pressed,QPushButton:checked,QToolButton:hover:pressed,QToolButton:checked {
background-color: rgb(157, 195, 230);
border-radius: 5px;
box-sizing: border-box;
}
QPushButton:hover:!pressed,QToolButton:hover:!pressed {
background-color: rgb(198, 221, 241);
border-radius: 5px;
box-sizing: border-box;
}
QPushButton::menu-indicator {
subcontrol-position: right bottom;
subcontrol-origin: padding;
left: -2px;
}
/* only for MenuButtonPopup */
QToolButton[popupMode="1"] {
padding-right: 20px;
}
/*QToolButton::menu-button {
background: transparent;
width: 16px;
}*/
/* QToolBar */
QToolBar {
background-color: transparent;
border-style : dotted;
}
QToolBar:handle {
}
QToolBar::separator {
}
/*日历组件*/
#qt_calendar_calendarview {
background: white;
}
QDateTimeEdit {
background: transparent;
}
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
}
/*一些设置为透明背景的基础控件*/
QToolTip{
background-color: transparent;
}
/* QTextEdit */
QTextEdit {
}
/* QLineEdit */
QLineEdit {
}
QLineEdit[readOnly="true"]{
color: gray;
}
/* === QToolTip === */
QToolTip {
background-color: light gray;
color: black;
}
/*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;
background-size: 20px 20px;
}
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;
background-size: 20px 20px;
}
QRadioButton::indicator::checked {
image: url($/Res/Icon/radio_checked.png);
}
QRadioButton::indicator::unchecked {
image: url($/Res/Icon/radio_unchecked.png);
}
/* QComboBox*/
QComboBox {
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 {
image: url($/Res/Icon/CbxBtn.png);
}
QDoubleSpinBox,QSpinBox {
background-color: transparent;
}
/* QGroupBox */
QGroupBox {
background-color: transparent;
}
QGroupBox::title {
color: rgb(47, 85, 151);
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;
}
/* QListWidget */
QListWidget {
background-color: #ffffff;
border: 1px solid gray;
}
QListWidget::item:selected{
background:lightblue;
color:blue;
}
/* QTreeWidget */
QTreeWidget{
background-color: #ffffff;
border-color:light gray;
}
QTreeWidget QHeaderView::section {
border: 1px solid lightgray;
background: transparent;
}
QTreeWidget QHeaderView {
background: transparent;
}
/*QTreeView*/
QTreeView{
background-color: #ffffff;
alternate-background-color:rgb(0, 192, 0);
border-color:light gray;
}
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);
border: 1px solid gray;
selection-background-color: rgb(51, 153, 255)/*lightblue*/;
selection-color: white;
gridline-color: lightgray;
}
/*QTableView::grid
{ border: 1px solid red;
color: rgb(255, 0, 0);
gridline-color: rgb(255, 0, 0);
}
QTableView::grid
{ border: 1px solid gray;
}*/
QTableView QHeaderView {
/* background: transparent;*/
/* border: 1px solid lightgray;*/
}
/*QTableView上侧*/
QTableView QHeaderView::section:horizontal {
background: transparent;
border: none; /*想单独设置必须先指定none*/
border-right: 1px solid lightgray;
border-bottom: 1px solid lightgray;
}
/*QTableView左侧*/
QTableView QHeaderView::section:vertical {
background: transparent;
border: none; /*想单独设置必须先指定none*/
border-right: 1px solid lightgray;
border-bottom: 1px solid lightgray;
min-width:30px;/*避免左侧序号列太窄*/
}
/*QTableView左上角侧*/
QTableView QTableCornerButton::section {
background: transparent;
border: none;
border-right: 1px solid lightgray;
border-bottom: 1px solid lightgray;
}
QTableView QScrollBar {
background:transparent;
}
/*QTableView::item::selected
{
background-color:lightblue;
color: white;
}*/
/* QTabWidget */
QTabWidget::pane{
border-width:1px;
border-style:dotted;
}
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;*/
}
/* === QMenu === */
QMenu {
background-color: rgb(138, 209, 251);
}
/* === QMenuBar === */
QMenuBar {
background-color: transparent;
}
QMainWindow::separator {
background-color: transparent;
border: 1px solid transparent;
}
QMainWindow::separator:horizontal {
border-top: 1px solid #a6a5a5;
}
QMainWindow::separator:vertical {
border-right: 1px solid #a6a5a5;
}
/*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);*/
background-color: rgb(218,227,243);
/* background: #dfdfdf;
border: 1px solid #C8C8C8;
border-right: 3px solid qlineargradient(x1: 1, y1: 0, x2: 0, y2: 0,
stop: 0 #999999, stop: 0.33 #999999, stop: 0.34 transparent, stop: 1 transparent);
border-left: 3px solid qlineargradient(x1: 0, y1: 0, x2: 1, y2: 0,
stop: 0 #999999, stop: 0.33 #999999, stop: 0.34 transparent, stop: 1 transparent);
border-top: 3px solid qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
stop: 0 #999999, stop: 0.33 #999999, stop: 0.34 transparent, stop: 1 transparent);
border-bottom: 3px solid qlineargradient(x1: 0, y1: 1, x2: 0, y2: 0,
stop: 0 #999999, stop: 0.33 #999999, stop: 0.34 transparent, stop: 1 transparent);
margin: 0px;*/
}
QDockWidget::title {
text-align: left;
/* background: transparent;
background-color: qlineargradient(spread:pad,x1:0,y1:0,x2:0,y2:1,stop:0 #DEF0FE,stop:1 #C0DEF6);*/
background-color: #dfdfdf;
padding-left:0px;
height:24px;
}
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;
}*/
QTreeView, QListView, QTabWidget::pane{
border:1px solid #C0DCF2;
selection-background-color:#F2F9FF;
selection-color:#386487;
alternate-background-color:#DAEFFF;
gridline-color:#C0DCF2;
}
/*QMdiArea*/
QMdiArea {
border:1px ridge gray;
}
/*QMdiSubWindow*/
QMdiSubWindow {
background-color: #f0f0f0;
}
QMdiSubWindow::systemButton {
background-color: #ffffff; /* 按钮背景色 */
border: 1px solid #000000; /* 按钮边框 */
border-radius: 2px; /* 按钮边框圆角 */
}
QMdiSubWindow::systemButton:hover {
background-color: #eeeeee; /* 鼠标悬停时的背景色 */
}
QMdiSubWindow::titleBar {
background-color: #cccccc; /* 标题栏背景色 */
font: bold 12px; /* 加粗12px 字体 */
color: #000000; /* 标题栏文字颜色 */
}
ZxMdiSubWindow::title {
height:32px;
}
ZxMdiSubWindow QWidget {
icon-size: 16px;
}
ZxMdiSubWindowChild::title {
height:30px;
}
/*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:21px;
border: 1px;
border-top-left-radius: 2px;
border-top-right-radius: 2px;
border: solid #416ABD;
color:white;
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);
}
#tabWxMain::tab-bar {
left: 65px;
}
#tabWxMain QTabBar::tab{
height:24px;
}
#tabWxMain QTabBar::tab:selected
{
/*border:1px solid blue;
border-bottom-color: none;
border-top-left-radius: 1px;
border-top-right-radius: 1px;*/
/*margin-left: 2px;
margin-right: 2px;*/
/*border: 1px solid #BAC9DB;
border-top: 1px solid #BAC9DB;
background: rgb(255,255,255);
font: Italic ;
margin:5px;*/
}
#tabWxMain QTabBar::tab:!selected
{
/*background: rgb(189,215,238);
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
{
/*border: 2px solid black;
background-color: black;
border-top-left-radius: 5px;
border-top-right-radius: 5px;*/
}
#tabWxMain QTabBar::tab:hover:!selected
{
/*border: 1px solid red;*/
}
#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;
}
#iWxWelcome #groupBox_2{
background-color: qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:0, stop:0 rgba(0, 77, 0, 255), stop:1 rgba(255, 255, 255, 255));
}
QScrollBar:horizontal{
background:#transparent;
padding:0px;
border-radius:5px;
/*max-height:12px;*/
height:12px;
}
QScrollBar::handle:horizontal{
background:rgb(220,220,220);
min-width:50px;
border-radius:5px;
/*min-width: 20px;
margin-bottom: 4px;
margin-top: 4px;*/
}
QScrollBar::handle:horizontal:hover{
background:rgb(220,220,220);
}
QScrollBar::handle:horizontal:pressed{
background:rgb(192,192,192);
}
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:#transparent;
padding:0px;
border-radius:2px;
/*max-width:10px;*/
width:10px;
}
QScrollBar::handle:vertical{
background:rgb(220,220,220);
min-height:50px;
border-radius:2px;
}
QScrollBar::handle:vertical:hover{
background:rgb(220,220,220);
}
QScrollBar::handle:vertical:pressed{
background:rgb(192,192,192);
}
QScrollBar::add-page:vertical{
background:none;
}
QScrollBar::sub-page:vertical{
background:none;
}
QScrollBar::add-line:vertical{
background:none;
}
QScrollBar::sub-line:vertical{
background:none;
}