123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198 |
- 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);
- }
- 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;
- }
- /* ==========================================================
- * QTableWidget
- * ========================================================== */
- QTableWidget
- {
- background: transparent;
- padding-left: 16px;
- border: 0px solid #E6E9F4;
- text-align: left;
- }
- /* 设置标题栏,如果不生效,可能是在UI里面设置了样式表,导致冲突了 */
- QTableWidget QHeaderView
- {
- background: transparent;
- }
- QTableWidget QHeaderView::section
- {
- background: transparent;
- padding-left: 16px;
- font-weight: 500;
- font-size: 14px;
- color: #D2D2D2;
-
- border: 0px solid #E6E9F4;
- border-top: 1px solid rgba(255,255,255,0.15);
- border-bottom: 1px solid rgba(255,255,255,0.15);
- }
- QTableWidget::item
- {
- padding-left: 16px;
- padding-right: 0px;
- padding-top: 0px;
- padding-bottom: 0px;
- margin: 0px;
- text-align: left;
- border: 0px solid #E6E9F4;
- }
- QTableWidget::item:selected
- {
- color: #EBEBEB;
- background: #438EFF;
- }
- /* ==========================================================
- * QCheckBox
- * ========================================================== */
- QCheckBox
- {
- background: transparent;
- font-weight: 400;
- font-size: 14px;
- color: #B1B3B4;
- text-align: left;
- font-style: normal;
- text-transform: none;
- /* padding-left: 16px; */
- }
- QCheckBox::indicator
- {
- width: 20px; /* 勾选框的宽度 */
- height: 20px; /* 勾选框的高度 */
- 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); /* 选中状态的图标 */
- }
|