个人技术分享

蓝色格调qss

QWidget
{
    color: rgb(255, 255, 255);
    font: 18px "Microsoft Yahei";
}

QWidget#widget
{
    background-color: rgb(12, 43, 69);
}

QWidget#mainwidget_title
{
    background-color: rgb(23, 68, 119);
}

QWidget#widget_split
{
    background-color: rgb(56, 117, 246);
}

QLabel#label_mainsysName
{
    font: bold 22px "Microsoft Yahei";
}

QLabel#label_title, #label_titleTotal
{
    font: bold 20px "Microsoft Yahei";
}

/*QLineEdit Start*/
QLineEdit#lineEdit_search, #lineEdit_id, #lineEdit_date, #lineEdit_name, #lineEdit_content
{
    background-color: rgb(8, 33, 61);
    border: 1px solid rgb(80, 125, 170);
}
QLineEdit#lineEdit_search:hover, #lineEdit_id:hover, #lineEdit_date:hover, #lineEdit_name:hover, #lineEdit_content:hover
{
    border: 1px solid rgb(113, 224, 255);
}
/*QLineEdit End*/

/*QTextEdit Start*/
QTextEdit
{
    background-color: rgb(8, 33, 61);
    border: 1px solid rgb(80, 125, 170);
}
QTextEdit:hover
{
    border: 1px solid rgb(113, 224, 255);
}
/*QTextEdit End*/

/*QPushButton Start*/
QPushButton
{
    background-color: qlineargradient(x1:0, y1:0, x2:1, y2:0, stop:0 rgb(13, 60, 106), stop:1.0 rgb(15, 84, 132));
    border: none;
    border-radius: 2px;
}
QPushButton:hover
{
    background-color: rgb(5, 140, 245);
}
QPushButton:pressed
{
    background-color: rgb(38, 105, 177);
}
QPushButton#btn_close
{
    border: 0px;
    background-color: transparent;
    background-image: url(:/close.png);
}
QPushButton#btn_min
{
    border: 0px;
    background-color: transparent;
    background-image: url(:/minimize.png);
}
QPushButton#btn_max
{
    border: 0px;
    background-color: transparent;
    background-image: url(:/maximize.png);
}
QPushButton#btn_sysupdate
{
    border: 0px;
    background-color: transparent;
    background-image: url(:/sysupdate.png);
}
QPushButton#btn_sysSetting
{
    border: 0px;
    background-color: transparent;
    background-image: url(:/setting.png);
}

QPushButton#btn_color
{
    border: 0px;
    background-color: transparent;
    background-image: url(:/skin.png);
}
/*QPushButton End*/

/*QTableWidget Start*/
QTableWidget#tableWidget_event, #tableWidget_eventAll,#tableWidget_ul, #tableWidget_um
{
    background-color: rgb(20, 49, 82);
    border: 1px solid rgb(80, 125, 170);
    gridline-color: rgb(20, 49, 82);
}
QTableWidget#tableWidget_event,#tableWidget_eventAll,#tableWidget_ul, #tableWidget_um
{
    border: 0px;
    gridline-color: rgb(12, 43, 69);
    background-color:rgb(12, 43, 69);
    alternate-background-color:rgb(20, 55, 95);
}
QTableWidget#tableWidget_event::item, #tableWidget_eventAll::item,#tableWidget_ul::item, #tableWidget_um::item
{
    border-left: 1px solid rgb(50, 100, 150);
    border-right: 0px;
    border-bottom: 1px solid rgb(50, 100, 150);
    border-top: 0px;
}

QTableWidget#tableWidget_event::item:selected, #tableWidget_eventAll::item:selected,#tableWidget_ul::item:selected, #tableWidget_um::item:selected
{
    color: rgb(255, 255, 255);
    background-color: rgb(20, 70, 112);
    border-left: 0px;
    border-right: 0px;
}
QTableWidget#tableWidget_event::item:hover,#tableWidget_eventAll::item:hover,#tableWidget_ul::item:hover, #tableWidget_um::item:hover
{
    color: rgb(255, 255, 255);
    background-color: rgb(20, 70, 112);
}

QHeaderView::section
{
    height: 40px;
    background-color: rgb(15, 76, 127);
    border: 1px solid rgb(60, 125, 200);
    font: bold 20px "Microsoft Yahei";
}


/*QTableWidget End*/

/*QCheckBox Start*/
QCheckBox
{
    spacing: 8px;
}
QCheckBox::indicator:unchecked
{
    image: url(:/checkbox_normal.png);
}
QCheckBox::indicator:unchecked:hover
{
    image: url(:/checkbox_hover.png);
}
QCheckBox::indicator:checked
{
    image: url(:/checkbox_press.png);
}
/*QCheckBox End*/

/*ÏÂÀ­Ê½×éºÏ¿ò*/
/*QComboBox Start*/
QComboBox
{
    color: rgb(255, 255, 255);
    border: 1px solid rgb(80, 125, 170);
    background-color: rgb(20, 49, 82);
    font: 18px "Microsoft Yahei";
}

QComboBox:editable
{
    color: rgb(255, 255, 255);
    border: 1px solid rgb(113, 224, 255);
    background-color: rgb(8, 33, 61);
}

QComboBox:checked
{
    color: rgb(255, 255, 255);
    border: 1px solid rgb(113, 224, 255);
    background-color: rgb(8, 33, 61); 
}

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

QComboBox::drop-down:disable
{
    border: none;
}
QComboBox QAbstractItemView
{
    outline: 0px;
    color: rgb(255, 255, 255);
    background-color:rgb(10, 54, 95) ;
    selection-background-color: rgb(5, 140, 245);
    selection-color: rgb(255, 255, 255);
}
QComboBox QAbstractItemView::item::hover    
{
    color: rgb(108, 216, 247 );
}
QComboBox:disabled

    color: rgb(80, 125, 170);
    border: 1px solid rgb(80, 125, 170);
    background-color: rgb(8, 33, 61);
}
QComboBox::down-arrow 
{
    image: url(:/combox_normal.png);
}
QComboBox::down-arrow:hover
{
    image: url(:/combox_hover.png);
}
QComboBox::down-arrow:checked
{
    image: url(:/combox_hover.png);
}
/*QComboBox End*/

/*QMenu Start*/
QMenu
{
    text-align: left;
    color: rgb(255, 255, 255);
    background-color: rgb(10, 55, 95);
    border: 1px solid rgb(80, 126, 170);
    font: 18px "Microsoft Yahei";
}
QMenu::item
{
    text-align: left;
    height: 32px;
    margin: 0px;
    padding-top: 5px;
    padding-bottom: 5px;
    padding-left: 30px;
    padding-right: 30px;
    border-width: 0px;
}
QMenu::item:selected
{
    background-color: rgb(5, 141, 246);
}
/*QMenu End*/


QScrollBar:vertical
{
    border: 0px;
    background-color: rgb(9, 28, 53);
    width: 10px;
    margin: 0px;
}

QScrollBar::add-line:vertical 
{
    background-color: rgb(9, 28, 53);
}
QScrollBar::sub-line:vertical
{
    background-color: rgb(9, 28, 53);
}
QScrollBar::handle:vertical
{
    background-color: rgb(2, 114, 145);
    min-height: 28px;  
    margin: 3 2 3 2;
    border-radius: 3px;
}
QScrollBar::handle:vertical:hover
{
    background-color: rgb(0, 134, 172);
}
QScrollBar::handle:vertical:pressed
{
    background-color: rgb(0, 134, 172);
}
QScrollBar::add-page:vertical, QScrollBar::sub-page:vertical
{
    background: none;
}


QScrollBar:horizontal
{
    border: 0px;
    background-color: rgb(9, 28, 53);
    height: 10px;
    margin: 0px;
}
QScrollBar::add-line:horizontal
{
    background-color: rgb(9, 28, 53);
}
QScrollBar::sub-line:horizontal
{
    background-color: rgb(9, 28, 53);
}
QScrollBar::handle:horizontal
{
    background-color: rgb(2, 114, 145);
    min-width: 28px;
    margin: 2 3 2 3;
    border-radius: 3px;
}
QScrollBar::handle:horizontal:hover
{
    background-color: rgb(0, 134, 172);
}
QScrollBar::handle:horizontal:pressed
{
    background-color: rgb(0, 134, 172);
}
QScrollBar::add-page:horizontal, QScrollBar::sub-page:horizontal
{
    background: none;
}

QWidget#widget_bg
{
    background-color: rgb(8, 45, 74);
    border: 1px solid rgb(33, 200, 160);
}

QWidget#widget_title
{
    background-color: qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:0, stop:0 rgb(32, 83, 139), stop:1.0 rgb(10, 35, 60));
}

QLabel#label_title
{
    font-size: 20px;
}

/*QLineEdit Start*/
QLineEdit#lineEdit_id, #lineEdit_name, #lineEdit_date
{
    background-color: rgb(8, 33, 61);
    border: 1px solid rgb(80, 125, 170);
}
QLineEdit#lineEdit_id:hover, #lineEdit_name:hover, #lineEdit_date:hover
{
    border: 1px solid rgb(113, 224, 255);
}
/*QLineEdit End*/

/*QTextEdit Start*/
QTextEdit#textEdit
{
    background-color: rgb(8, 33, 61);
    border: 1px solid rgb(80, 125, 170);
}
QTextEdit#textEdit:hover
{
    border: 1px solid rgb(113, 224, 255);
}
/*QTextEdit End*/

/*QPushButton Start*/
QPushButton#btn_cancel, #btn_confirm
{
    background-color: qlineargradient(x1:0, y1:0, x2:1, y2:0, stop:0 rgb(13, 60, 106), stop:1.0 rgb(15, 84, 132));
    border: none;
    border-radius: 2px;
}
QPushButton#btn_cancel, #btn_confirm:hover
{
    background-color: rgb(5, 140, 245);
}
QPushButton#btn_cancel, #btn_confirm:pressed
{
    
    background-color: rgb(38, 105, 177);
}

/*QPushButton End*/


QLabel#label_tips
{
    color: rgb(255, 0, 0);
}

/*QLineEdit Start*/
QLineEdit#lineEdit_passwordNew, #lineEdit_passwordOrigin, #lineEdit_account
{
    background-color: rgb(8, 33, 61);
    border: 1px solid rgb(80, 125, 170);
}
QLineEdit#lineEdit_passwordNew:hover, #lineEdit_passwordOrigin:hover, #lineEdit_account:hover
{
    border: 1px solid rgb(113, 224, 255);
}
/*QLineEdit End*/

/*QPushButton Start*/


/*QPushButton End*/


QWidget#ZU_Start
{
    background-color: rgb(12, 43, 69);
}


QLabel#label_sysName
{
    font: bold 70px "Microsoft Yahei";
}

QLabel#label_z, #label_m
{
    font: bold 20px "Microsoft Yahei";
}

/*QLineEdit Start*/
QLineEdit#lineEdit_name, #lineEdit_password
{
    background-color: rgb(8, 33, 61);
    border: 1px solid rgb(80, 125, 170);
}
QLineEdit#lineEdit_name:hover, #lineEdit_password:hover
{
    border: 1px solid rgb(113, 224, 255);
}
/*QLineEdit End*/

/*QPushButton Start*/

QPushButton#btn_login
{
    font-size: 24px;
}

QPushButton#btn_modify
{
    border: 0px;
    background-color: transparent;
}
/*QPushButton End*/

QWidget#widget_tips
{
    background-color: rgba(40, 63, 85, 229);
    border-radius: 16px;
}

QLabel#labelTips
{
    font: 16px "΢ÈíÑźÚ";
    color: rgb(255, 255, 255);
}


/*QLineEdit Start*/
QLineEdit#lineEdit_manager, #lineEdit_name, #lineEdit_number, #lineEdit_source
{
    background-color: rgb(8, 33, 61);
    border: 1px solid rgb(80, 125, 170);
}
QLineEdit#lineEdit_manager:hover, #lineEdit_name:hover, #lineEdit_number:hover, #lineEdit_source:hover
{
    border: 1px solid rgb(113, 224, 255);
}

QLineEdit#lineEdit_content, #lineEdit_version, #lineEdit_date, #lineEdit_author
{
    background-color: rgb(8, 33, 61);
    border: 1px solid rgb(80, 125, 170);
}
QLineEdit#lineEdit_content:hover, #lineEdit_version:hover, #lineEdit_date:hover, #lineEdit_author:hover
{
    border: 1px solid rgb(113, 224, 255);
}
/*QLineEdit End*/

/*QPushButton Start*/


/*QPushButton End*/

/*QTableWidget#tableWidget
{
    background-color: rgb(20, 49, 82);
    border: 1px solid rgb(80, 125, 170);
    gridline-color: rgb(12, 43, 69);
    alternate-background-color:rgb(20, 55, 95);
}*/
QTableWidget#tableWidget
{
    background-color: rgb(20, 49, 82);
    border: 1px solid rgb(80, 125, 170);
    gridline-color: rgb(20, 49, 82);
}
QTableWidget#tableWidget::item
{
    border-left: 1px solid rgb(50, 100, 150);
    border-right: 0px;
    border-bottom: 1px solid rgb(50, 100, 150);
    border-top: 0px;
}

QTableWidget#tableWidget::item:selected
{
    color: rgb(255, 255, 255);
    background-color: rgb(20, 70, 112);
    border-left: 0px;
    border-right: 0px;
}
QTableWidget#tableWidget::item:hover
{
    color: rgb(255, 255, 255);
    background-color: rgb(20, 70, 112);
}

QHeaderView::section
{
    height: 40px;
    background-color: rgb(15, 76, 127);
    border: 1px solid rgb(60, 125, 200);
    font: bold 20px "Microsoft Yahei";
}

/*QLineEdit Start*/
QLineEdit#lineEdit_password, #lineEdit_account
{
    background-color: rgb(8, 33, 61);
    border: 1px solid rgb(80, 125, 170);
}
QLineEdit#lineEdit_password:hover, #lineEdit_account:hover
{
    border: 1px solid rgb(113, 224, 255);
}
/*QLineEdit End*/

/*QPushButton Start*/


/*QPushButton End*/

/*QPushButton Start*/


QPushButton#btn_add
{
    border: 0px;
    background-color: transparent;
    image: url(:/add.png);
}

QPushButton#btn_edit
{
    border: 0px;
    background-color: transparent;
    image: url(:/modify.png);
}

QPushButton#btn_delete
{
    border: 0px;
    background-color: transparent;
}
/*QPushButton End*/

/*QDateEdit Start*/
QDateEdit 
{
    color:rgba(175, 175, 175, 255);
    padding-right: 5px; /* make room for the arrows */
    padding-left: 5px; /* make room for the arrows */
    border: 1px solid rgb(80, 125, 170);
    background-color: rgb(8, 33, 61);
    selection-color: rgba(15, 15, 15, 255);
    selection-background-color: rgba(21, 197, 212, 255);
}
QDateEdit:hover
{
    border: 1px solid rgb(113, 224, 255);
}
QDateEdit:pressed
{
    background-color: rgb(8, 33, 61);
}
QDateEdit:disabled
{
    color:rgba(60, 60, 60, 255);
    border: 1px solid rgba(60, 60, 60, 255);
}
QDateEdit::up-button
{
    subcontrol-origin: padding;
    subcontrol-position: top right; /* position at the top right corner */
    width: 20px;
    border: 1px solid rgb(80, 125, 170);
    border-top: transparent;
    border-right: transparent;
}
QDateEdit::up-button:hover 
{
    border: 1px solid rgb(113, 224, 255);
    border-top: transparent;
    border-right: transparent;
}
QDateEdit::up-button:disabled  
{
    border: 1px solid rgba(60, 60, 60, 255);
    border-top: transparent;
    border-right: transparent;
}
QDateEdit::up-arrow 
{
    image: url(:/upArrow_normal.png);
}
QDateEdit::up-arrow:pressed
{
    image: url(:/upArrow_pressed.png);
}
QDateEdit::up-arrow:disabled, QDateEdit::up-arrow:off  
{ /* off state when value is max*/
    image: url(:/upArrow_disable.png); 
}
QDateEdit::down-button 
{
    subcontrol-origin: padding;
    subcontrol-position: bottom right; 
    width: 20px;
    border: 1px solid rgb(80, 125, 170);
    border-bottom: transparent;
    border-right: transparent;
}
QDateEdit::down-button:hover
{
    border: 1px solid rgb(113, 224, 255);
    border-bottom: transparent;
    border-right: transparent;
}
QDateEdit::down-button:disabled
{
    border: 1px solid rgba(60, 60, 60, 255);
    border-bottom: transparent;
    border-right: transparent;
}
QDateEdit::down-arrow
{
   image: url(:/downArrow_normal.png);
}
QDateEdit::down-arrow:pressed
{
   image: url(:/downArrow_pressed.png);
}
QDateEdit::down-arrow:disabled,QDateEdit::down-arrow:off

   image: url(:/downArrow_disable.png);
}
QDateEdit::drop-down

    border: 1px solid rgb(80, 125, 170);
    background-color: rgb(8, 33, 61);
}
QDateEdit::drop-down::hover

    border: 1px solid rgb(113, 224, 255);
    background-color: rgb(8, 33, 61);
}
QDateEdit::drop-down::pressed

    border: 1px solid rgb(113, 224, 255);
    background-color: rgb(8, 33, 61);
}
QCalendarWidget QWidget
{
    background-color: rgb(20, 55, 95);
    color: rgb(255,255,255);
    selection-background-color: rgb(15, 76, 127);
}
QCalendarWidget QTableView
{
    alternate-background-color: rgb(15, 76, 127);
    color: rgb(255,255,255);
}
/*QDateEdit End*/