MetaFusion/scripts/ui/style.qss

412 lines
7.0 KiB
Plaintext
Raw Permalink Normal View History

2025-02-06 19:49:53 +08:00
/* 现代深色主题 */
* {
font-family: "Segoe UI", "Microsoft YaHei";
font-size: 9pt;
}
/* 全局 QPushButton 样式 */
2025-02-03 22:58:41 +08:00
QPushButton {
2025-02-06 19:49:53 +08:00
background-color: #2d2d2d;
color: #e0e0e0;
border: 1px solid #3d3d3d;
2025-02-06 05:45:42 +08:00
border-radius: 3px;
2025-02-06 19:49:53 +08:00
padding: 4px 12px;
min-height: 22px;
2025-02-03 22:58:41 +08:00
}
QPushButton:hover {
2025-02-06 19:49:53 +08:00
background-color: #3d3d3d;
border-color: #4d4d4d;
2025-02-03 22:58:41 +08:00
}
QPushButton:pressed {
2025-02-06 19:49:53 +08:00
background-color: #1d1d1d;
border-color: #0078d4;
2025-02-04 22:09:11 +08:00
}
QPushButton:disabled {
2025-02-06 19:49:53 +08:00
background-color: #252525;
2025-02-04 22:09:11 +08:00
color: #666666;
2025-02-06 19:49:53 +08:00
border-color: #2d2d2d;
2025-02-03 22:58:41 +08:00
}
/* 单独的消息按钮样式(可选) */
2025-02-06 04:00:17 +08:00
QPushButton.message-button {
2025-02-06 05:45:42 +08:00
background-color: #404040;
color: #CCCCCC;
border-radius: 3px;
2025-02-03 22:58:41 +08:00
padding: 5px;
font-weight: bold;
min-width: 80px;
2025-02-06 05:45:42 +08:00
border: 1px solid #555555;
2025-02-03 22:58:41 +08:00
}
2025-02-06 04:00:17 +08:00
QPushButton.message-button:hover {
2025-02-06 05:45:42 +08:00
background-color: #505050;
border-color: #666666;
2025-02-03 22:58:41 +08:00
}
2025-02-06 04:00:17 +08:00
QPushButton.message-button:pressed {
2025-02-06 05:45:42 +08:00
background-color: #303030;
border-color: #444444;
2025-02-03 22:58:41 +08:00
}
2025-02-04 00:13:31 +08:00
/* MetaFusion 深色主题样式 */
/* 主窗口样式 */
QMainWindow {
2025-02-06 19:49:53 +08:00
background-color: #1e1e1e;
color: #e0e0e0;
2025-02-04 00:13:31 +08:00
}
/* 菜单栏样式 */
QMenuBar {
2025-02-06 19:49:53 +08:00
background-color: #1e1e1e;
color: #e0e0e0;
2025-02-04 00:13:31 +08:00
}
QMenuBar::item {
background-color: transparent;
2025-02-04 22:09:11 +08:00
padding: 5px 10px;
2025-02-04 00:13:31 +08:00
}
QMenuBar::item:selected {
2025-02-06 19:49:53 +08:00
background-color: #2d2d2d;
2025-02-04 00:13:31 +08:00
}
2025-02-04 22:09:11 +08:00
QMenuBar::item:pressed {
background-color: #333333;
}
2025-02-04 00:13:31 +08:00
/* 工具栏样式 */
QToolBar {
background-color: #333333;
border: none;
padding: 3px;
}
QToolButton {
2025-02-05 01:52:29 +08:00
background-color: #2A2A2A;
2025-02-04 22:09:11 +08:00
border: 1px solid #444444;
color: #CCCCCC;
padding: 5px;
border-radius: 3px;
2025-02-04 00:13:31 +08:00
margin: 1px;
}
QToolButton:hover {
2025-02-05 01:52:29 +08:00
background-color: #3A3A3A;
2025-02-04 22:09:11 +08:00
border-color: #555555;
}
QToolButton:pressed {
2025-02-05 01:52:29 +08:00
background-color: #1A1A1A;
2025-02-04 22:09:11 +08:00
border-color: #333333;
}
QToolButton:disabled {
2025-02-05 01:52:29 +08:00
background-color: #1A1A1A;
2025-02-04 22:09:11 +08:00
border-color: #333333;
color: #666666;
2025-02-04 00:13:31 +08:00
}
/* 标签页样式 */
QTabWidget::pane {
2025-02-06 19:49:53 +08:00
border: 1px solid #2d2d2d;
background: #1e1e1e;
border-radius: 3px;
2025-02-04 00:13:31 +08:00
}
QTabBar::tab {
2025-02-06 19:49:53 +08:00
background: #252525;
border: 1px solid #2d2d2d;
border-bottom: none;
border-top-left-radius: 4px;
border-top-right-radius: 4px;
2025-02-04 00:13:31 +08:00
min-width: 80px;
2025-02-06 19:49:53 +08:00
padding: 4px 12px;
margin-right: 2px;
color: #e0e0e0;
2025-02-04 00:13:31 +08:00
}
QTabBar::tab:selected {
2025-02-06 19:49:53 +08:00
background: #2d2d2d;
border-bottom: 2px solid #0078d4;
2025-02-04 00:13:31 +08:00
}
2025-02-04 22:09:11 +08:00
QTabBar::tab:hover {
2025-02-06 19:49:53 +08:00
background: #303030;
2025-02-04 22:09:11 +08:00
}
QTabBar::tab:pressed {
background-color: #222222;
2025-02-04 00:13:31 +08:00
}
/* 列表和树形控件样式 */
QTreeView, QListView {
2025-02-06 19:49:53 +08:00
background-color: #252525;
border: 1px solid #2d2d2d;
border-radius: 3px;
2025-02-04 00:13:31 +08:00
}
2025-02-06 19:49:53 +08:00
QTreeView::item {
padding: 4px;
2025-02-04 00:13:31 +08:00
}
2025-02-06 19:49:53 +08:00
QTreeView::item:selected {
background-color: #0078d4;
2025-02-04 00:13:31 +08:00
}
/* 输入框样式 */
QLineEdit {
2025-02-06 19:49:53 +08:00
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;
2025-02-04 00:13:31 +08:00
}
/* 下拉框样式 */
QComboBox {
2025-02-06 19:49:53 +08:00
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;
2025-02-04 00:13:31 +08:00
}
QComboBox::drop-down {
border: none;
width: 20px;
}
QComboBox::down-arrow {
2025-02-06 19:49:53 +08:00
border-image: url(resources/icons/down_arrow.png);
2025-02-04 00:13:31 +08:00
width: 12px;
height: 12px;
}
/* 滚动条样式 */
QScrollBar:vertical {
2025-02-06 19:49:53 +08:00
background: #1e1e1e;
width: 10px;
2025-02-04 00:13:31 +08:00
margin: 0;
}
QScrollBar::handle:vertical {
2025-02-06 19:49:53 +08:00
background: #3d3d3d;
2025-02-06 05:45:42 +08:00
min-height: 16px;
2025-02-04 00:13:31 +08:00
border-radius: 5px;
2025-02-06 05:45:42 +08:00
margin: 2px;
}
QScrollBar::handle:vertical:hover {
2025-02-06 19:49:53 +08:00
background: #4d4d4d;
2025-02-06 05:45:42 +08:00
}
QScrollBar::handle:vertical:pressed {
background: #3b4cb4;
2025-02-04 00:13:31 +08:00
}
QScrollBar::add-line:vertical, QScrollBar::sub-line:vertical {
height: 0px;
}
QScrollBar:horizontal {
2025-02-06 19:49:53 +08:00
background: #1e1e1e;
height: 10px;
2025-02-04 00:13:31 +08:00
margin: 0;
}
QScrollBar::handle:horizontal {
2025-02-06 19:49:53 +08:00
background: #3d3d3d;
2025-02-06 05:45:42 +08:00
min-width: 16px;
2025-02-04 00:13:31 +08:00
border-radius: 5px;
2025-02-06 05:45:42 +08:00
margin: 2px;
}
QScrollBar::handle:horizontal:hover {
2025-02-06 19:49:53 +08:00
background: #4d4d4d;
2025-02-06 05:45:42 +08:00
}
QScrollBar::handle:horizontal:pressed {
background: #3b4cb4;
2025-02-04 00:13:31 +08:00
}
QScrollBar::add-line:horizontal, QScrollBar::sub-line:horizontal {
width: 0px;
}
/* 分组框样式 */
QGroupBox {
2025-02-06 19:49:53 +08:00
background-color: #252525;
border: 1px solid #2d2d2d;
border-radius: 4px;
margin-top: 8px;
padding-top: 8px;
font-weight: bold;
2025-02-04 00:13:31 +08:00
}
QGroupBox::title {
2025-02-06 19:49:53 +08:00
margin-top: 8px;
margin-left: 8px;
padding: 0 4px;
color: #0078d4;
2025-02-04 00:13:31 +08:00
}
/* 状态栏样式 */
QStatusBar {
2025-02-06 19:49:53 +08:00
background-color: #1e1e1e;
color: #e0e0e0;
2025-02-04 00:13:31 +08:00
}
/* 工具提示样式 */
QToolTip {
2025-02-06 19:49:53 +08:00
background-color: #252525;
color: #e0e0e0;
border: 1px solid #3d3d3d;
border-radius: 3px;
padding: 4px;
2025-02-04 00:13:31 +08:00
}
2025-02-04 22:09:11 +08:00
/* 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 {
2025-02-06 19:49:53 +08:00
background-color: #252525;
border: 1px solid #3d3d3d;
2025-02-04 22:09:11 +08:00
}
QMenu::item {
2025-02-06 19:49:53 +08:00
padding: 4px 20px;
2025-02-04 22:09:11 +08:00
}
QMenu::item:selected {
2025-02-06 19:49:53 +08:00
background-color: #3d3d3d;
2025-02-04 22:09:11 +08:00
}
QMenu::item:pressed {
background-color: #333333;
}
2025-02-06 04:00:17 +08:00
/* 其他控件样式 */
QDialog {
background-color: #404040;
color: #E0E0E0;
}
QLabel {
2025-02-06 19:49:53 +08:00
color: #CCCCCC;
padding: 0px 2px;
2025-02-06 04:00:17 +08:00
}
2025-02-06 05:45:42 +08:00
/* 基础按钮样式 - 用于安装界面 */
.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;
}
2025-02-06 19:49:53 +08:00
/* 功能按钮样式 */
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;
}