/* 全局 QPushButton 样式 */ QPushButton { background-color: #D0D0D0; color: #303030; border-radius: 10px; padding: 5px; font-weight: bold; min-width: 80px; } QPushButton:hover { background-color: #E0E0E0; } QPushButton:pressed { background-color: #C0C0C0; } QPushButton:disabled { background-color: #1A1A1A; border-color: #333333; color: #666666; } /* 单独的消息按钮样式(可选) */ QPushButton.message-button { background-color: #B0B0B0; color: #303030; border-radius: 10px; padding: 5px; font-weight: bold; min-width: 80px; } QPushButton.message-button:hover { background-color: #C0C0C0; } QPushButton.message-button:pressed { background-color: #A0A0A0; } /* MetaFusion 深色主题样式 */ /* 主窗口样式 */ QMainWindow { background-color: #333333; color: #CCCCCC; } /* 菜单栏样式 */ QMenuBar { background-color: #2A2A2A; color: #CCCCCC; border-bottom: 1px solid #222222; } QMenuBar::item { background-color: transparent; padding: 5px 10px; } QMenuBar::item:selected { background-color: #444444; } 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 #222222; background-color: #333333; } QTabBar::tab { background-color: #333333; border: 1px solid #444444; color: #CCCCCC; padding: 5px 10px; min-width: 80px; } QTabBar::tab:selected { background-color: #444444; border-bottom-color: #555555; } QTabBar::tab:hover { background-color: #444444; } QTabBar::tab:pressed { background-color: #222222; } /* 列表和树形控件样式 */ QTreeView, QListView { background-color: #2A2A2A; border: 1px solid #222222; color: #CCCCCC; } QTreeView::item:hover, QListView::item:hover { background-color: #3A3A3A; } QTreeView::item:selected, QListView::item:selected { background-color: #444444; } /* 输入框样式 */ QLineEdit { background-color: #2A2A2A; border: 1px solid #222222; border-radius: 2px; color: #CCCCCC; padding: 3px; } /* 下拉框样式 */ QComboBox { background-color: #2A2A2A; border: 1px solid #222222; border-radius: 2px; color: #CCCCCC; padding: 3px; min-width: 100px; } 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: #2A2A2A; width: 10px; margin: 0; } QScrollBar::handle:vertical { background: #444444; min-height: 20px; border-radius: 5px; } QScrollBar::add-line:vertical, QScrollBar::sub-line:vertical { height: 0px; } QScrollBar:horizontal { background: #2A2A2A; height: 10px; margin: 0; } QScrollBar::handle:horizontal { background: #444444; min-width: 20px; border-radius: 5px; } QScrollBar::add-line:horizontal, QScrollBar::sub-line:horizontal { width: 0px; } /* 分组框样式 */ QGroupBox { border: 1px solid #222222; border-radius: 3px; margin-top: 6px; padding-top: 6px; color: #CCCCCC; } QGroupBox::title { left: 7px; padding: 0px 3px; } /* 状态栏样式 */ QStatusBar { background-color: #333333; color: #CCCCCC; } /* 工具提示样式 */ QToolTip { background-color: #2A2A2A; border: 1px solid #222222; color: #CCCCCC; padding: 3px; } /* 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: #2A2A2A; border: 1px solid #444444; color: #CCCCCC; } QMenu::item { background-color: transparent; padding: 5px 20px; } QMenu::item:selected { background-color: #444444; } QMenu::item:pressed { background-color: #333333; } /* 其他控件样式 */ QDialog { background-color: #404040; color: #E0E0E0; } QLabel { color: #E0E0E0; }