You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
PayloadAPP/res/Qss/qss.qss

247 lines
6.2 KiB
Plaintext

/************************QWidget窗体设置****************************/
QWidget{
background-color: rgb(50, 50, 50);
}
/************************QPushButton按钮设置****************************/
/*hover样式*/
QPushButton:hover{
background-color: rgb(155,155,155);
}
/*pressed样式*/
QPushButton:pressed{
background-color: rgb(180,238,180);
}
QPushButton{
background-color:rgb(50,50,50);
color:rgb(255,255,255);
border-radius: 2px;
border: 1px groove gray;
border-style: outset;
font: 12pt "Microsoft YaHei";
}
/**************************QLineEdit编辑框设置*************************/
QLineEdit{
color:rgb(255,255,255);
border-radius: 2px;
border: 1px groove gray;
border-style: outset;
font: 12pt "Microsoft YaHei";
}
8 months ago
/***************************QComboBox下拉框设置************************/
QComboBox
{
border-radius:3px;
background-color:rgba(60,60,60,200);
font: 75 11pt "Microsoft YaHei";
color:rgb(255,255,255);
border:0px ;
padding-top: 2px;
padding-left: 2px;
border-width: 0.5px;
border-style: solid;
border-color: rgb(255,255,255);
}
QComboBox:disabled
{
background-color:rgba(50,50,50,200);
font: 75 11pt "Microsoft YaHei";
color:rgb(160,160,160);
}
QComboBox:hover
{
background-color:rgba(45,45,45,200);
border:1px solid rgb(31,156,220) ;
}
/*点击combox的样式*/
QComboBox:on
{
border-radius:3px;
background-color:rgba(35,35,35);
font: 75 11pt "Microsoft YaHei";
color:rgb(255,255,255);
border:1px solid rgb(31,156,220) ;
}
/*下拉框的样式*/
QComboBox QAbstractItemView
{
outline: 0px solid gray; /*取消选中虚线*/
border: 1px solid rgb(31,156,220);
font: 75 11pt "Microsoft YaHei";
color: rgb(255,255,255);
background-color: rgb(45,45,45);
selection-background-color: rgb(90,90,90);
}
/*选中每一项高度*/
QComboBox QAbstractItemView::item
{
height: 25px;
}
/*选中每一项的字体颜色和背景颜色*/
QComboBox QAbstractItemView::item:selected
{
color: rgb(31,163,246);
background-color: rgb(90,90,90);
}
/**********************设置TabWidget中的样式*****************/
TabWidget::tab
{
border:1px solid rgb(31,156,220);
}
TabWidget::pane
{
border-top:3px;
/*border:none;*/
}
/**********************设置TabWidget中tab_x的样式*****************/
#tab_1.QWidget{
8 months ago
background-color: rgb(50, 50, 50);
}
#tab_2.QWidget{
8 months ago
background-color: rgb(50, 50, 50);
}
#tab_3.QWidget{
8 months ago
background-color: rgb(50, 50, 50);
}
#tab_4.QWidget{
8 months ago
background-color: rgb(50, 50, 50);
}
#tab_5.QWidget{
8 months ago
background-color: rgb(50, 50, 50);
}
#tab_6.QWidget{
8 months ago
background-color: rgb(50, 50, 50);
}
/************************QTabBar设置************************/
QTabBar::tab{
background-color: #0B0E11;
8 months ago
font-family:Consolas; /*设置tab中的文本的字体*/
font-size:12pt;
color:rgb(255,255,255); /*设置tab中的文本的颜色*/
border-top-left-radius: 5px; /*设置tab的边框的圆角左上圆角*/
border-top-right-radius: 5px; /*设置tab的边框的圆角右上圆角*/
min-width: 12px;
padding: 5px;
8 months ago
background-color: rgb(50, 50, 50);
}
/*设置TabWidget中QTabBar的tab被选中时的样式*/
QTabBar::tab:selected{
background-color: rgb(204, 229, 255);
8 months ago
color: rgb(50, 50, 50);
}
/*设置TabWidget中鼠标悬浮在QTabBar的tab上但未选中该Tab的样式*/
QTabBar::tab:hover:!selected {
background-color: rgb(224, 224, 224);
8 months ago
color: rgb(50, 50, 50);
}
/*设置TabWidget的边框的样式*/
QTabWidget::pane {
border: 1px solid rgb(108, 117, 125);
}
/*当打开多个tab右侧出现点击后可以向前向后的按钮的样式*/
QTabBar QToolButton {
border: none;
color: rgb(255, 206, 6);
background-color: #0b0e11;
}
QTabBar QToolButton:hover {
8 months ago
background-color: rgb(50, 50, 50);
}
/****************************QLabel设置************************/
8 months ago
QLabel{
color: rgb(255, 255, 255);
font-family:Consolas;
font-size:11pt;
}
/***************************QSpinBox设置***********************/
QSpinBox{
border-radius:1px;
background-color:rgba(60,60,60,200);
font: 12pt "Microsoft YaHei";
color:rgb(255,255,255);
border-width: 0.5px;
border-style: solid;
border-color: rgb(255,255,255);
}
/***************************QGroupBox设置***********************/
QGroupBox{
border:1px solid rgb(255,255,255);
border-radius:5px;
margin-top:2ex;/*文字在方框中位置的偏离度*/
color:rgb(153,255,153);
font-family:Consolas;
font-size:12pt;
/*font:bold 12px;*/
}
QGroupBox::title
{
subcontrol-origin:margin;
subcontrol-position:top center;
right:5px;
left:0px;
padding:0 1px 0 1px;
}
/***************************QRadioButton设置***********************/
QRadioButton{
color: rgb(255, 255, 255);
font-family:Consolas;
font-size:11pt;
}
/***************************QFrame***********************/
QFrame#frameGDDCPage
{
border:1px solid rgb(0,255,0);
}
/***************************QTableView***********************/
QTableView
{
color: rgb(255, 255, 255);
font: 12pt "Microsoft YaHei UI";
border:none;
background-color: rgba(50, 50, 50, 50); /*rgba(150, 223, 155, 50)*/
selection-background-color: rgba(96, 96, 96, 0); /*选中区域的背景色,设置成透明96,96,96*/
}
QTableWidget::item {
font-size: 12pt;
color: #34495E;
height: 30px;
width: 80px;
}
/*设置单元格背景颜色*/
QTableWidget::item:selected
{
/*background-color:#CCFFE5;*/
}
/*设置表头背景颜色、角落颜色*/
QHeaderView::section,QTableCornerButton:section
{
padding:3px;
margin:0px;
color:rgb(0, 255, 0);
border:1px solid #242424;
border-left-width:0px;
border-right-width:1px;
border-top-width:0px;
border-bottom-width:1px;
background:qlineargradient(spread:pad,x1:0,y1:0,x2:0,y2:1,stop:0 rgb(128, 128, 128),stop:1 #525252);
}
QHeaderView::section:checked
{
background-color: rgb(11, 11, 11);
}
/*设置表格中的水平线和垂直线*/
QTableWidget::horizontalHeader
{
border-bottom: 1px solid #DADADA;
}
QTableWidget::verticalHeader
{
border-right: 1px solid #DADADA;
}