192 lines
5.0 KiB
Plaintext
192 lines
5.0 KiB
Plaintext
|
//无数据部分表头
|
||
|
QHeaderView{
|
||
|
border: none;
|
||
|
border-bottom: 3px solid rgb(0, 160, 230);
|
||
|
background: rgb(57, 58, 60);
|
||
|
min-height: 30px;
|
||
|
}
|
||
|
//有数据部分水平表头
|
||
|
QHeaderView::section:horizontal {
|
||
|
border: none;
|
||
|
color: white;
|
||
|
background: transparent;
|
||
|
padding-left: 5px;
|
||
|
}
|
||
|
//有数据部分垂直表头
|
||
|
QHeaderView::section:vertical {
|
||
|
border: none;
|
||
|
color: white;
|
||
|
background: transparent;
|
||
|
padding-left: 5px;
|
||
|
}
|
||
|
//有数据部分表格角落按钮
|
||
|
QTableCornerButton:section{
|
||
|
background:#039092;
|
||
|
border:1px solid #777777;
|
||
|
}
|
||
|
QTreeView,QListView,QTableView,QSplitter::handle,QTreeView::branch{
|
||
|
background:#ff0000;
|
||
|
}
|
||
|
QHeaderView::section:horizontal:hover {
|
||
|
background: rgb(0, 160, 230);
|
||
|
}
|
||
|
QHeaderView::section:horizontal:pressed {
|
||
|
background: rgb(0, 180, 255);
|
||
|
}
|
||
|
QHeaderView::up-arrow {
|
||
|
width: 13px;
|
||
|
height: 11px;
|
||
|
padding-right: 5px;
|
||
|
image: url(:/Black/topArrow);
|
||
|
subcontrol-position: center right;
|
||
|
}
|
||
|
QHeaderView::up-arrow:hover, QHeaderView::up-arrow:pressed {
|
||
|
image: url(:/Black/topArrowHover);
|
||
|
}
|
||
|
QHeaderView::down-arrow {
|
||
|
width: 13px;
|
||
|
height: 11px;
|
||
|
padding-right: 5px;
|
||
|
image: url(:/Black/bottomArrow);
|
||
|
subcontrol-position: center right;
|
||
|
}
|
||
|
QHeaderView::down-arrow:hover, QHeaderView::down-arrow:pressed {
|
||
|
image: url(:/Black/bottomArrowHover);
|
||
|
}
|
||
|
|
||
|
/**********表格**********/
|
||
|
//无数据部分内容样式
|
||
|
QTableView {
|
||
|
border: 1px solid rgb(45, 45, 45);
|
||
|
background: rgb(57, 58, 60);
|
||
|
gridline-color: rgb(60, 60, 60);//表格数据部分网格线
|
||
|
}
|
||
|
//有数据部分内容样式
|
||
|
QTableView::item {
|
||
|
padding-left: 5px;
|
||
|
padding-right: 5px;
|
||
|
border: none;
|
||
|
background: rgb(72, 72, 74);
|
||
|
border-right: 1px solid rgb(45, 45, 45);
|
||
|
border-bottom: 1px solid rgb(45, 45, 45);
|
||
|
}
|
||
|
QTableView::item:selected {
|
||
|
background: rgba(255, 255, 255, 40);
|
||
|
}
|
||
|
QTableView::item:selected:!active {
|
||
|
color: white;
|
||
|
}
|
||
|
QTableView::indicator {
|
||
|
width: 20px;
|
||
|
height: 20px;
|
||
|
}
|
||
|
QTableView::indicator:enabled:unchecked {
|
||
|
image: url(:/Black/checkBox);
|
||
|
}
|
||
|
QTableView::indicator:enabled:unchecked:hover {
|
||
|
image: url(:/Black/checkBoxHover);
|
||
|
}
|
||
|
QTableView::indicator:enabled:unchecked:pressed {
|
||
|
image: url(:/Black/checkBoxPressed);
|
||
|
}
|
||
|
QTableView::indicator:enabled:checked {
|
||
|
image: url(:/Black/checkBoxChecked);
|
||
|
}
|
||
|
QTableView::indicator:enabled:checked:hover {
|
||
|
image: url(:/Black/checkBoxCheckedHover);
|
||
|
}
|
||
|
QTableView::indicator:enabled:checked:pressed {
|
||
|
image: url(:/Black/checkBoxCheckedPressed);
|
||
|
}
|
||
|
QTableView::indicator:enabled:indeterminate {
|
||
|
image: url(:/Black/checkBoxIndeterminate);
|
||
|
}
|
||
|
QTableView::indicator:enabled:indeterminate:hover {
|
||
|
image: url(:/Black/checkBoxIndeterminateHover);
|
||
|
}
|
||
|
QTableView::indicator:enabled:indeterminate:pressed {
|
||
|
image: url(:/Black/checkBoxIndeterminatePressed);
|
||
|
}
|
||
|
|
||
|
/**********滚动条-水平**********/
|
||
|
QScrollBar:horizontal {
|
||
|
height: 20px;
|
||
|
background: transparent;
|
||
|
margin-top: 3px;
|
||
|
margin-bottom: 3px;
|
||
|
}
|
||
|
QScrollBar::handle:horizontal {
|
||
|
height: 20px;
|
||
|
min-width: 30px;
|
||
|
background: rgb(68, 69, 73);
|
||
|
margin-left: 15px;
|
||
|
margin-right: 15px;
|
||
|
}
|
||
|
QScrollBar::handle:horizontal:hover {
|
||
|
background: rgb(80, 80, 80);
|
||
|
}
|
||
|
QScrollBar::sub-line:horizontal {
|
||
|
width: 15px;
|
||
|
background: transparent;
|
||
|
image: url(:/Black/arrowLeft);
|
||
|
subcontrol-position: left;
|
||
|
}
|
||
|
QScrollBar::add-line:horizontal {
|
||
|
width: 15px;
|
||
|
background: transparent;
|
||
|
image: url(:/Black/arrowRight);
|
||
|
subcontrol-position: right;
|
||
|
}
|
||
|
QScrollBar::sub-line:horizontal:hover {
|
||
|
background: rgb(68, 69, 73);
|
||
|
}
|
||
|
QScrollBar::add-line:horizontal:hover {
|
||
|
background: rgb(68, 69, 73);
|
||
|
}
|
||
|
QScrollBar::add-page:horizontal,QScrollBar::sub-page:horizontal {
|
||
|
background: transparent;
|
||
|
}
|
||
|
|
||
|
/**********滚动条-垂直**********/
|
||
|
QScrollBar:vertical {
|
||
|
width: 20px;
|
||
|
background: transparent;
|
||
|
margin-left: 3px;
|
||
|
margin-right: 3px;
|
||
|
}
|
||
|
QScrollBar::handle:vertical {
|
||
|
width: 20px;
|
||
|
min-height: 30px;
|
||
|
background: rgb(68, 69, 73);
|
||
|
margin-top: 15px;
|
||
|
margin-bottom: 15px;
|
||
|
}
|
||
|
QScrollBar::handle:vertical:hover {
|
||
|
background: rgb(80, 80, 80);
|
||
|
}
|
||
|
QScrollBar::sub-line:vertical {
|
||
|
height: 15px;
|
||
|
background: transparent;
|
||
|
image: url(:/Black/arrowTop);
|
||
|
subcontrol-position: top;
|
||
|
}
|
||
|
QScrollBar::add-line:vertical {
|
||
|
height: 15px;
|
||
|
background: transparent;
|
||
|
image: url(:/Black/arrowBottom);
|
||
|
subcontrol-position: bottom;
|
||
|
}
|
||
|
QScrollBar::sub-line:vertical:hover {
|
||
|
background: rgb(68, 69, 73);
|
||
|
}
|
||
|
QScrollBar::add-line:vertical:hover {
|
||
|
background: rgb(68, 69, 73);
|
||
|
}
|
||
|
QScrollBar::add-page:vertical, QScrollBar::sub-page:vertical {
|
||
|
background: transparent;
|
||
|
}
|
||
|
|
||
|
QScrollBar#verticalScrollBar:vertical {
|
||
|
margin-top: 30px;
|
||
|
}
|