412 lines
7.0 KiB
Plaintext
412 lines
7.0 KiB
Plaintext
/* 现代深色主题 */
|
|
* {
|
|
font-family: "Segoe UI", "Microsoft YaHei";
|
|
font-size: 9pt;
|
|
}
|
|
|
|
/* 全局 QPushButton 样式 */
|
|
QPushButton {
|
|
background-color: #2d2d2d;
|
|
color: #e0e0e0;
|
|
border: 1px solid #3d3d3d;
|
|
border-radius: 3px;
|
|
padding: 4px 12px;
|
|
min-height: 22px;
|
|
}
|
|
|
|
QPushButton:hover {
|
|
background-color: #3d3d3d;
|
|
border-color: #4d4d4d;
|
|
}
|
|
|
|
QPushButton:pressed {
|
|
background-color: #1d1d1d;
|
|
border-color: #0078d4;
|
|
}
|
|
|
|
QPushButton:disabled {
|
|
background-color: #252525;
|
|
color: #666666;
|
|
border-color: #2d2d2d;
|
|
}
|
|
|
|
/* 单独的消息按钮样式(可选) */
|
|
QPushButton.message-button {
|
|
background-color: #404040;
|
|
color: #CCCCCC;
|
|
border-radius: 3px;
|
|
padding: 5px;
|
|
font-weight: bold;
|
|
min-width: 80px;
|
|
border: 1px solid #555555;
|
|
}
|
|
|
|
QPushButton.message-button:hover {
|
|
background-color: #505050;
|
|
border-color: #666666;
|
|
}
|
|
|
|
QPushButton.message-button:pressed {
|
|
background-color: #303030;
|
|
border-color: #444444;
|
|
}
|
|
|
|
/* MetaFusion 深色主题样式 */
|
|
|
|
/* 主窗口样式 */
|
|
QMainWindow {
|
|
background-color: #1e1e1e;
|
|
color: #e0e0e0;
|
|
}
|
|
|
|
/* 菜单栏样式 */
|
|
QMenuBar {
|
|
background-color: #1e1e1e;
|
|
color: #e0e0e0;
|
|
}
|
|
|
|
QMenuBar::item {
|
|
background-color: transparent;
|
|
padding: 5px 10px;
|
|
}
|
|
|
|
QMenuBar::item:selected {
|
|
background-color: #2d2d2d;
|
|
}
|
|
|
|
QMenuBar::item:pressed {
|
|
background-color: #333333;
|
|
}
|
|
|
|
/* 工具栏样式 */
|
|
QToolBar {
|
|
background-color: #333333;
|
|
border: none;
|
|
padding: 3px;
|
|
}
|
|
|
|
QToolButton {
|
|
background-color: #2A2A2A;
|
|
border: 1px solid #444444;
|
|
color: #CCCCCC;
|
|
padding: 5px;
|
|
border-radius: 3px;
|
|
margin: 1px;
|
|
}
|
|
|
|
QToolButton:hover {
|
|
background-color: #3A3A3A;
|
|
border-color: #555555;
|
|
}
|
|
|
|
QToolButton:pressed {
|
|
background-color: #1A1A1A;
|
|
border-color: #333333;
|
|
}
|
|
|
|
QToolButton:disabled {
|
|
background-color: #1A1A1A;
|
|
border-color: #333333;
|
|
color: #666666;
|
|
}
|
|
|
|
/* 标签页样式 */
|
|
QTabWidget::pane {
|
|
border: 1px solid #2d2d2d;
|
|
background: #1e1e1e;
|
|
border-radius: 3px;
|
|
}
|
|
|
|
QTabBar::tab {
|
|
background: #252525;
|
|
border: 1px solid #2d2d2d;
|
|
border-bottom: none;
|
|
border-top-left-radius: 4px;
|
|
border-top-right-radius: 4px;
|
|
min-width: 80px;
|
|
padding: 4px 12px;
|
|
margin-right: 2px;
|
|
color: #e0e0e0;
|
|
}
|
|
|
|
QTabBar::tab:selected {
|
|
background: #2d2d2d;
|
|
border-bottom: 2px solid #0078d4;
|
|
}
|
|
|
|
QTabBar::tab:hover {
|
|
background: #303030;
|
|
}
|
|
|
|
QTabBar::tab:pressed {
|
|
background-color: #222222;
|
|
}
|
|
|
|
/* 列表和树形控件样式 */
|
|
QTreeView, QListView {
|
|
background-color: #252525;
|
|
border: 1px solid #2d2d2d;
|
|
border-radius: 3px;
|
|
}
|
|
|
|
QTreeView::item {
|
|
padding: 4px;
|
|
}
|
|
|
|
QTreeView::item:selected {
|
|
background-color: #0078d4;
|
|
}
|
|
|
|
/* 输入框样式 */
|
|
QLineEdit {
|
|
background-color: #252525;
|
|
color: #e0e0e0;
|
|
border: 1px solid #3d3d3d;
|
|
border-radius: 3px;
|
|
padding: 2px 6px;
|
|
min-height: 20px;
|
|
}
|
|
|
|
QLineEdit:focus {
|
|
border-color: #0078d4;
|
|
}
|
|
|
|
QLineEdit:read-only {
|
|
background-color: #1e1e1e;
|
|
border-color: #2d2d2d;
|
|
}
|
|
|
|
/* 下拉框样式 */
|
|
QComboBox {
|
|
background-color: #252525;
|
|
color: #e0e0e0;
|
|
border: 1px solid #3d3d3d;
|
|
border-radius: 3px;
|
|
padding: 2px 6px;
|
|
min-height: 20px;
|
|
}
|
|
|
|
QComboBox:hover {
|
|
border-color: #4d4d4d;
|
|
}
|
|
|
|
QComboBox:focus {
|
|
border-color: #0078d4;
|
|
}
|
|
|
|
QComboBox::drop-down {
|
|
border: none;
|
|
width: 20px;
|
|
}
|
|
|
|
QComboBox::down-arrow {
|
|
border-image: url(resources/icons/down_arrow.png);
|
|
width: 12px;
|
|
height: 12px;
|
|
}
|
|
|
|
/* 滚动条样式 */
|
|
QScrollBar:vertical {
|
|
background: #1e1e1e;
|
|
width: 10px;
|
|
margin: 0;
|
|
}
|
|
|
|
QScrollBar::handle:vertical {
|
|
background: #3d3d3d;
|
|
min-height: 16px;
|
|
border-radius: 5px;
|
|
margin: 2px;
|
|
}
|
|
|
|
QScrollBar::handle:vertical:hover {
|
|
background: #4d4d4d;
|
|
}
|
|
|
|
QScrollBar::handle:vertical:pressed {
|
|
background: #3b4cb4;
|
|
}
|
|
|
|
QScrollBar::add-line:vertical, QScrollBar::sub-line:vertical {
|
|
height: 0px;
|
|
}
|
|
|
|
QScrollBar:horizontal {
|
|
background: #1e1e1e;
|
|
height: 10px;
|
|
margin: 0;
|
|
}
|
|
|
|
QScrollBar::handle:horizontal {
|
|
background: #3d3d3d;
|
|
min-width: 16px;
|
|
border-radius: 5px;
|
|
margin: 2px;
|
|
}
|
|
|
|
QScrollBar::handle:horizontal:hover {
|
|
background: #4d4d4d;
|
|
}
|
|
|
|
QScrollBar::handle:horizontal:pressed {
|
|
background: #3b4cb4;
|
|
}
|
|
|
|
QScrollBar::add-line:horizontal, QScrollBar::sub-line:horizontal {
|
|
width: 0px;
|
|
}
|
|
|
|
/* 分组框样式 */
|
|
QGroupBox {
|
|
background-color: #252525;
|
|
border: 1px solid #2d2d2d;
|
|
border-radius: 4px;
|
|
margin-top: 8px;
|
|
padding-top: 8px;
|
|
font-weight: bold;
|
|
}
|
|
|
|
QGroupBox::title {
|
|
margin-top: 8px;
|
|
margin-left: 8px;
|
|
padding: 0 4px;
|
|
color: #0078d4;
|
|
}
|
|
|
|
/* 状态栏样式 */
|
|
QStatusBar {
|
|
background-color: #1e1e1e;
|
|
color: #e0e0e0;
|
|
}
|
|
|
|
/* 工具提示样式 */
|
|
QToolTip {
|
|
background-color: #252525;
|
|
color: #e0e0e0;
|
|
border: 1px solid #3d3d3d;
|
|
border-radius: 3px;
|
|
padding: 4px;
|
|
}
|
|
|
|
/* DNA 浏览器样式 */
|
|
QListWidget {
|
|
background-color: #2A2A2A;
|
|
border: 1px solid #222222;
|
|
color: #CCCCCC;
|
|
padding: 5px;
|
|
}
|
|
|
|
QListWidget::item {
|
|
padding: 5px;
|
|
border-bottom: 1px solid #333333;
|
|
}
|
|
|
|
QListWidget::item:hover {
|
|
background-color: #3A3A3A;
|
|
}
|
|
|
|
QListWidget::item:selected {
|
|
background-color: #444444;
|
|
color: #FFFFFF;
|
|
}
|
|
|
|
/* 菜单样式 */
|
|
QMenu {
|
|
background-color: #252525;
|
|
border: 1px solid #3d3d3d;
|
|
}
|
|
|
|
QMenu::item {
|
|
padding: 4px 20px;
|
|
}
|
|
|
|
QMenu::item:selected {
|
|
background-color: #3d3d3d;
|
|
}
|
|
|
|
QMenu::item:pressed {
|
|
background-color: #333333;
|
|
}
|
|
|
|
/* 其他控件样式 */
|
|
QDialog {
|
|
background-color: #404040;
|
|
color: #E0E0E0;
|
|
}
|
|
|
|
QLabel {
|
|
color: #CCCCCC;
|
|
padding: 0px 2px;
|
|
}
|
|
|
|
/* 基础按钮样式 - 用于安装界面 */
|
|
.InstallDialog QPushButton,
|
|
.InstallDialog QMessageBox QPushButton {
|
|
background-color: #D0D0D0;
|
|
color: #303030;
|
|
border-radius: 10px;
|
|
padding: 5px;
|
|
font-weight: bold;
|
|
min-width: 80px;
|
|
}
|
|
|
|
.InstallDialog QPushButton:hover,
|
|
.InstallDialog QMessageBox QPushButton:hover {
|
|
background-color: #E0E0E0;
|
|
}
|
|
|
|
.InstallDialog QPushButton:pressed,
|
|
.InstallDialog QMessageBox QPushButton:pressed {
|
|
background-color: #C0C0C0;
|
|
}
|
|
|
|
/* 安装界面消息框样式 */
|
|
.InstallDialog QMessageBox {
|
|
background-color: #404040;
|
|
color: #E0E0E0;
|
|
}
|
|
|
|
/* 功能按钮样式 */
|
|
QPushButton, QToolButton {
|
|
background-color: #404040;
|
|
color: #E0E0E0;
|
|
border: 1px solid #505050;
|
|
border-radius: 5px;
|
|
padding: 5px;
|
|
min-width: 80px;
|
|
font-weight: bold;
|
|
}
|
|
|
|
QPushButton:hover, QToolButton:hover {
|
|
background-color: #505050;
|
|
border-color: #606060;
|
|
}
|
|
|
|
QPushButton:pressed, QToolButton:pressed {
|
|
background-color: #303030;
|
|
border-color: #0078d4;
|
|
}
|
|
|
|
QPushButton:disabled, QToolButton:disabled {
|
|
background-color: #353535;
|
|
color: #808080;
|
|
border-color: #404040;
|
|
}
|
|
|
|
/* 工具栏按钮样式 */
|
|
QToolBar QToolButton {
|
|
background-color: transparent;
|
|
border: none;
|
|
border-radius: 2px;
|
|
padding: 4px;
|
|
min-width: 24px;
|
|
}
|
|
|
|
QToolBar QToolButton:hover {
|
|
background-color: #505050;
|
|
}
|
|
|
|
QToolBar QToolButton:pressed {
|
|
background-color: #303030;
|
|
}
|