/*Widget*/
QWidget{
background-color: rgba(0, 70, 150,200);
color: white;
font-family: "Microsoft YaHei";
font-size: 15px;
border-radius: 10px;}
/*PushButton*/
QPushButton{
background-color: rgba(0, 125, 255,150);
min-width: 60px;
min-height: 30px;
border: 0px;
border-radius: 6px;
padding: 2px;
}
/* 悬停效果 */
QPushButton:hover {
background-color: rgba(40, 150, 255,150); /* 更亮的蓝色 */
}
/* 按下效果 */
QPushButton:pressed {
background-color: rgba(0, 95, 210,150); /* 更深的蓝色 */
padding-top: 3px; /* 按下凹陷效果 */
padding-left: 3px; /* 按下凹陷效果 */
}
/*Label*/
QLabel{
background-color: none;
}
/*QToolBox*/
QToolBox{
border-radius: 6px;
}
QToolBox::tab{
background-color: rgba(3, 25, 70,150);
border:6px;
border-radius: 6px;}
QToolBox::tab:select{
background-color: rgba(3, 25, 70,150);
}
QToolBox::tab:hover{
background-color: rgba(40, 150, 255,150);
}
QToolBox::tab:pressed{
background-color: rgba(3, 25, 70,150);
padding-top: 3px; /* 按下凹陷效果 */
padding-left: 3px;} /* 按下凹陷效果 */
/*QLineEdit*/
/*输入编辑框*/
QLineEdit{
border: 1px solid rgba(0, 125, 255,150);
border-radius: 3px;}
/*ComboBox*/
/*下拉框设置*/
QComboBox{
background-color: rgba(25, 15, 75,150);
border: none;
border-top-left-radius: 4px;
border-top-right-radius: 4px;
border-bottom-left-radius: 4px;
border-bottom-right-radius: 4px;
padding: 8px;
color: white;
}
QComboBox:selected, QComboBox:hover{
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,stop: 0 white, stop: 1 rgba(25, 15, 75,150));
}
QComboBox::down-arrow {
image: url(UI/Style/Icon/down-arrow.png);
width: 15px;
height: 20px;
}
QComboBox:selected{
border: 1px solid rgba(25, 15, 75,150);
}
QComboBox:drop-down{
border-style:none
}
QTableWidget {
background-color: rgba(0, 70, 150, 100);
border-radius: 6px;
border: 0px;
font: 75 12px "微软雅黑";
font-size: 12px;
line-height: 19px;
alternate-background-color: rgba(0, 70, 150, 50); /* 每行交替色 */
gridline-color: #ccc; /* 网格线颜色 */
outline: none; /* 去除虚线框 */
}
/* 表头样式 */
QTableWidget QHeaderView::section {
background-color: #004692;
font-size: 15px;
font-weight: bold;
color: white;
border: 1px solid #003366;
padding: 5px;
}
/* 左上角按钮样式 */
QTableWidget QTableCornerButton::section {
background-color: #003366;
border: 2px outset #002244;
}
/* 单元格样式 */
QTableWidget::item {
height: 35px;
border: none;
color: #333333;
font: 75 14px "微软雅黑";
line-height: 14px;
text-align: left;
padding-left: 5px;
}
/* 选中的单元格样式 */
QTableWidget::item:selected {
background-color: #3399ff;
color: white;
border-image: none;
border: none;
}
/* 鼠标悬浮的单元格样式 */
QTableWidget::item:hover {
background-color: #F5F5F5;
color: #333333;
border-image: none;
}
QHeaderView::section{
background-color: rgba(25, 15, 75,150);
font-weight:bold;
}按照这个,帮我编写一整套QSS文件
最新发布