123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322 |
- /* ==========================================================
- * 通用样式
- * ========================================================== */
- QWidget
- {
- font-family: 思源黑体R;
- font-weight: 400;
- font-size: 14px;
- color: #D2D2D2;
- line-height: 21px;
- text-align: left;
- font-style: normal;
- border-radius: 8px;
- background: transparent;
- }
- QWidget#widget
- {
- background: rgba(0,0,0,0.01);
- /* background: rgba(255,255,255,1); */
- }
- QWidget#widget_background
- {
- 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
- {
- background: transparent;
- font-weight: bold;
- font-size: 18px;
- color: #EBEBEB;
- line-height: 27px;
- text-align: left;
- font-style: normal;
- text-transform: uppercase;
- }
- QPushButton
- {
- text-align: center;
- font-family: 思源黑体M;
- }
- QPushButton#pBtn_Close
- {
- /* image: url(:/ICON/ICON/Dialog_close.png); */
- background: transparent;
- border-radius: 4px;
- qproperty-icon: url(:/ICON/ICON/Close_Dark.png);
- qproperty-iconSize: 20px 20px;
- }
- QPushButton#pBtn_Close[Hover = true]
- {
- /* image: url(:/ICON/ICON/Dialog_close2.png); */
- background: transparent;
- border-radius: 4px;
- qproperty-icon: url(:/ICON/ICON/Close_pass.png);
- qproperty-iconSize: 20px 20px;
- border: 1px solid #438EFF;
- }
- /********* 普通方框按钮三种状态效果 *********/
- 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;
- }
- QLabel#label_devWarn,QLabel#label_timeWarn,QLabel#label_actionWarn
- {
- font-weight: 400;
- font-size: 14px;
- color: #D21F21;
- line-height: 21px;
- text-align: left;
- font-style: normal;
- }
- /* ==========================================================
- * QComboBox(这个是在用的)
- * ========================================================== */
- QComboBox:enabled
- {
- background: transparent;
- border: 1px solid rgba(255,255,255,0.15);
- border-radius: 4px;
- font-size:14px;
- font-weight: 400;
- color:#D2D2D2;
- padding-left: 12px;
- }
- /* 不能编辑的时候的样式,setEnable(false) */
- QComboBox:!enabled
- {
- background:rgba(0,0,0,0.04);
- border: 1px solid #E6E9F4;
- border-radius: 4px;
- font-size:14px;
- font-weight: 400;
- color:rgba(58,63,99,0.65);
- padding-left: 12px;
- }
- QComboBox:hover
- {
- border: 1px solid #438EFF;
- border-radius: 4px;
- background:transparent;
- }
- /* 下拉箭头所在的位置方框 */
- QComboBox::drop-down
- {
- width: 24px;
- border: none;
- }
- /* 下拉箭头图标 */
- QComboBox::down-arrow
- {
- image: url(:/ICON/ICON/DownArrow.png);
- height:16px;
- width:16px;
- }
- /* 下拉条样式,就是view,整个下拉窗体的样式 */
- QComboBox QAbstractItemView
- {
- background-color: #5C5E61;
- margin: 12px;
- outline:0px;
- font-size:14px;
- /* color: #3A3F63; */
- border-radius: 4px;
- }
- /* 使下面两句生效,需要加上如下语句 */
- /* m_comBoxDev->setView(new QListView()); */
- QComboBox QAbstractItemView::item
- {
- background-color: #5C5E61;
- border-radius:4px;
- color: #D2D2D2;
- padding-left: 12px;
- height: 32px;
- }
- QComboBox QAbstractItemView::item:hover
- {
- color: #FFFFFF;
- border-radius:4px;
- background-color: #438EFF;
- }
- QComboBox QAbstractItemView::item:selected
- {
- color: #FFFFFF;
- border-radius:4px;
- background-color: #438EFF;
- }
- /******** combobox 滚动条 *********/
- QComboBox QScrollBar::vertical{ /*主体部分*/
- width:8px;
- background:transparent;
- border:none;
- border-radius:5px;
- }
- QComboBox QScrollBar::handle::vertical{ /*滑块主体*/
- width: 8px;
- background: #E2E2E2;
- border-radius: 3px;
- min-width: 8px;
- }
- QComboBox QScrollBar::handle::vertical::hover{
- background:transparent;
- }
- QComboBox QScrollBar::add-line::vertical{/*上箭头*/
- border:none;
- }
- QComboBox QScrollBar::sub-line::vertical{/*下箭头*/
- border:none;
- }
- /* ==========================================================
- * 时间选择器
- * ========================================================== */
- QPushButton#pBtn_iconTime
- {
- border-image: url(:/ICON/ICON/Time.png);
- }
- TimeWidget
- {
- /* background: transparent; */
- background: #373639;
- border-radius: 4px;
- padding-left:12px;
- border: 1px solid #438EFF;
- }
- QPushButton#pBtn_selectTime
- {
- font-family: 思源黑体R;
- background: transparent;
- border: 1px solid rgba(255,255,255,0.15);
- border-radius: 4px;
- font-size: 14px;
- font-weight: 400;
- padding-left: 12px;
- text-align: left;
- }
- QPushButton#pBtn_selectTime:hover
- {
- font-family: 思源黑体R;
- background: transparent;
- border: 1px solid #438EFF;
- border-radius: 4px;
- font-size: 14px;
- font-weight: 400;
- padding-left: 12px;
- text-align: left;
- }
- /* 报警红框 */
- QPushButton#pBtn_selectTime[Warn=true]
- {
- font-family: 思源黑体R;
- background: transparent;
- border-radius: 4px;
- padding-left:12px;
- border: 1px solid #D21F21;
- }
- QPushButton#btn_tip
- {
- border-image: url(:/ICON/ICON/Time.png);
- }
- /* ==========================================================
- * 日期选择器
- * ========================================================== */
- CalendarDTEdit
- {
- background: transparent;
- border-radius: 4px;
- padding-left:12px;
- border: 1px solid rgba(255,255,255,0.15);
- }
- CalendarDTEdit:hover
- {
- background: transparent;
- border-radius: 4px;
- padding-left:12px;
- border: 1px solid #438EFF;
- }
- CalendarDTEdit[Warn=true]
- {
- background: transparent;
- border-radius: 4px;
- padding-left:12px;
- border: 1px solid #D21F21;
- }
- CalendarDTEdit:!enabled/* 或者disable */
- {
- background: rgba(0,0,0,0.04);
- border: 1px solid #E6E9F4;
- }
- CalendarDTEdit::drop-down
- {
- padding-right:8px;
- width: 16px;
- image: url(:/ICON/ICON/date_light.png);
- }
|