QWidget { background: transparent; border-radius: 8px; font-family: 思源黑体R; font-weight: 400; font-size: 18px; color: #D2D2D2; line-height: 21px; text-align: left; font-style: normal; } QWidget#widget { background-color: #313539; } QWidget#widget_Top { background: rgba(108,105,124,0.2); border-top-left-radius: 8px; border-top-right-radius: 8px; border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; } QLabel#label_title { font-family: 思源黑体M; font-weight: bold; font-size: 18px; color: #D2D2D2; line-height: 27px; text-transform: uppercase; } QLabel#label_line { background: #E6E9F4; } /* 设置图标 */ QLabel#label_warnIcon { border-image: url(:/ICON/Tip/Tips2x.png); } QLabel#label_Warn { font-family: 思源黑体R; font-weight: 400; font-size: 18px; color: #D2D2D2; line-height: 27px; } /*设置图片居中 */ QPushButton#pBtn_close { background: transparent; /* 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; padding-left: 0px; } QPushButton#pBtn_close[Hover = true] { background: transparent; /* 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; padding-left: 0px; border: 1px solid #438EFF; } QPushButton { background: #FFFFFF; /* border: 1px solid #E6E9F4; */ text-align: center; } /********* 普通方框按钮三种状态效果 *********/ QPushButton#pBtn_cancel:enabled { color: #EBEBEB; border: 1px solid rgba(255,255,255,0.25); border-radius: 16px; background: transparent; } QPushButton#pBtn_cancel:hover { color: #EBEBEB; border: 1px solid rgba(255,255,255,0.25); border-radius: 16px; background: rgba(0,0,0,0.15); } /********* 带有底色按钮三种状态效果 *********/ QPushButton#pBtn_ok { color:white; background: #438EFF; border-radius: 16px; } QPushButton#pBtn_ok:hover { color:white; background: #5F9EFF; border-radius: 16px; }