/*菜单*/
/*QMenu Start*/
QMenu
{
text-align: left;
width: 246px;
color: rgb(255, 255, 255);
background-color: rgb(40, 100, 175);
margin: 0px;
padding: 0px;
border: 1px solid rgb(80, 125, 170);
font: 15px "Microsoft Yahei";
}
QMenu::item
{
text-align:left;
height: 70px;
margin: 0px;
padding-top: 5px;
padding-bottom: 5px;
padding-left: 6px;
padding-right: 7px;
border-width: 0px;
}
QMenu::item:hover
{
color: rgb(255, 255, 255);
background-color: rgb(40, 100, 175);
border: 1px solid rgb(240, 225, 115);
}
QMenu::item:selected
{
color: rgb(10, 35, 65);
background-color: rgb(240,225,115);
border: 1px solid rgb(240,225,115);
}
QMenu::item:disabled
{
color: rgb(80, 125, 170);
background-color: rgb(40, 100, 175);
border: 1px solid rgb(80, 125, 170);
}
/*QMenu End*/
/*基本按钮*/
/*QPushButton Start*/
QPushButton
{
background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 rgb(40, 100, 175), stop:1.0 rgb(20, 70, 165));
color: rgb(255, 255, 255);
border: 1px solid rgb(80, 125, 170);
border-radius: 2px;
font: 15px "Microsoft Yahei";
}
QPushButton:hover
{
border: 1px solid rgb(240, 225, 115);
}
QPushButton:pressed
{
background-color: rgb(240, 225, 115);
border: 1px solid rgb(240, 225, 115);
color: rgb(10, 35, 65);
}
QPushButton:checked
{
background-color: rgb(240, 225, 115);
border: 1px solid rgb(240, 225, 115);
color: rgb(10, 35, 65);
}
QPushButton:disabled
{
background-color: rgb(35, 70, 145);
color: rgb(95, 140, 190);
border: 1px solid rgb(80, 125, 170);
}
/*QPushButton End*/
/*单选框*/
/*QRadioButton Start*/
QRadioButton
{
color: rgb(255, 255, 255);
spacing: 8px;
font: 15px "Microsoft Yahei";
}
QRadioButton::indicator
{
width: 21px;
height: 21px;
}
QRadioButton::indicator:unchecked
{
image: url(:/Day/QRadioButton/radiobtn_light_normal.png);
}
QRadioButton::indicator:unchecked:hover
{
image: url(:/Day/QRadioButton/radiobtn_light_hover.png);
}
QRadioButton::indicator:checked
{
image: url(:/Day/QRadioButton/radiobtn_light_pressed.png);
}
QRadioButton::indicator:disabled
{
image: url(:/Day/QRadioButton/radiobtn_light_disable.png);
}
/*QRadioButton End*/
/*复选框*/
/*QCheckBox Start*/
QCheckBox
{
color: rgb(255, 255, 255);
spacing: 8px;
font: 15px "Microsoft Yahei";
}
QCheckBox::indicator:unchecked
{
image: url(:/Day/QCheckBox/checkbox_light_normal.png);
}
QCheckBox::indicator:unchecked:hover
{
image: url(:/Day/QCheckBox/checkbox_light_hover.png);
}
QCheckBox::indicator:checked
{
image: url(:/Day/QCheckBox/checkbox_light_pressed.png);
}
QCheckBox::indicator:disabled
{
image: url(:/Day/QCheckBox/checkbox_light_disable.png);
}
/*QCheckBox End*/
/*文本框*/
/*静态文本*/
/*QLabel Start*/
/*白色文字*/
QLabel
{
color: rgb(255, 255, 255);
background-color: rgb(35, 75, 115);
}
/*蓝色文字*/
QLabel
{
color: rgb(115, 255, 255);
background-color: rgb(35, 75, 115);
}
/*QLabel End*/
/*单行输入文本框*/
/*QLineEdit Start*/
QLineEdit
{
background-color: rgb(20, 55, 95);
color: rgb(255, 255, 255);
border: 1px solid rgb(65, 100, 130);
font: 15px "Microsoft Yahei";
}
QLineEdit:hover
{
border: 1px solid rgb(240, 225, 115);
color: rgb(255, 255, 255);
}
QLineEdit:focus
{
border: 1px solid rgb(240, 225, 115);
color: rgb(255, 255, 255);
}
QLineEdit:disabled
{
color: rgb(20, 55, 95);
border: 1px solid rgb(50, 85, 110);
background-color: rgb(75, 100, 130);
}
/*QLineEdit End*/
/*多行输入文本框*/
/*QTextEdit Start*/
QTextEdit
{
background-color: rgb(20, 55, 95);
color: rgb(255, 255, 255);
border: 1px solid rgb(65, 100, 130);
font: 15px "Microsoft Yahei";
}
QTextEdit:hover
{
border: 1px solid rgb(240, 225, 115);
color: rgb(255, 255, 255);
}
QTextEdit:disabled
{
color: rgb(20, 55, 95);
border: 1px solid rgb(50, 85, 110);
background-color: rgb(75, 100, 130);
}
/*QTextEdit End*/
/*TAB页*/
/*QTabBar Start*/
QTabWidget::pane
{
border-top: 2px solid rgb(80, 125, 170);
position: absolute;
background-color: rgb(80, 125, 170);
}
QTabBar::tab
{
color:rgb(255, 255, 255);
background: rgb(40, 100, 175);
border: 2px solid rgb(80, 125, 170);
border-top-left-radius: 2px;
border-top-right-radius: 2px;
padding: 2px;
font: 15px "Microsoft Yahei";
}
QTabBar::tab:hover
{
background: rgb(40, 100, 175);
border: 2px solid rgb(240, 225, 115);
}
QTabBar::tab:selected
{
color: rgb(10, 35, 65);
border: 2px solid rgb(240, 225, 115);
background: rgb(240, 225, 115);
}
/*QTabBar End*/
/*对话框*/
/*Dialog Start*/
/* 需用多个组件 */
/*对话框标题*/
QWidget#widget_dialogTitle
{
background-color: rgb(40, 100, 175);
border: 1px solid rgb(80, 125, 170);
border-radius: 2px;
color: rgb(255, 255, 255);
font: 15px "Microsoft Yahei";
}
/*对话框主界面*/
/*非悬浮海图上*/
QWidget#widget_dialogMain
{
background-color: rgb(35, 75, 115);
border: 1px solid rgb(35, 75, 115);
border-radius: 2px;
color: rgb(255, 255, 255);
font: 15px "Microsoft Yahei";
}
/*悬浮海图上*/
QWidget#widget_dialogMain
{
background-color: rgb(35, 75, 115,51);
border: 1px solid rgb(35, 75, 115);
border-radius: 2px;
color: rgb(255,255,255);
font: 15px "Microsoft Yahei";
}
/*对话框关闭按钮*/
QPushButton#button_close
{
border-image: url(:/Day/Dialog/close_light_normal.png);
}
QPushButton#button_close:hover
{
border-image: url(:/Day/Dialog/close_light_hover.png);
}
QPushButton#button_close:pressed
{
border-image: url(:/Day/Dialog/close_light_pressed.png);
}
/*Dialog End*/
/*树形菜单*/
/*QTreeWidget Start*/
QTreeWidget
{
color: rgb(200, 200, 200);
border: 1px solid rgb(65, 100, 130);
background-color: rgb(20, 55, 95);
font: 15px "Microsoft Yahei";
}
QHeaderView::section
{
background-color: rgb(20, 55, 95);
color: rgb(200, 200, 200);
height: 30px;
}
QTreeWidget::item
{
color: rgb(200, 200, 200);
border: 0px solid rgb(65, 100, 130);
background-color: rgb(20, 55, 95);
height: 30px;
}
QTreeWidget::item:hover
{
color: rgb(200, 200, 200);
border: 1px solid rgb(65, 100, 130);
background-color: rgb(60, 120, 170);
}
QTreeWidget::item:selected,QTreeWidget::branch:selected
{
color: rgb(255, 255, 255);
border: 0px solid rgb(65, 100, 130);
background-color: rgb(40, 110, 185);
}
QTreeWidget::branch:has-children:closed
{
image: url(:/Day/QTreeWidget/tree_fold_light.png);
}
QTreeWidget::branch:has-children:open
{
image: url(:/Day/QTreeWidget/tree_unfold_light.png)
}
QTreeWidget::branch:has-children:open:hover
{
image: url(:/Day/QTreeWidget/tree_unfold_light.png)
}
QTreeWidget::branch:has-children:closed:hover
{
image: url(:/Day/QTreeWidget/tree_fold_light.png)
}
/*QTreeWidget End*/
/*进度条*/
/*QProgressBar Start*/
/*不勾选进度条的textVisible属性*/
QProgressBar
{
height: 6px;
border-radius: 8px;
border: 2px solid rgb(100, 100, 100);
background-color: rgb(20, 55, 95);
font: 15px "Microsoft Yahei";
}
QProgressBar::chunk
{
border-radius: 6px;
background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 rgb(31, 158, 173), stop:1.0 rgb(115, 255, 255));
}
/*文字需使用单独控件*/
QLabel
{
color: rgb(255, 255, 255);
}
/*QProgressBar End*/
/*表格*/
/*QTableWidget Start*/
QTableWidget
{
color: rgb(255, 255, 255);
background-color: rgb(35, 75, 115);
selection-color: rgb(255, 255, 255);
selection-background-color: rgb(50, 100, 145);
border: 1px solid rgb(50, 100, 145);
font: 15px "Microsoft Yahei";
}
QTableWidget::item
{
border-right: 1px solid rgb(25, 60, 90);
border-bottom: 1px solid rgb(25, 60, 90);
border-left: 1px solid rgb(50, 100, 150);
border-top: 1px solid rgb(50, 100, 150);
}
QTableWidget::item:selected
{
background-color: rgb(50, 100, 145);
border: 1px solid rgb(25, 60, 90);
border-left: 0px;
border-right: 0px;
}
QTableWidget::item:hover
{
border: 1px solid rgb(25, 60, 90);
background-color: rgb(45, 90, 130);
}
QHeaderView::section
{
color: rgb(255, 255, 255);
background-color: rgb(55, 115, 180);
border: 1px solid rgb(40, 85, 140);
font: 15px "Microsoft Yahei";
}
QHeaderView::section:checked
{
color: rgb(255, 255, 255);
background-color: rgb(55, 115, 180);
}
QHeaderView::section:horizontal
{
border-left: 1px solid rgb(40, 85, 140);
border-right: 1px solid rgb(60, 125, 200);
}
QHeaderView::section:vertical
{
border-top: 1px solid rgb(40, 85, 140);
border-bottom: 1px solid rgb(60, 125, 200);
}
/*QTableWidget End*/
/*数值组合框*/
/*QSpinBox Start*/
QSpinBox
{
color: rgb(255, 255, 255);
padding-right: 5px;
padding-left: 5px;
border: 1px solid rgb(65, 100, 130);
background-color: rgb(20, 55, 95);
font: 15px "Microsoft Yahei";
}
QSpinBox:hover
{
border: 1px solid rgb(65, 100, 130);
}
QSpinBox:pressed
{
background-color: rgb(20, 55, 95);
}
QSpinBox:disabled
{
background-color: rgb(20, 55, 95);
color: rgba(75, 100, 130);
border: 1px solid rgb(50, 85, 110);
}
QSpinBox::up-button
{
subcontrol-origin: padding;
subcontrol-position: top right;
width: 20px;
border: 1px solid rgb(65, 100, 130);
border-top: transparent;
border-right: transparent;
}
QSpinBox::up-button:hover
{
border: 1px solid rgb(240, 225, 115);
border-top: transparent;
border-right: transparent;
}
QSpinBox::up-button:pressed
{
background-color: rgb(240, 225, 115);
border: 1px solid rgb(240, 225, 115);
border-bottom: transparent;
border-right: transparent;
}
QSpinBox::up-button:disabled
{
background-color: rgb(20, 55, 95);
border: 1px solid rgb(50, 85, 110);
border-top: transparent;
border-right: transparent;
}
QSpinBox::up-arrow
{
image: url(:/Day/QSpinBox/spin_up_light_normal.png);
}
QSpinBox::up-arrow:pressed
{
image: url(:/Day/QSpinBox/spin_up_light_pressed.png);
}
QSpinBox::up-arrow:disabled, QSpinBox ::up-arrow:off
{
image: url(:/Day/QSpinBox/spin_up_light_disable.png);
}
QSpinBox::down-button
{
subcontrol-origin: padding;
subcontrol-position: bottom right;
width: 20px;
border: 1px solid rgb(65, 100, 130);
border-bottom: transparent;
border-right: transparent;
}
QSpinBox::down-button:hover
{
border: 1px solid rgb(65, 100, 130);
border-bottom: transparent;
border-right: transparent;
}
QSpinBox::down-button:pressed
{
background-color: rgb(240, 225, 115);
border: 1px solid rgb(65, 100, 130);
border-bottom: transparent;
border-right: transparent;
}
QSpinBox::down-button:disabled
{
background-color: rgb(20, 55, 95);
border: 1px solid rgb(20, 55, 95);
border-bottom: transparent;
border-right: transparent;
}
QSpinBox::down-arrow
{
image: url(:/Day/QSpinBox/spin_down_light_normal.png);
}
QSpinBox::down-arrow:pressed
{
image: url(:/Day/QSpinBox/spin_down_light_pressed.png);
}
QSpinBox::down-arrow:disabled, QSpinBox::down-arrow:off
{
image: url(:/Day/QSpinBox/spin_down_light_disable.png);
}
/*QSpinBox End*/
/*下拉式组合框*/
/*QComboBox Start*/
QComboBox
{
color: rgb(255, 255, 255);
border: 1px solid rgb(65, 100, 130);
background-color: rgb(20, 55, 95);
font: 15px "Microsoft Yahei";
}
QComboBox:editable
{
color: rgb(255, 255, 255);
border: 1px solid rgb(65, 100, 130);
background-color: rgb(20, 55, 95);
}
QComboBox:checked
{
background-color: rgb(20, 55, 95);
}
QComboBox::drop-down
{
width: 20px;
border: 1px solid rgb(65, 100, 130);
}
QComboBox::drop-down:disable
{
border: none;
}
QComboBox QAbstractItemView
{
outline: 0px;
color: rgb(255, 255, 255);
background-color:rgb(20, 55, 95) ;
selection-background-color: rgb(41, 108, 183);
selection-color: rgb(255, 255, 255);
}
QComboBox:disabled
{
color: rgba(75, 100, 130);
border: 1px solid rgb(50, 85, 130);
background-color: rgb(20, 55, 95);
}
QComboBox::down-arrow
{
image: url(:/Day/QComboBox/droplist_light_normal.png);
}
QComboBox::down-arrow:disabled
{
image: url(:/Day/QComboBox/droplist_light_disable.png);
}
/*QComboBox End*/
/*滑动条*/
/*QScrollBar Start*/
QScrollBar:vertical
{
border: 1px solid rgb(20, 60, 95);
background-color: rgb(20, 60, 95);
width: 34px;
margin: 0px;
}
QScrollBar::add-line:vertical
{
image: url(:/Day/QScrollBar/slider_down_light.png);
subcontrol-position: bottom;
subcontrol-origin: margin;
/*margin-bottom:1px;*/
}
QScrollBar::sub-line:vertical
{
image: url(:/Day/QScrollBar/slider_up_light.png);
subcontrol-position: top;
subcontrol-origin: margin;
}
QScrollBar::handle:vertical
{
background-color: rgb(50, 100, 145);
min-height: 28px;;
margin: 25 3 25 3;
}
QScrollBar::handle:vertical:hover
{
background-color: rgb(60, 120, 170);
}
QScrollBar::handle:vertical:pressed
{
background-color: rgb(40, 110, 185);
}
QScrollBar::add-page:vertical, QScrollBar::sub-page:vertical
{
background: none;
color: rgb(150, 150, 150);
}
QScrollBar:horizontal
{
background-color: rgb(20, 60, 95);
border: 1px solid rgb(20, 60, 95);
height: 34px;
margin: 0px;
}
QScrollBar::add-line:horizontal
{
image: url(:/Day/QScrollBar/slider_right_light.png);
subcontrol-position: right;
subcontrol-origin: margin;
}
QScrollBar::sub-line:horizontal
{
image: url(:/Day/QScrollBar/slider_left_light.png);
subcontrol-position: left;
subcontrol-origin: margin;
}
QScrollBar::handle:horizontal
{
background-color: rgb(50, 100, 145);
min-width: 28px;
margin: 3 25 3 25;
}
QScrollBar::handle:horizontal:hover
{
background-color: rgb(60, 120, 170);
}
QScrollBar::handle:horizontal:pressed
{
background-color: rgb(40, 110, 185);
}
QScrollBar::add-page:horizontal, QScrollBar::sub-page:horizontal
{
background: none;
}
/*QScrollBar End*/
/*状态指示灯*/
/*status Start*/
/*正常状态*/
QLabel
{
width: 20px;
height: 20px;
background-color: rgb(0, 200, 0);
border: 0px;
border-raduis: 10px;
}
/*故障状态*/
QLabel
{
width: 20px;
height: 20px;
background-color: rgb(230, 45, 45);
border: 0px;
border-raduis: 10px;
}
/*告警状态*/
QLabel
{
width: 20px;
height: 20px;
background-color: rgb(220, 220, 0);
border: 0px;
border-raduis: 10px;
}
/*离线状态*/
QLabel
{
width: 20px;
height: 20px;
background-color: rgb(125, 145, 150);
border: 0px;
border-raduis: 10px;
}
/*界面标题栏*/
QWidget
{
width: 1920px;
height: 61px;
border-image: url(:/Day/Title/titlebar_dark_normal.png);
}
/*底部菜单*/
QPushButton
{
border-image: url(:/Day/MainBtn/mainbtn_light_normal.png);
color: rgb(115, 255, 255);
}
QPushButton:hover
{
border-image: url(:/Day/MainBtn/mainbtn_light_hover.png);
}
QPushButton:pressed
{
border-image: url(:/Day/MainBtn/mainbtn_light_pressed.png);
}