/* 整体背景色 */
QMainWindow {
background-color: rgb(10, 30, 45);
}
/* QLabel 样式设置 */
QLabel {
color: rgb(255, 255, 255);
}
QLabel::disabled {
color: rgb(90, 110, 130);
}
QToolBar, QFrame, QDialog {
background-color: rgb(11, 53, 89);
}
QToolButton {
color: rgb(255, 255, 255);
}
QToolButton::hover {
background-color: rgba(0, 91, 174, 204);
border: 1px solid rgb(25, 130, 227);
border-radius: 4px;
}
/* QTableWidget QTableView 样式设置 */
QTableWidget, QTableView {
background-color: rgb(9, 41, 68);
color: rgb(255, 255, 255);
gridline-color: rgb(30, 65, 105);
}
QTableWidget::item::selected, QTableView::item::selected {
background-color: rgb(2, 110, 210);
}
QTableWidget::item::hover, QTableView::item::hover {
background-color: rgb(1, 91, 174);
}
QHeaderView::section {
background-color: rgb(0, 60, 109) !important;
border: 0px solid red !important;
border-bottom: 1px solid gray !important;
color: rgb(255, 255, 255) !important;
gridline-color: rgb(30, 65, 105) !important;
}
QHeaderView::section:horizontal, QTableView QHeaderView {
border-right: 1px solid gray;
border-left: 1px solid gray;
}
QTableWidget QTableCornerButton::section, QTableView QTableCornerButton::section {
background-color: rgb(0, 60, 109);
}
/* QPushButton 样式设置 */
QPushButton {
color: rgb(255, 255, 255);
background-color: rgb(0, 91, 174);
border-radius: 4px;
padding: 4px;
}
QPushButton::hover {
border: 1px solid rgb(255, 255, 255);
}
QPushButton::pressed {
background-color: rgb(25, 130, 227);
border: 0px;
}
QPushButton::disabled {
color: rgb(105, 140, 165);
background-color: rgb(35, 85, 140);
}
/* QLineEidt 样式设置 */
QLineEdit {
border: 1px solid rgb(80, 125, 170);
background-color: rgba(5, 25, 53, 204);
color: rgb(255, 255, 255);
}
QLineEdit::hover {
border: 1px solid rgb(22, 148, 254);
}
QLineEdit::disabled {
border: 1px solid rgb(34, 75, 115);
}
/* QComboBox 样式设置 */
QComboBox {
border: 1px solid rgb(80, 125, 170);
color: rgb(255, 255, 255);
background-color: rgba(5, 26, 53, 204);
}
QComboBox::hover {
border: 1px solid rgb(22, 148, 254);
}
QComboBox QAbstractItemView::item {
color: rgb(255, 255, 255);
height: 35px;
}
QComboBox QAbstractItemView::item::hover {
border: 1px solid rgb(22, 148, 254);
background-color: rgb(55, 135, 218);
color: rgb(255, 255, 255);
}
QComboBox::disabled {
border: 1px solid rgb(34, 75, 115);
color: rgb(90, 110, 130);
background-color: rgba(5, 26, 53, 204);
}
/* QSpinBox 样式设置 */
QSpinBox {
border: 1px solid rgb(80, 125, 170);
color: rgb(255, 255, 255);
background-color: rgba(5, 26, 53, 204);
}
QSpinBox::hover {
border: 1px solid rgb(22, 148, 254);
color: rgb(255, 255, 255);
}
QSpinBox::up-button::hover, QSpinBox::down-button::hover {
border: 1px solid rgb(22, 148, 254);
}
QSpinBox::up-button::pressed, QSpinBox::down-button::pressed {
border: 1px solid rgb(22, 148, 254);
color: rgb(255, 255, 255);
background-color: rgba(15, 95, 165, 204);
}
QSpinBox::disabled {
border: 1px solid rgb(34, 75, 115);
color: rgb(90, 110, 130);
background-color: rgba(5, 26, 53, 204);
}
/* QTabWidget 样式设置 */
QTabWidget {
border: none;
}
QTabWidget::pane {
border: none;
}
QTabBar::tab {
background-color: rgb(0, 91, 174);
color: rgb(255, 255, 255);
padding: 4px;
border: none;
border-bottom: 2xp solid rgb(35, 85, 140);
}
QTabBar::tab::hover {
background-color: rgb(0, 91, 174);
color: rgb(255, 255, 255);
border-radius: 4px;
border: 1px solid rgb(255, 255, 255);
border-width: 1px 1px 2px 1px;
}
QTabBar::tab::selected {
background-color: rgb(25, 130, 227);
color: rgb(255, 255, 255);
border: none;
border-bottom: 2px solid rgb(35, 85, 140);
}
QTabBar::disabled {
background-color: rgb(35, 85, 140);
color: rgb(105, 140, 165);
border: none;
border-bottom: 2px solid rgb(35, 85, 140);
}
/* QSilder 样式设置 */
QSlider::groove:horizontal {
height: 7px;
background-color: rgb(22, 61, 100);
border-radius: 3px;
}
QSlider::sub-page:horizontal {
background-color: rgb(0, 255, 252);
height: 6px;
border-radius: 3px;
}
QSlider::handle {
background-color: rgb(81, 75, 255);
width: 3px;
margin-top: -1px;
margin-bottom: -1px;
margin-left: 0;
margin-right: 0;
border-radius: 3px;
border: 0px ;
border-style: solid;
border-color: #ffffff;
}
/* QDialog 样式设置 */
QDialog {
background-color: rgba(25, 55, 85, 204);
border: 1px solid rgba(15, 80, 135, 204);
border-radius: 2px;
font-size: 17px;
margin: 0px;
}
/* QGroupBox 控件样式 */
QGroupBox {
border: 1px solid rgba(15, 80, 135, 204);
margin-top: 2ex;
padding: 5px;
}
QGroupBox::title {
color: rgb(255, 255, 255);
subcontrol-origin: margin;
left: 10px;
}
/* QCheckBox 控件样式 */
QCheckBox {
color: rgb(255, 255, 255);
}
QCheckBox::indicator {
border: 1px solid rgb(255, 255, 255);
height: 12px;
width: 12px;
}
QCheckBox::indicator::hover {
border: 1px solid rgb(0, 255, 252);
}
QCheckBox::indicator::checked {
border: 1px solid rgb(0, 255, 252);
image: url(:/images/images/check.svg);
}
QCheckBox::disabled {
border: 1px solid rgb(75, 100, 130);
}
/* QTextEdit 样式设置 */
QTextEdit {
background-color: rgb(11, 53, 89);
color: rgb(255, 255, 255);
}
/* QCPGraph 样式设置 */
#widgetChannel {
background-color: rgb(10, 30, 45);
}
这是我的qss代码,我的创建打开工程栏的框架中带有字体的背景颜色是白色的,我想把他修改成和不带字体的背景颜色一样应该如何修改
最新发布