2025-02-09 22:11:50 +08:00
|
|
|
/* 全局样式 */
|
|
|
|
QWidget {
|
|
|
|
background-color: #2D2D30;
|
|
|
|
color: #FFFFFF;
|
|
|
|
font-family: "Microsoft YaHei UI";
|
|
|
|
font-size: 9pt;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* 按钮样式 */
|
|
|
|
QPushButton {
|
|
|
|
background-color: #3E3E42;
|
|
|
|
border: 1px solid #434346;
|
|
|
|
border-radius: 3px;
|
|
|
|
padding: 5px 15px;
|
|
|
|
min-height: 24px;
|
|
|
|
}
|
|
|
|
|
|
|
|
QPushButton:hover {
|
|
|
|
background-color: #404045;
|
|
|
|
}
|
|
|
|
|
|
|
|
QPushButton:pressed {
|
|
|
|
background-color: #007ACC;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* 输入框样式 */
|
|
|
|
QLineEdit {
|
|
|
|
background-color: #3E3E42;
|
|
|
|
border: 1px solid #434346;
|
|
|
|
border-radius: 3px;
|
|
|
|
padding: 2px 5px;
|
|
|
|
min-height: 24px;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* 下拉框样式 */
|
|
|
|
QComboBox {
|
|
|
|
background-color: #3E3E42;
|
|
|
|
border: 1px solid #434346;
|
|
|
|
border-radius: 3px;
|
|
|
|
padding: 2px 5px;
|
|
|
|
min-height: 24px;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* 标签页样式 */
|
|
|
|
QTabWidget::pane {
|
|
|
|
border: 1px solid #434346;
|
|
|
|
}
|
|
|
|
|
|
|
|
QTabBar::tab {
|
|
|
|
background-color: #2D2D30;
|
|
|
|
border: 1px solid #434346;
|
|
|
|
padding: 5px 10px;
|
|
|
|
}
|
|
|
|
|
|
|
|
QTabBar::tab:selected {
|
|
|
|
background-color: #007ACC;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* 滚动条样式 */
|
|
|
|
QScrollBar:vertical {
|
|
|
|
background-color: #2D2D30;
|
|
|
|
width: 12px;
|
|
|
|
border-radius: 6px;
|
|
|
|
}
|
|
|
|
|
|
|
|
QScrollBar::handle:vertical {
|
|
|
|
background-color: #3E3E42;
|
|
|
|
border-radius: 6px;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* 菜单样式 */
|
|
|
|
QMenuBar {
|
|
|
|
background-color: #2D2D30;
|
|
|
|
border-bottom: 1px solid #434346;
|
|
|
|
}
|
|
|
|
|
|
|
|
QMenu {
|
|
|
|
background-color: #2D2D30;
|
|
|
|
border: 1px solid #434346;
|
|
|
|
}
|
|
|
|
|
|
|
|
QMenu::item:selected {
|
|
|
|
background-color: #007ACC;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* 工具栏样式 */
|
|
|
|
QToolBar {
|
|
|
|
background-color: #2D2D30;
|
|
|
|
border-bottom: 1px solid #434346;
|
|
|
|
spacing: 3px;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* 状态栏样式 */
|
|
|
|
QStatusBar {
|
|
|
|
background-color: #2D2D30;
|
|
|
|
border-top: 1px solid #434346;
|
|
|
|
}
|