资源描述:
《Qt中漂亮的几款QSS》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、/* === Shared === */QStackedWidget, QLabel, QPushButton, QRadioButton, QCheckBox, QGroupBox, QStatusBar, QToolButton, QComboBox, QDialog { background-color: #222222; color: #BBBBBB; font-family: "Segoe UI";}/* === QWidget === */QWidget:window {
2、background: #222222; color: #BBBBBB; font-family: "Segoe UI";}/* === QToolTip === */QToolTip { background-color: #000000; border: 2px solid #333333; color: yellow;}/* === QPushButton === */QPushButton { border: 1px solid #333333; paddin
3、g: 4px; min-width: 65px; min-height: 12px;}QPushButton:hover { background-color: #333333; border-color: #444444;}QPushButton:pressed { background-color: #111111; border-color: #333333; color: yellow;}QPushButton:disabled { color: #33
4、3333;}/* === Checkable items === */QCheckBox::indicator, QRadioButton::indicator, QTreeView::indicator { width: 16px; height: 16px; background-color: #111111; border: 1px solid #333333;}QRadioButton::indicator { border-radius: 8px;}QCheckBox:
5、:indicator::checked, QRadioButton::indicator::checked, QTreeView::indicator::checked { background-color: qradialgradient(cx:0.5, cy:0.5, fx:0.25, fy:0.15, radius:0.3, stop:0 #BBBBBB, stop:1 #111111);}QCheckBox::indicator:disabled, QRadioButton::indicator
6、:disabled, QTreeView::indicator:disabled { background-color: #444444;}QCheckBox::indicator::checked:disabled, QRadioButton::indicator::checked:disabled, QTreeView::indicator::checked:disabled { background-color: qradialgradient(cx:0.5, cy:0.5, fx:0.25
7、, fy:0.15, radius:0.3, stop:0 #BBBBBB, stop:1 #444444);}/* === QComboBox === */QComboBox { background-color: black; border: 1px solid #333333; color: white; padding:1px 2em 1px 3px;}QComboBox::drop-down { subcontrol-origin: padding; subcon
8、trol-position: top right; border-left: 1px solid #333333;}QComboBox::down-arrow { border: 2px solid #333333; width: 6px; height: 6px; background: #5f5f5f;}/* === QGroupBox === */QGroupBo