QWidget { font-size: 14px; color: #D2D2D2; line-height: 21px; text-align: left; font-style: normal; } QWidget#widget { background: #464649; border-radius: 8px 8px 8px 8px; } QWidget#widget_Top { background: transparent; border-top-left-radius: 8px; border-top-right-radius: 8px; border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; border-bottom: 1px solid rgba(255,255,255,0.15); } QWidget#widget_content { background: transparent; } QLabel#label_title { font-weight: 500; font-size: 18px; color: #D2D2D2; line-height: 24px; text-align: left; font-style: normal; text-transform: none; } QPushButton#pBtn_close { /* border-image: url(:/ICON/ICON/Dialog_close.png); */ background: transparent; border-radius: 4px; qproperty-icon: url(:/ICON/ICON/Close_Dark.png); qproperty-iconSize: 20px 20px; text-align: center; } QPushButton#pBtn_close[Hover = true] { /* border-image: url(:/ICON/ICON/Dialog_close2.png); */ background: transparent; border-radius: 4px; qproperty-icon: url(:/ICON/ICON/Close_pass.png); qproperty-iconSize: 20px 20px; text-align: center; border: 1px solid #438EFF; } /********* 普通方框按钮三种状态效果 *********/ QPushButton#pBtn_cancel:enabled { text-align: center; color: #EBEBEB; border: 1px solid rgba(255,255,255,0.25); border-radius: 16px; background: transparent; } QPushButton#pBtn_cancel:hover { text-align: center; color: #EBEBEB; border: 1px solid rgba(255,255,255,0.25); border-radius: 16px; background: rgba(0,0,0,0.15); } /********* 带有底色按钮三种状态效果 *********/ QPushButton#pBtn_ok { border-radius: 16px; text-align: center; color:white; background: #438EFF; border-radius: 16px; } QPushButton#pBtn_ok:hover { border-radius: 16px; text-align: center; color:white; background: #5F9EFF; border-radius: 16px; } /* ========================================================== * QCheckBox * ========================================================== */ /* 左下角和右下角是直角 */ QCheckBox#checkBox_list { background: transparent; font-weight: 500; font-size: 16px; color: #D2D2D2; text-align: left; font-style: normal; text-transform: none; padding-left: 16px; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; border: 1px solid rgba(255,255,255,0.15); } QCheckBox { background: #464649; font-weight: 400; font-size: 14px; color: #B1B3B4; text-align: left; font-style: normal; text-transform: none; padding-left: 16px; } QCheckBox::indicator { width: 18px; /* 勾选框的宽度 */ height: 18px; /* 勾选框的高度 */ border: 0px solid #B3C0E7; /* 勾选框的边框颜色和宽度 */ background: transparent; /* 勾选框的背景颜色 */ border-radius: 2px; /* 可选:设置圆角 */ } QCheckBox::indicator:unchecked { background: transparent; /* 未选中状态的背景颜色 */ border-image: url(:/ICON/ICON/CheckBox_UnChecked.png); /* 未选中状态的图标 */ } /* 半选中 */ QCheckBox::indicator:indeterminate { background: transparent; /* 未选中状态的背景颜色 */ border-image: url(:/ICON/ICON/CheckBox_PartiallyChecked.png); /* 未选中状态的图标 */ } QCheckBox::indicator:checked { background: transparent; /* 选中状态的背景颜色 */ border: 0px solid #438EFF; /* 选中状态的边框颜色 */ border-image: url(:/ICON/ICON/CheckBox_Checked.png); /* 选中状态的图标 */ } /*=============================================================== * QScrollBar 滚动条 ================================================================*/ QScrollArea { background: transparent; border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-left-radius: 4px; border-bottom-right-radius: 4px; border-left: 1px solid rgba(255,255,255,0.15); border-right: 1px solid rgba(255,255,255,0.15); border-bottom: 1px solid rgba(255,255,255,0.15); } /* 这里必须设置颜色,不然会显示灰白色 */ QWidget#widget_spacer { background: #464649; } QScrollBar:horizontal, QScrollBar:vertical { border:none; background-color: rgba(255, 255, 255, 0); margin: 0px 0px 0px 0px; } QScrollBar:horizontal { height: 12px; } QScrollBar:vertical { width: 6px; } QScrollBar::handle:horizontal,QScrollBar::handle:vertical { background: #E2E2E2; border-radius: 3px; min-width: 8px; } QScrollBar::handle:horizontal { min-width: 8px; } QScrollBar::handle:vertical { min-height: 113px; } QScrollBar::add-line:horizontal, QScrollBar::sub-line:horizontal, QScrollBar::add-line:vertical, QScrollBar::sub-line:vertical { background-color: rgba(255, 255, 255, 0); border: none; } QScrollBar::add-page:horizontal, QScrollBar::sub-page:horizontal, QScrollBar::add-page:vertical, QScrollBar::sub-page:vertical { background-color: rgba(255, 255, 255, 0); background: none; }