Files
Projects/toolbox/assets/conf/qss/toolbar.qss
2025-10-10 17:16:08 +08:00

50 lines
1.3 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
QToolBar#SToolBar {
background: #eef1f5; /* 背景色 */
border: none; /* 去掉默认边框 */
border-bottom: 2px solid #d0d7de;/* 底部分隔线 */
spacing: 2px; /* 图标/按钮间距 */
padding: 2px 4px; /* 内边距:上下/左右 */
min-height: 20px; /* 最小高度 */
}
/* 工具栏里所有 QToolButton图标按钮 */
QToolBar#SToolBar QToolButton {
background: transparent;
border: 1px solid transparent;
border-radius: 8px;
color: #24292f;
font: 18px "Consolas";
padding: 0px 0px;
margin: 0px 0px;
}
/* 悬停 */
QToolBar#SToolBar QToolButton:hover {
background: rgba(9, 105, 218, 12%);
border-color: #0969da;
}
/* 按下/选中 */
QToolBar#SToolBar QToolButton:pressed,
QToolBar#SToolBar QToolButton:checked {
background: #0969da;
color: #ffffff;
border-color: #0550ae;
}
/* 仅工具栏里 objectName = ac_switch 的按钮 */
QToolBar#SToolBar QToolButton#ac_switch {
background: #eef1f5;
border: none;
border-radius: 4px;
color: #fff;
font: 14px "Microsoft YaHei";
padding: 4px 6px;
}
QToolBar#SToolBar QToolButton#ac_switch:hover {
background: #eef1f5;
}
QToolBar#toolBar QToolButton#ac_switch:pressed {
background: #0550ae;
}