nightqss

/*菜单*/
/*QMenu Start*/
QMenu
{
    text-align: left;
    width: 246px;
    color: rgb(200, 200, 200);
    background-color: rgb(35, 35, 35);
    margin: 0px;
    padding: 0px;
    border: 1px solid rgb(100, 100, 100);
    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(200, 200, 200);
    background-color: rgb(35, 35, 35);
    border: 1px solid rgb(21,197, 212);
}
QMenu::item:selected
{
    color: rgb(200,200,200);
    background-color: rgb(20, 59, 63);
    border: 1px solid rgb(21, 197, 212);
}
QMenu::item:disabled
{
    color: rgb(100, 100, 100);
    background-color: rgb(35, 35, 35);
    border: 1px solid rgb(100,100,100);
}
/*QMenu End*/

/*基本按钮*/
/*QPushButton Start*/
QPushButton
{
    background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 rgb(45, 45, 45),stop:1.0 rgb(25, 25, 25));
    color: rgb(200, 200, 200);
    border: 1px solid rgb(70, 70, 70);
    border-radius: 2px;
    font: 15px "Microsoft Yahei";
}
QPushButton:hover
{
    border: 1px solid rgb(21, 197, 212);
}
QPushButton:pressed
{
    background-color: rgb(20, 59, 63);
    border: 1px solid rgb(21, 197, 212);
    color: rgb(200, 200, 200);
}
QPushButton:checked
{
    background-color: rgb(20, 59, 63);
    border: 1px solid rgb(21, 197, 212);
    color: rgb(200, 200, 200);
}
QPushButton:disabled
{
    background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 rgb(45, 45, 45), stop:1.0 rgb(25, 25, 25));
    color: rgb(100, 100, 100);
    border: 1px solid rgb(70, 70, 70);
}
/*QPushButton End*/

/*单选框*/
/*QRadioButton Start*/
QRadioButton
{
    color: rgb(200, 200, 200);
    spacing: 8px;
    font: 15px "Microsoft Yahei";
}
QRadioButton::indicator
{
    width: 21px;
    height: 21px;
}
QRadioButton::indicator:unchecked
{
    image: url(:/Night/QRadioButton/radiobtn_dark_normal.png);
}
QRadioButton::indicator:unchecked:hover
{
    image: url(:/Night/QRadioButton/radiobtn_dark_hover.png);
 }
QRadioButton::indicator:checked
{
    image: url(:/Night/QRadioButton/radiobtn_dark_pressed.png);
}
QRadioButton::indicator:disabled
{
    image: url(:/Night/QRadioButton/radiobtn_dark_disable.png);
}
/*QRadioButton End*/


/*复选框*/
/*QCheckBox Start*/
QCheckBox
{
    color: rgb(200, 200, 200);
    spacing: 8px;
    font: 15px "Microsoft Yahei";
}
QCheckBox::indicator:unchecked
{
    image: url(:/Night/QCheckBox/checkbox_dark_normal.png);
}
QCheckBox::indicator:unchecked:hover
{
    image: url(:/Night/QCheckBox/checkbox_dark_hover.png);
}
QCheckBox::indicator:checked
{
    image: url(:/Night/QCheckBox/checkbox_dark_pressed.png);
}
QCheckBox::indicator:disabled
{
    image: url(:/Night/QCheckBox/checkbox_dark_disable.png);
}
/*QCheckBox End*/

/*文本框*/
/*静态文本*/
/*QLabel Start*/
/*白色文字*/
QLabel
{
    color: rgb(200, 200, 200);
    background-color: rgb(20, 20, 20);
}
/*蓝色文字*/
QLabel
{
    color: rgb(21, 197, 212);
    background-color: rgb(20, 20, 20);
}
/*QLabel End*/
/*单行输入文本框*/
/*QLineEdit Start*/
QLineEdit
{
    background-color: rgb(20, 20, 20);
    color: rgb(200, 200, 200);
    border: 1px solid rgb(100, 100, 100);
    font: 15px "Microsoft Yahei";
}
QLineEdit:hover
{
    border: 1px solid rgb(21, 197, 212);
    color: rgb(200, 200, 200);
}
QLineEdit:focus
{
    border: 1px solid rgb(21, 197, 212);
    color: rgb(200, 200, 200);
}
QLineEdit:disabled
{
    color: rgb(20, 20, 20);
    border: 1px solid rgb(60, 60, 60);
    background-color: rgb(60, 60, 60);
}
/*QLineEdit End*/

/*多行输入文本框*/
/*QTextEdit Start*/
QTextEdit
{
    background-color: rgb(20, 20, 20);
    color: rgb(200, 200, 200);
    border: 1px solid rgb(100, 100, 100);
    font: 15px "Microsoft Yahei";
}
QTextEdit:hover
{
    border: 1px solid rgb(21,197, 212);
    color: rgb(200,200,200);
}
QTextEdit:disabled
{
    color: rgb(60, 60, 60);
    border: 1px solid rgb(60, 60, 60);
    background-color: rgb(20, 20, 20);
}
/*QTextEdit End*/

/*TAB页*/
/*QTabBar Start*/
QTabWidget::pane
{
    border-top: 2px solid rgb(100, 100, 100);
    position: absolute;
    background-color: rgb(100, 100, 100);
}
QTabBar::tab
{
    color: rgb(200, 200, 200);
    background: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 rgb(45, 45, 45), stop:1.0 rgb(25, 25, 25));
    border: 2px solid rgb(100, 100, 100); 
    border-top-left-radius: 2px;
    border-top-right-radius: 2px;
    padding: 2px;
    font: 15px "Microsoft Yahei";
}
QTabBar::tab:hover
{
    background: qlineargradient(x1:0 , y1:0, x2:0, y2:1, stop:0 rgb(45, 45, 45), stop:1.0 rgb(25, 25, 25));
    border: 2px solid rgb(21,197,212);
}
QTabBar::tab:selected
{
    color: rgb(200, 200, 200); 
    border: 2px solid rgb(21, 197, 212); 
    background: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 rgb(45, 45, 45), stop:1.0 rgb(25, 25, 25)); 
}
QTabBar::tab:disabled
{
    color: rgb(100, 100, 100); 
    border: 2px solid rgb(100, 100, 100); 
    background: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 rgb(45, 45, 45), stop:1.0 rgb(25, 25, 25)); 
}
/*QTabBar End*/

/*对话框*/
/*Dialog Start*/
/* 需用多个组件 */
/*对话框标题*/
QWidget#widget_dialogTitle
{
    background-color: rgb(50, 50, 50);
    border: 1px solid rgb(70, 70, 70);
    border-radius: 2px;
    color: rgb(200, 200, 200);
    font: 15px "Microsoft Yahei";
}
/*对话框主界面*/
/*非悬浮海图上*/
QWidget#widget_dialogMain
{
    background-color: rgb(35, 35, 35);
    border: 1px solid rgb(45, 45, 45);
    border-radius: 2px;
    color: rgb(200, 200, 200);
    font: 15px "Microsoft Yahei";
}
/*悬浮海图上*/
QWidget#widget_dialogMain
{
    background-color: rgba(35, 35, 35, 51);
    border: 1px solid rgb(45, 45, 45);
    border-radius: 2px;
    color: rgb(200, 200, 200);
    font: 15px "Microsoft Yahei";
}
/*对话框关闭按钮*/
QPushButton#button_close
{
    border-image: url(:/Night/Dialog/close_dark_normal.png);
}
QPushButton#button_close:hover
{
    border-image: url(:/Night/Dialog/close_dark_hover.png);
}
QPushButton#button_close:pressed
{
    border-image: url(:/Night/Dialog/close_dark_pressed.png);
}
/*Dialog End*/

/*树形菜单*/
/*QTreeWidget Start*/
QTreeWidget
{
    color: rgb(200, 200, 200);
    border: 1px solid rgb(100, 100, 100);
    background-color: rgb(20, 20, 20);
    font: 15px "Microsoft Yahei";
}
QHeaderView::section
{
    background-color: rgb(20, 20, 20);
    color: rgb(200, 200, 200);
    height: 30px;
}
QTreeWidget::item
{
    color: rgb(200, 200, 200);
    border: 1px solid rgb(100, 100, 100);
    background-color: rgb(20, 20, 20);
    height: 30px;
}
QTreeWidget::item:hover
{
    color: rgb(200, 200, 200);
    border: 1px solid rgb(100, 100, 100);
    background-color: rgb(20, 50, 55);
}
QTreeWidget::item:selected, QTreeWidget::branch:selected
{
    color: rgb(200, 200, 200);
    border: 1px solid rgb(100, 100, 100);
    background-color: rgb(20, 59, 63);
}
QTreeWidget::branch:has-children:closed
{
    image: url(:/Night/QTreeWidget/tree_fold_dark.png);
}
QTreeWidget::branch:has-children:open
{
    image: url(:/Night/QTreeWidget/tree_unfold_dark.png)
}
QTreeWidget::branch:has-children:open:hover
{
    image: url(:/Night/QTreeWidget/tree_unfold_dark.png)
}
QTreeWidget::branch:has-children:closed:hover
{
    image: url(:/Night/QTreeWidget/tree_fold_dark.png)
}
/*QTreeWidget End*/

/*进度条*/
/*QProgressBar Start*/
/*不勾选进度条的textVisible属性*/
QProgressBar
{
    height: 6px;
    border-radius: 8px;
    border: 1px solid rgb(100, 100, 100);
    background-color: rgb(20, 20, 20);
    font: 15px "Microsoft Yahei";
}
QProgressBar::chunk
{
    border-radius: 6px;
    background-color: qlineargradient(x1: 0 , y1: 0, x2: 0, y2: 1,stop:0 rgb(21, 197, 212),stop:1.0 rgb(11, 118, 127));
}
/*文字需使用单独控件*/
QLabel
{
    color: rgb(200, 200, 200);
}
/*QProgressBar End*/

/*表格*/
/*QTableWidget Start*/
QTableWidget
{
    color: rgb(200, 200, 200);
    background-color: rgb(35, 35, 35);
    selection-color: rgb(200, 200, 200);
    selection-background-color: rgb(60, 60, 60);
    border: 1px solid rgb(63, 63, 63);
    font: 15px "Microsoft Yahei";
}

QTableWidget::item
{
    border-right: 1px solid rgb(0, 0, 0);
    border-bottom: 1px solid rgb(0, 0, 0);
    border-left: 1px solid rgb(63, 63, 63);
    border-top: 1px solid rgb(63, 63, 63);
}
QTableWidget::item:selected
{
    background-color: rgb(50, 50, 50);
    border: 1px solid rgb(0, 0, 0);
    border-left: 0px;
    border-right: 0px;
}
QTableWidget::item:hover
{
    border: 1px solid rgb(0, 0, 0);
    background-color: rgb(60, 60, 60);
}
QHeaderView::section
{
    color: rgb(200, 200, 200);
    background-color: rgb(60, 60, 60);
    border: 1px solid rgb(76, 76, 76);
    font: 15px "Microsoft Yahei";
}
QHeaderView::section:horizontal
{
    border-left: 1px solid rgb(20, 20, 20);
    border-right: 1px solid rgb(76, 76, 76);
}
QHeaderView::section:vertical
{
    border-top: 1px solid rgba(20, 20, 20);
    border-bottom: 1px solid rgba(76, 76, 76);
}
/*QTableWidget End*/

/*数值组合框*/
/*QSpinBox Start*/
QSpinBox 
{
    color: rgb(200, 200, 200);
    padding-right: 5px; 
    padding-left: 5px; 
    border: 1px solid rgb(100, 100, 100);
    background-color: rgb(20, 20, 20);
    font: 15px "Microsoft Yahei";
}
QSpinBox:hover
{
    border: 1px solid rgb(21, 197, 212);
}
QSpinBox:pressed
{
    border: 1px solid rgb(21, 197, 212);
}
QSpinBox:disabled
{
    background-color: rgb(20, 20, 20);
    color: rgb(100, 100, 100);
    border: 1px solid rgb(100, 100, 100);
}
QSpinBox::up-button
{
    subcontrol-origin: padding;
    subcontrol-position: top right; 
    width: 20px;
    border: 1px solid rgb(100, 100, 100);
    border-top: transparent;
    border-right: transparent;
}
QSpinBox::up-button:hover
{
    border: 1px solid rgb(21, 197, 212);
    border-top: transparent;
    border-right: transparent;
}
QSpinBox::up-button:pressed 
{
    background-color: rgb(21, 197, 212);
    border: 1px solid rgb(21, 197, 212);
    border-bottom: transparent;
    border-right: transparent;
}
QSpinBox::up-button:disabled 
{
    background-color: rgb(20, 20, 20);
    border: 1px solid rgb(100, 100, 100);
    border-top: transparent;
    border-right: transparent;
}
QSpinBox::up-arrow
{
    image: url(:/Night/QSpinBox/spin_up_dark_normal.png);
}
QSpinBox::up-arrow:pressed
{
    image: url(:/Night/QSpinBox/spin_up_dark_pressed.png);
}
QSpinBox::up-arrow:disabled, QSpinBox ::up-arrow:off
{
    image: url(:/Night/QSpinBox/spin_up_dark_disable.png); 
}
QSpinBox::down-button
{
    subcontrol-origin: padding;
    subcontrol-position: bottom right; 
    width: 20px;
    border: 1px solid rgb(100, 100, 100);
    border-bottom: transparent;
    border-right: transparent;
}
QSpinBox::down-button:hover
{
    border: 1px solid rgb(21, 197, 212);
    border-bottom: transparent;
    border-right: transparent;
}
QSpinBox::down-button:pressed 
{
    background-color: rgb(21, 197, 212);
    border: 1px solid rgb(21, 197, 212);
    border-bottom: transparent;
    border-right: transparent;
}
QSpinBox::down-button:disabled
{
    background-color: rgb(20, 20, 20);
    border: 1px solid rgb(100, 100, 100);
    border-bottom: transparent;
    border-right: transparent;
}
QSpinBox::down-arrow
{
    image: url(:/Night/QSpinBox/spin_down_dark_normal.png);
}
QSpinBox::down-arrow:pressed
{
    image: url(:/Night/QSpinBox/spin_down_dark_pressed.png);
}
QSpinBox::down-arrow:disabled,QSpinBox ::down-arrow:off 
{
    image: url(:/Night/QSpinBox/spin_down_dark_disable.png);
}
/*QSpinBox End*/

/*下拉式组合框*/
/*QComboBox Start*/
QComboBox
{
    color: rgb(200, 200, 200);
    border: 1px solid rgb(100, 100, 100);
    background-color: rgb(20, 20, 20);
    font: 15px "Microsoft Yahei";
    combobox-popup: 0;
}

QComboBox:editable
{
    color: rgb(200, 200, 200);
    border: 1px solid rgb(100, 100, 100);
    background-color: rgb(20, 20, 20);
}

QComboBox:checked
{
    background-color: rgb(20, 20, 20);
}

QComboBox::drop-down
{
    width: 20px;
    border: 1px solid rgb(100, 100, 100);
}

QComboBox::drop-down:disable
{
    border: none;
}
QComboBox QAbstractItemView
{
    outline: 0px;
    color: rgb(200, 200, 200);
    background-color: rgb(20, 20, 20);
    selection-background-color: rgb(60, 60, 60);
    selection-color: rgb(200, 200, 200);
}
QComboBox:disabled

    color: rgba(100, 100, 100);
    border: 1px solid rgb(100, 100, 100);
    background-color: rgb(20, 20, 20);
}
QComboBox::down-arrow 
{
    image: url(:/Night/QComboBox/droplist_dark_normal.png);
}
QComboBox::down-arrow:disabled
{
    image: url(:/Night/QComboBox/droplist_dark_disable.png);
}

/*QComboBox End*/

/*滑动条*/
/*QScrollBar Start*/
QScrollBar:vertical
{
    border: 1px solid rgb(50, 50, 50);
    background-color: rgb(20, 20, 20);
    width: 34px;
    margin: 0px;
}
QScrollBar::add-line:vertical 
{
    image: url(:/Night/QScrollBar/slider_down_dark.png);
    subcontrol-position: bottom;
    subcontrol-origin: margin;
    /*margin-bottom:1px;*/
}
QScrollBar::sub-line:vertical
{
    image: url(:/Night/QScrollBar/slider_up_dark.png);
    subcontrol-position: top;
    subcontrol-origin: margin;
}
QScrollBar::handle:vertical
{
    background-color: rgb(50, 50, 50);
    min-height: 28px;  
    margin: 25 3 25 3;
}
QScrollBar::handle:vertical:hover
{
    background-color: rgb(80, 80, 80);
}
QScrollBar::handle:vertical:pressed
{
    background-color: rgb(120, 120, 120);
}
QScrollBar::add-page:vertical, QScrollBar::sub-page:vertical
{
    background: none;
}
QScrollBar:horizontal
{
    border: 1px solid rgb(50, 50, 50);
    background-color: rgb(20, 20, 20);
    height: 34px;
    margin: 0px;
}
QScrollBar::add-line:horizontal
{
    image: url(:/Night/QScrollBar/slider_right_dark.png);
    subcontrol-position: right;
    subcontrol-origin: margin;
}
QScrollBar::sub-line:horizontal
{
    image: url(:/Night/QScrollBar/slider_left_dark.png);
    subcontrol-position: left;
    subcontrol-origin: margin;
}
QScrollBar::handle:horizontal
{
    background-color: rgb(50, 50, 50);
    min-width: 28px;  
    margin: 3 25 3 25;
}
QScrollBar::handle:horizontal:hover
{
    background-color: rgb(80, 80, 80);
}
QScrollBar::handle:horizontal:pressed
{
    background-color: rgb(120, 120, 120);
}
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(:/Night/Title/titlebar_dark_normal.png);
}
/*底部菜单*/
QPushButton
{
    border-image: url(:/Night/MainBtn/mainbtn_dark_normal.png);
    color: rgb(21, 197, 212);
}
QPushButton:hover
{
    border-image: url(:/Night/MainBtn/mainbtn_dark_hover.png);
}
QPushButton:pressed
{
    border-image: url(:/Night/MainBtn/mainbtn_dark_pressed.png);
}

  • 5
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值