You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
501 lines
11 KiB
Plaintext
501 lines
11 KiB
Plaintext
/* ==================== DCS2025 规程管理界面样式 ==================== */
|
|
|
|
/* ==================== 全局样式 ==================== */
|
|
QWidget {
|
|
background-color: #F8FAFC;
|
|
color: #1F2937;
|
|
font-family: "Microsoft YaHei", sans-serif;
|
|
font-size: 14px;
|
|
}
|
|
|
|
QMainWindow {
|
|
background-color: #F5F7FA;
|
|
border: none;
|
|
}
|
|
|
|
/* ==================== 规程管理按钮样式 - 参考变量管理界面 ==================== */
|
|
|
|
/* 导入规程按钮 - 绿色主题 */
|
|
QPushButton#importToolBtn {
|
|
color: #047857;
|
|
font-size: 15px;
|
|
font-weight: 600;
|
|
padding: 8px 16px;
|
|
background-color: #ECFDF5;
|
|
border-radius: 6px;
|
|
border: 1px solid #BBF7D0;
|
|
font-family: "PingFangSC-Medium", "Microsoft YaHei", sans-serif;
|
|
/* min-width: 85px;
|
|
min-height: 36px; */
|
|
}
|
|
|
|
QPushButton#importToolBtn:hover {
|
|
background-color: #D1FAE5;
|
|
border-color: #86EFAC;
|
|
color: #065F46;
|
|
}
|
|
|
|
QPushButton#importToolBtn:pressed {
|
|
background-color: #A7F3D0;
|
|
border-color: #6EE7B7;
|
|
color: #064E3B;
|
|
}
|
|
|
|
/* 添加分类按钮 - 蓝色主题 */
|
|
QPushButton#addCategoryToolBtn {
|
|
color: #1D4ED8;
|
|
font-size: 15px;
|
|
font-weight: 600;
|
|
padding: 8px 16px;
|
|
background-color: #EBF8FF;
|
|
border-radius: 6px;
|
|
border: 1px solid #BFDBFE;
|
|
font-family: "PingFangSC-Medium", "Microsoft YaHei", sans-serif;
|
|
/* min-width: 85px;
|
|
min-height: 36px; */
|
|
}
|
|
|
|
QPushButton#addCategoryToolBtn:hover {
|
|
background-color: #DBEAFE;
|
|
border-color: #93C5FD;
|
|
color: #1E40AF;
|
|
}
|
|
|
|
QPushButton#addCategoryToolBtn:pressed {
|
|
background-color: #BFDBFE;
|
|
border-color: #60A5FA;
|
|
color: #1E3A8A;
|
|
}
|
|
|
|
/* 删除分类按钮 - 红色主题 */
|
|
QPushButton#deleteCategoryToolBtn {
|
|
color: #B91C1C;
|
|
font-size: 15px;
|
|
font-weight: 600;
|
|
padding: 8px 16px;
|
|
background-color: #FEF2F2;
|
|
border-radius: 6px;
|
|
border: 1px solid #FECACA;
|
|
font-family: "PingFangSC-Medium", "Microsoft YaHei", sans-serif;
|
|
/* min-width: 85px;
|
|
min-height: 36px; */
|
|
}
|
|
|
|
QPushButton#deleteCategoryToolBtn:hover {
|
|
background-color: #FEE2E2;
|
|
border-color: #FCA5A5;
|
|
color: #991B1B;
|
|
}
|
|
|
|
QPushButton#deleteCategoryToolBtn:pressed {
|
|
background-color: #FECACA;
|
|
border-color: #F87171;
|
|
color: #7F1D1D;
|
|
}
|
|
|
|
/* 打开规程按钮 - 蓝色主题 */
|
|
QPushButton#openProcedureToolBtn {
|
|
color: #1D4ED8;
|
|
font-size: 15px;
|
|
font-weight: 600;
|
|
padding: 8px 16px;
|
|
background-color: #EBF8FF;
|
|
border-radius: 6px;
|
|
border: 1px solid #BFDBFE;
|
|
font-family: "PingFangSC-Medium", "Microsoft YaHei", sans-serif;
|
|
/* min-width: 85px;
|
|
min-height: 36px; */
|
|
}
|
|
|
|
QPushButton#openProcedureToolBtn:hover {
|
|
background-color: #DBEAFE;
|
|
border-color: #93C5FD;
|
|
color: #1E40AF;
|
|
}
|
|
|
|
QPushButton#openProcedureToolBtn:pressed {
|
|
background-color: #BFDBFE;
|
|
border-color: #60A5FA;
|
|
color: #1E3A8A;
|
|
}
|
|
|
|
/* 删除规程按钮 - 红色主题 */
|
|
QPushButton#deleteProcedureToolBtn {
|
|
color: #B91C1C;
|
|
font-size: 15px;
|
|
font-weight: 600;
|
|
padding: 8px 16px;
|
|
background-color: #FEF2F2;
|
|
border-radius: 6px;
|
|
border: 1px solid #FECACA;
|
|
font-family: "PingFangSC-Medium", "Microsoft YaHei", sans-serif;
|
|
/* min-width: 85px;
|
|
min-height: 36px; */
|
|
}
|
|
|
|
QPushButton#deleteProcedureToolBtn:hover {
|
|
background-color: #FEE2E2;
|
|
border-color: #FCA5A5;
|
|
color: #991B1B;
|
|
}
|
|
|
|
QPushButton#deleteProcedureToolBtn:pressed {
|
|
background-color: #FECACA;
|
|
border-color: #F87171;
|
|
color: #7F1D1D;
|
|
}
|
|
|
|
/* 历史记录按钮 - 紫色主题 */
|
|
QPushButton#historyToolBtn {
|
|
color: #7C3AED;
|
|
font-size: 15px;
|
|
font-weight: 600;
|
|
padding: 8px 16px;
|
|
background-color: #F3E8FF;
|
|
border-radius: 6px;
|
|
border: 1px solid #C4B5FD;
|
|
font-family: "PingFangSC-Medium", "Microsoft YaHei", sans-serif;
|
|
/* min-width: 85px;
|
|
min-height: 36px; */
|
|
}
|
|
|
|
QPushButton#historyToolBtn:hover {
|
|
background-color: #EDE9FE;
|
|
border-color: #A78BFA;
|
|
color: #6D28D9;
|
|
}
|
|
|
|
QPushButton#historyToolBtn:pressed {
|
|
background-color: #DDD6FE;
|
|
border-color: #8B5CF6;
|
|
color: #5B21B6;
|
|
}
|
|
|
|
/* 批量执行按钮 - 绿色主题 */
|
|
QPushButton#batchExecuteToolBtn {
|
|
color: #047857;
|
|
font-size: 15px;
|
|
font-weight: 600;
|
|
padding: 8px 16px;
|
|
background-color: #ECFDF5;
|
|
border-radius: 6px;
|
|
border: 1px solid #BBF7D0;
|
|
font-family: "PingFangSC-Medium", "Microsoft YaHei", sans-serif;
|
|
/* min-width: 85px;
|
|
min-height: 36px; */
|
|
}
|
|
|
|
QPushButton#batchExecuteToolBtn:hover {
|
|
background-color: #D1FAE5;
|
|
border-color: #86EFAC;
|
|
color: #065F46;
|
|
}
|
|
|
|
QPushButton#batchExecuteToolBtn:pressed {
|
|
background-color: #A7F3D0;
|
|
border-color: #6EE7B7;
|
|
color: #064E3B;
|
|
}
|
|
|
|
/* 关键词管理按钮 - 紫色主题 */
|
|
QPushButton#keywordManageToolBtn {
|
|
color: #7C3AED;
|
|
font-size: 15px;
|
|
font-weight: 600;
|
|
padding: 8px 16px;
|
|
background-color: #F3E8FF;
|
|
border-radius: 6px;
|
|
border: 1px solid #C4B5FD;
|
|
font-family: "PingFangSC-Medium", "Microsoft YaHei", sans-serif;
|
|
/* min-width: 85px;
|
|
min-height: 36px; */
|
|
}
|
|
|
|
QPushButton#keywordManageToolBtn:hover {
|
|
background-color: #EDE9FE;
|
|
border-color: #A78BFA;
|
|
color: #6D28D9;
|
|
}
|
|
|
|
QPushButton#keywordManageToolBtn:pressed {
|
|
background-color: #DDD6FE;
|
|
border-color: #8B5CF6;
|
|
color: #5B21B6;
|
|
}
|
|
|
|
/* 导出规程按钮 - 橙色主题 */
|
|
QPushButton#exportProcedureToolBtn {
|
|
color: #D97706;
|
|
font-size: 15px;
|
|
font-weight: 600;
|
|
padding: 8px 16px;
|
|
background-color: #FEF3C7;
|
|
border-radius: 6px;
|
|
border: 1px solid #FCD34D;
|
|
font-family: "PingFangSC-Medium", "Microsoft YaHei", sans-serif;
|
|
/* min-width: 85px;
|
|
min-height: 36px; */
|
|
}
|
|
|
|
QPushButton#exportProcedureToolBtn:hover {
|
|
background-color: #FDE68A;
|
|
border-color: #FBBF24;
|
|
color: #B45309;
|
|
}
|
|
|
|
QPushButton#exportProcedureToolBtn:pressed {
|
|
background-color: #FCD34D;
|
|
border-color: #F59E0B;
|
|
color: #92400E;
|
|
}
|
|
|
|
/* 禁用状态 */
|
|
QPushButton#importToolBtn:disabled,
|
|
QPushButton#addCategoryToolBtn:disabled,
|
|
QPushButton#deleteCategoryToolBtn:disabled,
|
|
QPushButton#openProcedureToolBtn:disabled,
|
|
QPushButton#deleteProcedureToolBtn:disabled,
|
|
QPushButton#historyToolBtn:disabled,
|
|
QPushButton#batchExecuteToolBtn:disabled,
|
|
QPushButton#keywordManageToolBtn:disabled,
|
|
QPushButton#exportProcedureToolBtn:disabled {
|
|
background-color: #F3F4F6;
|
|
color: #9CA3AF;
|
|
border-color: #E5E7EB;
|
|
}
|
|
|
|
/* ==================== 规程管理界面其他按钮样式 ==================== */
|
|
|
|
/* 添加分类按钮 - 蓝色主题 (在分类操作区域) */
|
|
QPushButton#addCategoryBtn {
|
|
color: #1D4ED8;
|
|
font-size: 15px;
|
|
font-weight: 600;
|
|
padding: 8px 16px;
|
|
background-color: #EBF8FF;
|
|
border-radius: 6px;
|
|
border: 1px solid #BFDBFE;
|
|
font-family: "PingFangSC-Medium", "Microsoft YaHei", sans-serif;
|
|
min-width: 80px;
|
|
min-height: 32px;
|
|
}
|
|
|
|
QPushButton#addCategoryBtn:hover {
|
|
background-color: #DBEAFE;
|
|
border-color: #93C5FD;
|
|
color: #1E40AF;
|
|
}
|
|
|
|
QPushButton#addCategoryBtn:pressed {
|
|
background-color: #BFDBFE;
|
|
border-color: #60A5FA;
|
|
color: #1E3A8A;
|
|
}
|
|
|
|
/* 删除分类按钮 - 红色主题 (在分类操作区域) */
|
|
QPushButton#deleteCategoryBtn {
|
|
color: #B91C1C;
|
|
font-size: 15px;
|
|
font-weight: 600;
|
|
padding: 8px 16px;
|
|
background-color: #FEF2F2;
|
|
border-radius: 6px;
|
|
border: 1px solid #FECACA;
|
|
font-family: "PingFangSC-Medium", "Microsoft YaHei", sans-serif;
|
|
min-width: 80px;
|
|
min-height: 32px;
|
|
}
|
|
|
|
QPushButton#deleteCategoryBtn:hover {
|
|
background-color: #FEE2E2;
|
|
border-color: #FCA5A5;
|
|
color: #991B1B;
|
|
}
|
|
|
|
QPushButton#deleteCategoryBtn:pressed {
|
|
background-color: #FECACA;
|
|
border-color: #F87171;
|
|
color: #7F1D1D;
|
|
}
|
|
|
|
/* 导入规程按钮 - 绿色主题 (在规程操作区域) */
|
|
QPushButton#importBtn {
|
|
color: #047857;
|
|
font-size: 15px;
|
|
font-weight: 600;
|
|
padding: 8px 16px;
|
|
background-color: #ECFDF5;
|
|
border-radius: 6px;
|
|
border: 1px solid #BBF7D0;
|
|
font-family: "PingFangSC-Medium", "Microsoft YaHei", sans-serif;
|
|
min-width: 80px;
|
|
min-height: 32px;
|
|
}
|
|
|
|
QPushButton#importBtn:hover {
|
|
background-color: #D1FAE5;
|
|
border-color: #86EFAC;
|
|
color: #065F46;
|
|
}
|
|
|
|
QPushButton#importBtn:pressed {
|
|
background-color: #A7F3D0;
|
|
border-color: #6EE7B7;
|
|
color: #064E3B;
|
|
}
|
|
|
|
/* 打开规程按钮 - 蓝色主题 (在规程操作区域) */
|
|
QPushButton#openBtn {
|
|
color: #1D4ED8;
|
|
font-size: 15px;
|
|
font-weight: 600;
|
|
padding: 8px 16px;
|
|
background-color: #EBF8FF;
|
|
border-radius: 6px;
|
|
border: 1px solid #BFDBFE;
|
|
font-family: "PingFangSC-Medium", "Microsoft YaHei", sans-serif;
|
|
min-width: 80px;
|
|
min-height: 32px;
|
|
}
|
|
|
|
QPushButton#openBtn:hover {
|
|
background-color: #DBEAFE;
|
|
border-color: #93C5FD;
|
|
color: #1E40AF;
|
|
}
|
|
|
|
QPushButton#openBtn:pressed {
|
|
background-color: #BFDBFE;
|
|
border-color: #60A5FA;
|
|
color: #1E3A8A;
|
|
}
|
|
|
|
/* 导出规程按钮 - 橙色主题 (在规程操作区域) */
|
|
QPushButton#exportBtn {
|
|
color: #D97706;
|
|
font-size: 15px;
|
|
font-weight: 600;
|
|
padding: 8px 16px;
|
|
background-color: #FEF3C7;
|
|
border-radius: 6px;
|
|
border: 1px solid #FCD34D;
|
|
font-family: "PingFangSC-Medium", "Microsoft YaHei", sans-serif;
|
|
min-width: 80px;
|
|
min-height: 32px;
|
|
}
|
|
|
|
QPushButton#exportBtn:hover {
|
|
background-color: #FDE68A;
|
|
border-color: #FBBF24;
|
|
color: #B45309;
|
|
}
|
|
|
|
QPushButton#exportBtn:pressed {
|
|
background-color: #FCD34D;
|
|
border-color: #F59E0B;
|
|
color: #92400E;
|
|
}
|
|
|
|
/* 删除规程按钮 - 红色主题 (在规程操作区域) */
|
|
QPushButton#deleteBtn {
|
|
color: #B91C1C;
|
|
font-size: 15px;
|
|
font-weight: 600;
|
|
padding: 8px 16px;
|
|
background-color: #FEF2F2;
|
|
border-radius: 6px;
|
|
border: 1px solid #FECACA;
|
|
font-family: "PingFangSC-Medium", "Microsoft YaHei", sans-serif;
|
|
min-width: 80px;
|
|
min-height: 32px;
|
|
}
|
|
|
|
QPushButton#deleteBtn:hover {
|
|
background-color: #FEE2E2;
|
|
border-color: #FCA5A5;
|
|
color: #991B1B;
|
|
}
|
|
|
|
QPushButton#deleteBtn:pressed {
|
|
background-color: #FECACA;
|
|
border-color: #F87171;
|
|
color: #7F1D1D;
|
|
}
|
|
|
|
/* ==================== 其他基础组件样式 ==================== */
|
|
|
|
/* 列表控件 */
|
|
QListWidget {
|
|
background-color: #FFFFFF;
|
|
border: 1px solid #E5E7EB;
|
|
border-radius: 8px;
|
|
padding: 4px;
|
|
}
|
|
|
|
QListWidget::item {
|
|
padding: 8px 12px;
|
|
border-radius: 6px;
|
|
margin: 2px 0;
|
|
}
|
|
|
|
QListWidget::item:hover {
|
|
background-color: #F3F4F6;
|
|
}
|
|
|
|
QListWidget::item:selected {
|
|
background-color: #EBF8FF;
|
|
color: #1E40AF;
|
|
}
|
|
|
|
/* 按钮 */
|
|
|
|
|
|
/* 输入框 */
|
|
QLineEdit {
|
|
background-color: #FFFFFF;
|
|
border: 1px solid #E5E7EB;
|
|
border-radius: 6px;
|
|
padding: 8px 12px;
|
|
color: #374151;
|
|
}
|
|
|
|
QLineEdit:focus {
|
|
border-color: #3B82F6;
|
|
outline: none;
|
|
}
|
|
|
|
/* 标签页 */
|
|
QTabWidget::pane {
|
|
border: 1px solid #E5E7EB;
|
|
border-radius: 8px;
|
|
background-color: #FFFFFF;
|
|
}
|
|
|
|
QTabBar::tab {
|
|
background-color: #F9FAFB;
|
|
border: 1px solid #E5E7EB;
|
|
border-bottom: none;
|
|
border-radius: 8px 8px 0 0;
|
|
padding: 12px 20px;
|
|
margin-right: 2px;
|
|
color: #6B7280;
|
|
}
|
|
|
|
QTabBar::tab:selected {
|
|
background-color: #FFFFFF;
|
|
color: #1976D2;
|
|
font-weight: 600;
|
|
}
|
|
|
|
QTabBar::tab:hover:!selected {
|
|
background-color: #F3F4F6;
|
|
color: #374151;
|
|
}
|
|
|
|
/* 状态栏 */
|
|
QStatusBar {
|
|
background-color: #F9FAFB;
|
|
border-top: 1px solid #E5E7EB;
|
|
color: #6B7280;
|
|
padding: 4px 8px;
|
|
} |