dark QSS

来源:互联网 发布:光棍节程序员闯关 编辑:程序博客网 时间:2024/06/05 08:22
/*设置背景色和前景色*/
QMainWindow, 
QAbstractItemView,  
QTreeView::branch, 
QStackWidget,
QTabBar::tab{
        color: #EAEAEA;
        background: rgb(37, 37, 37); 
}
/*设置QAbstractItemView的派生类的item选中*/
QAbstractItemView::item:selected {
        color: #EAEAEA;/*前景色*/
        background-color: rgb(63,63,70);/*背景色*/
        border:none;/*border*/
}


/* ScrollBar style 自定义QScrollBar*/
QScrollBar {
     border: none;
     background: rgb(62,62,62);
     height: 6px;
     width: 12px;
     margin: 0px;
}
/*滚动块的style*/
QScrollBar::handle{
     background: rgb(104, 104, 104);
     min-width: 10px;
     min-height: 10px;
}
/*鼠标移动到滚动块上的style*/
QScrollBar::handle:hover{
     background: rgb(158, 158, 158);
}
QScrollBar::handle:hover:pressed{
     background: rgb(239, 239, 239);
}


QScrollBar::add-line,  QScrollBar::sub-line {
     background: none;
     border: none;
}
QScrollBar::add-page, QScrollBar::sub-page {
     background: none;
}
/*设置QTreeVIew的branch在关闭和跟其他项相邻并且有child*/
QTreeView::branch:closed:adjoins-item:has-children {
     background:  solid #777777;
     margin: 6px;
     height: 6px;
     width: 6px;
}
/*tab被选中*/
QTabBar::tab:selected {
     font: bold;
     border-color: #9B9B9B;
     border-bottom-color: #C2C7CB;
 }
/*tab不被选中*/
QTabBar::tab:!selected {
     margin-top: 2px;
 }


QHeaderView::section {
     background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1,
                                       stop:0 #616161, stop: 0.5 #505050,
                                       stop: 0.6 #434343, stop:1 #656565);
     color: white;
     padding-left: 4px;
     border: 1px solid #6c6c6c;
}


QToolBar {
     border-style: solid;
     border-style: outset;
     color: #EAEAEA;
     background: #333333;
     font-size: 9pt;
}


/* The code editor background */
QPlainTextEdit {
  background-color: rgb(30,30,30); 
}


QObject[windowTitle="File System"] QWidget 
{
    color: #EAEAEA;
}


/* search result panel */
QObject[windowTitle="Search Results"] QWidget
{
    color: #FFFFFF;
    background: rgb(30, 30, 30);
}


QWidget[windowTitle="Compile Output"],
QWidget[windowTitle="Version Control"],
QWidget[windowTitle="QML/JS Console"]
{
    color: #EAEAEA;
    background: rgb(30, 30, 30);
}
0 0
原创粉丝点击