QWidget { background: #FFFFFF; border-radius: 8px; /* font-family: 思源黑体R; */ /* font-weight: 400; */ font-size: 14px; color: #D2D2D2; line-height: 21px; text-align: left; font-style: normal; background: transparent; } QWidget#widget { background-color: #313539; } QWidget#widget_Top { background: rgba(108,105,124,0.2); border-top-left-radius: 10px; border-top-right-radius: 10px; border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; } QLabel#label_title { /* font-family: 思源黑体M; */ /* font-weight: normal; */ font-size: 18px; color: #EBEBEB; line-height: 27px; text-transform: uppercase; } QLabel#label_warn { color:red; } 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 { color: #EBEBEB; border: 1px solid rgba(255,255,255,0.25); border-radius: 16px; background: transparent; text-align: center; } 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); text-align: center; } /********* 带有底色按钮三种状态效果 *********/ QPushButton#pBtn_ok { color:white; background: #438EFF; border-radius: 16px; text-align: center; } QPushButton#pBtn_ok:hover { color:white; background: #5F9EFF; border-radius: 16px; text-align: center; } /**************** 报警红框 ****************/ QLineEdit { background: transparent; border-radius: 4px; padding-left:12px; border: 1px solid rgba(255,255,255,0.15); } QLineEdit:hover { border: 1px solid #438EFF; } QLineEdit[Warn=true] { border: 1px solid #D21F21; } QLineEdit:!enabled/* 或者disable */ { background: rgba(0,0,0,0.04); border: 1px solid #E6E9F4; }