QPalette{background:#FFFFFF;}

/*---------------CustomPushButton---------------*/
CustomPushButton {
    background: #FFFFFF;
    color:#322E37;
    border-color:  #DCDCDC;
}

CustomPushButton:hover {
    background: #F3F4F4;
}

CustomPushButton:pressed {
    background: qlineargradient(x1:0, y1:0, x2:0, y2:1,
                                        stop:0 #3a89f6,
                                        stop:0.1 #247bf4,
                                        stop: 1 #1f72e6);
    color: #FFFFFF;
    border-color:  transparent;
}

CustomPushButton:disabled {
    background:#CDCDCD;
    color: #666666;
}

CustomPushButton:checked {
background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1,
stop:0 #2470e7,
stop:0.1 #0561e2,
stop: 1 #0656c7);
}

/*---------------CustomToolButton---------------*/
CustomToolButton {
    background: #FFFFFF;
    color:#322E37;
    border-width: 2px;
    border-style: solid;
    border-color: transparent;
    border-radius: 4px;
}

CustomToolButton:hover {
    background: #F5F5F5;
}
CustomToolButton:pressed {
    background: qlineargradient(x1:0, y1:0, x2:0, y2:1,
                                        stop:0 #3a89f6,
                                        stop:0.1 #247bf4,
                                        stop: 1 #1f72e6);
}

CustomToolButton:disabled {
    background:#CDCDCD;
    color: #666666;
}

CustomToolButton:checked {
    background: qlineargradient(x1:0, y1:0, x2:0, y2:1,
                                    stop:0 #414141, stop: 0.5 #202020,
                                    stop: 0.6 #232323, stop:1 #454545);
}

/*---------------CustomTabWidget---------------*/
CustomTabStackWidget{
    background: #DCDCDC;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    border: 1px solid #A8A8A8;
    border-top: none;
}

CustomTabStackWidget:top{top:-1px;}
CustomTabStackWidget:bottom{bottom:-1px;}
CustomTabStackWidget:left{right:-1px;}
CustomTabStackWidget:right{left:-1px;}

/*---------------CustomTabBar---------------*/

CustomTabBar::tab{
    color:#666666;
    background:#E5E5E5;
    margin-right: 4px;
    height: 24px;
    border-radius: 2px;
    padding:4px 8px 4px 8px;
}

CustomTabBar::scroller { /* the width of the scroll buttons */
    width: 60px;
    border:none;
}

CustomTabBar QToolButton{
    background-color:qlineargradient(x1:0, y1:0, x2:0, y2:1,
    stop:0 #2470e7,
    stop:0.1 #0561e2,
    stop: 1 #0656c7);
    border-radius: 2px;
    margin: 4px 2px;
}

CustomTabBar QToolButton:hover{
    background-color:qlineargradient(x1:0, y1:0, x2:0, y2:1,
    stop:0 #3a89f6,
    stop:0.1 #247bf4,
    stop: 1 #1e70e2);
}

CustomTabBar QToolButton:disabled{
    background-color:#CDCDCD;

}

CustomTabBar QToolButton::right-arrow { /* the arrow mark in the tool buttons */
    image: url(":/image/Resource/image/arrow-right.png");
}
CustomTabBar QToolButton::left-arrow {
    image: url(":/image/Resource/image/arrow-left.png");
}


CustomTabBar::close-button {
    image: url(":/image/Resource/image/tab_close.png");
    border-radius: 10px;
}

CustomTabBar::close-button:hover {
    background: #424242;
}

CustomTabBar::close-button:selected {

}

CustomTabBar::close-button:selected:hover {

}

CustomTabBar::tear {
    border: none;
}

CustomTabBar::tab:selected{
    color:#322E37;
    border-style: solid;
    border-color: #363637;
    border: 2px 2px 0 2px;
    background:#DCDCDC;
}

CustomTabBar::tab:hover{
    background:#DCDCDC;
}

CustomTabBar::tab:last{
/*    margin-right: 12px;*/
/*    padding-right: 12px;*/
}


CustomTabButton{
    width: 20px;
    height: 20px;
    border-radius: 10px;
}

CustomTabButton::hover{
    background-color: #787878;
}

CustomTabButton::pressed{
    padding: 0px;
}

CustomTabMenu{
    background: #FFFFFF;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}
/*---------------CustomTagBar---------------*/
CustomTagBar::tab{
    background: #FFFFFF;
    color:#322E37;
}

CustomTagBar QToolButton{
    background: rgba(120,120,120,100);
}

CustomTagBar QToolButton:hover{
    background: rgba(198,198,198,200);
}

CustomTagBar::tab:selected{
    background-color:qlineargradient(x1:0, y1:0, x2:0, y2:1,
    stop:0 #3a89f6,
    stop:0.1 #247bf4,
    stop: 1 #1e70e2);
    color: #FFFFFF;
}

CustomTagBar::tab:pressed{
    background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1,
    stop:0 #2470e7,
    stop:0.1 #0561e2,
    stop: 1 #0656c7);
    color: #e7e7e7;
}

/*---------------CustomTagWidget---------------*/
CustomTagStackWidget{
background: #E3E3E3;
border: 1px solid #D4D4D4;
}

CustomTagStackWidget:top{top:-1px;}
CustomTagStackWidget:bottom{bottom:-1px;}
CustomTagStackWidget:left{right:-1px;}
CustomTagStackWidget:right{left:-1px;}

/*---------------CustomDateTimeEdit---------------*/
CustomDateTimeEdit{
    border-width: 2px;
    border-style: solid;
    border-color: transparent;
    border-radius:4px;
    background: #FFFFFF;
    selection-background-color:#484848;
    selection-color:#DCDCDC;
    height: 24px;
    color:#322E37;
    padding-left: 8px;
    padding-right: 16px;
}


CustomDateTimeEdit::up-arrow{
    image:url(:/image/Resource/image/arrow-up.png);
    width:20px;
}

CustomDateTimeEdit::up-button{
    background-color:qlineargradient(x1:0, y1:0, x2:0, y2:1,
    stop:0 #2470e7,
    stop:0.1 #0561e2,
    stop: 1 #065cd6);
    border-top-right-radius: 4px;
    width:20px;
}

CustomDateTimeEdit::down-arrow{
    image:url(:/image/Resource/image/arrow-down.png);
    width:20px;
}


CustomDateTimeEdit::down-button{
    background-color:qlineargradient(x1:0, y1:0, x2:0, y2:1,
    stop:0 #065cd6,
    stop: 1 #0656c7);
    border-bottom-right-radius: 4px;
    width:20px;
}


/* 下拉框样式 */
CustomDateTimeEdit::drop-down {
    subcontrol-origin: padding;   /* 子控件在父元素中的原点矩形。如果未指定此属性，则默认为padding。 */
    subcontrol-position: top right;   /* 下拉框的位置（右上） */
    width: 20px;   /* 下拉框的宽度 */
/*    height: 24px;*/
    border-top-right-radius: 4px;   /* 下拉框的右上边界线的圆角半径（应和整个QComboBox右上边界线的圆角半径一致） */
    border-bottom-right-radius: 4px;   /* 同上 */
    background-color:qlineargradient(x1:0, y1:0, x2:0, y2:1,
    stop:0 #2470e7,
    stop:0.1 #0561e2,
    stop: 1 #0656c7);
}

CustomDateTimeEdit::drop-down:on{
    background-color:qlineargradient(x1:0, y1:0, x2:0, y2:1,
    stop:0 #3a89f6,
    stop:0.1 #247bf4,
    stop: 1 #1e70e2);
}

CustomDateTimeEdit::up-button:pressed{
    background-color:qlineargradient(x1:0, y1:0, x2:0, y2:1,
    stop:0 #3a89f6,
    stop:0.1 #247bf4,
    stop: 1 #1e70e2);
}

CustomDateTimeEdit::down-button:pressed{
    background-color:qlineargradient(x1:0, y1:0, x2:0, y2:1,
    stop:0 #3a89f6,
    stop:0.1 #247bf4,
    stop: 1 #1e70e2);
}

CustomDateTimeEdit:focus{
    border-color: qlineargradient(x1:0, y1:0, x2:0, y2:1,
    stop: 0 #2376e6,
    stop: 1 #216ed7);
}

/*---------------CustomDateEdit---------------*/
CustomDateEdit{
    border-width: 2px;
    border-style: solid;
    border-color: transparent;
    border-radius:4px;
    background: #FFFFFF;
    selection-background-color:#484848;
    selection-color:#DCDCDC;
    height: 24px;
    color:#322E37;
    padding-left: 8px;
    padding-right: 16px;
}


CustomDateEdit::up-arrow{
    image:url(:/image/Resource/image/arrow-up.png);
    width:20px;
}

CustomDateEdit::up-button{
    background-color:qlineargradient(x1:0, y1:0, x2:0, y2:1,
    stop:0 #2470e7,
    stop:0.1 #0561e2,
    stop: 1 #065cd6);
    border-top-right-radius: 4px;
    width:20px;
}

CustomDateEdit::down-arrow{
    image:url(:/image/Resource/image/arrow-down.png);
    width:20px;
}


CustomDateEdit::down-button{
    background-color:qlineargradient(x1:0, y1:0, x2:0, y2:1,
    stop:0 #065cd6,
    stop: 1 #0656c7);
    border-bottom-right-radius: 4px;
    width:20px;
}


/* 下拉框样式 */
CustomDateEdit::drop-down {
    subcontrol-origin: padding;   /* 子控件在父元素中的原点矩形。如果未指定此属性，则默认为padding。 */
    subcontrol-position: top right;   /* 下拉框的位置（右上） */
    width: 20px;   /* 下拉框的宽度 */
/*    height: 24px;*/
    border-top-right-radius: 4px;   /* 下拉框的右上边界线的圆角半径（应和整个QComboBox右上边界线的圆角半径一致） */
    border-bottom-right-radius: 4px;   /* 同上 */
    background-color:qlineargradient(x1:0, y1:0, x2:0, y2:1,
    stop:0 #2470e7,
    stop:0.1 #0561e2,
    stop: 1 #0656c7);
}

CustomDateEdit::drop-down:on{
    background-color:qlineargradient(x1:0, y1:0, x2:0, y2:1,
    stop:0 #3a89f6,
    stop:0.1 #247bf4,
    stop: 1 #1e70e2);
}

CustomDateEdit::up-button:pressed{
    background-color:qlineargradient(x1:0, y1:0, x2:0, y2:1,
    stop:0 #3a89f6,
    stop:0.1 #247bf4,
    stop: 1 #1e70e2);
}

CustomDateEdit::down-button:pressed{
    background-color:qlineargradient(x1:0, y1:0, x2:0, y2:1,
    stop:0 #3a89f6,
    stop:0.1 #247bf4,
    stop: 1 #1e70e2);
}

CustomDateEdit:focus{
    border-color: qlineargradient(x1:0, y1:0, x2:0, y2:1,
    stop: 0 #2376e6,
    stop: 1 #216ed7);
}


/*---------------CustomSpinBox---------------*/
CustomSpinBox{
    border-width: 2px;
    border-style: solid;
    border-color: transparent;
    border-radius:4px;
    background: #FFFFFF;
    selection-background-color:#484848;
    selection-color:#DCDCDC;
    height: 24px;
    color:#322E37;
    padding-left: 8px;
    padding-right: 16px;
}


CustomSpinBox::up-arrow{
    image:url(:/image/Resource/image/arrow-up.png);
    width:20px;
}

CustomSpinBox::up-button{
    background-color:qlineargradient(x1:0, y1:0, x2:0, y2:1,
    stop:0 #2470e7,
    stop:0.1 #0561e2,
    stop: 1 #065cd6);
    border-top-right-radius: 4px;
    width:20px;
}

CustomSpinBox::down-arrow{
    image:url(:/image/Resource/image/arrow-down.png);
    width:20px;
}

CustomSpinBox::down-button{
    background-color:qlineargradient(x1:0, y1:0, x2:0, y2:1,
    stop:0 #065cd6,
    stop: 1 #0656c7);
    border-bottom-right-radius: 4px;
    width:20px;
}

CustomSpinBox::up-button:pressed{
    background-color:qlineargradient(x1:0, y1:0, x2:0, y2:1,
    stop:0 #3a89f6,
    stop:0.1 #247bf4,
    stop: 1 #1e70e2);
}

CustomSpinBox::down-button:pressed{
    background-color:qlineargradient(x1:0, y1:0, x2:0, y2:1,
    stop:0 #3a89f6,
    stop:0.1 #247bf4,
    stop: 1 #1e70e2);
}

CustomSpinBox:focus{
    border-color: qlineargradient(x1:0, y1:0, x2:0, y2:1,
    stop: 0 #2376e6,
    stop: 1 #216ed7);
}

/*---------------CustomDoubleSpinBox---------------*/
CustomDoubleSpinBox{
    border-width: 2px;
    border-style: solid;
    border-color: transparent;
    border-radius:4px;
    background: #FFFFFF;
    selection-background-color:#484848;
    selection-color:#DCDCDC;
    height: 24px;
    color:#322E37;
    padding-left: 8px;
    padding-right: 16px;
}


CustomDoubleSpinBox::up-arrow{
    image:url(:/image/Resource/image/arrow-up.png);
    width:20px;
}

CustomDoubleSpinBox::up-button{
    background-color:qlineargradient(x1:0, y1:0, x2:0, y2:1,
    stop:0 #2470e7,
    stop:0.1 #0561e2,
    stop: 1 #065cd6);
    border-top-right-radius: 4px;
    width:20px;
}

CustomDoubleSpinBox::down-arrow{
    image:url(:/image/Resource/image/arrow-down.png);
    width:20px;
}

CustomDoubleSpinBox::down-button{
    background-color:qlineargradient(x1:0, y1:0, x2:0, y2:1,
    stop:0 #065cd6,
    stop: 1 #0656c7);
    border-bottom-right-radius: 4px;
    width:20px;
}

CustomDoubleSpinBox::up-button:pressed{
    background-color:qlineargradient(x1:0, y1:0, x2:0, y2:1,
    stop:0 #3a89f6,
    stop:0.1 #247bf4,
    stop: 1 #1e70e2);
}

CustomDoubleSpinBox::down-button:pressed{
    background-color:qlineargradient(x1:0, y1:0, x2:0, y2:1,
    stop:0 #3a89f6,
    stop:0.1 #247bf4,
    stop: 1 #1e70e2);
}

CustomDoubleSpinBox:focus{
    border-color: qlineargradient(x1:0, y1:0, x2:0, y2:1,
    stop: 0 #2376e6,
    stop: 1 #216ed7);
}


/*---------------CustomComboBox---------------*/
/* 未下拉时，QComboBox的样式 */
CustomComboBox {
    border-width: 2px;
    border-style: solid;
    border-color: transparent;
    border-radius: 4px;   /* 圆角 */
    padding-left: 8px;   /* 字体填衬 */
/*    padding-right: 8px;*/
    color: #322E37;
/*    background: transparent;*/
    background:#FFFFFF;
    height: 24px;
}

CustomComboBox:focus, CustomComboBox:on{
    border-color: qlineargradient(x1:0, y1:0, x2:0, y2:1,
    stop: 0 #2376e6,
    stop: 1 #216ed7);
}

/* 下拉后，整个下拉窗体样式 */
CustomComboBox QAbstractItemView {
    outline: none;   /* 选定项的虚框 */
    border: 1px solid #B8B8B8;   /* 整个下拉窗体的边框 */
    color: #322E37;
    padding-top: 4px;
    padding-bottom: 4px;
    background-color: rgba(238, 238, 238, 222);   /* 整个下拉窗体的背景色 */
    selection-background-color: #0059d1;   /* 整个下拉窗体被选中项的背景色 */
}

/* 下拉后，整个下拉窗体越过每项的样式 */
CustomComboBox QAbstractItemView::item:hover {
    color: #322E37;
    background-color: #0059d1;   /* 整个下拉窗体越过每项的背景色 */
}

/* 下拉后，整个下拉窗体被选择的每项的样式 */
CustomComboBox QAbstractItemView::item:selected {
    color: #e6e6e6;
    background-color: #0059d1;
}

/* 下拉后，整个下拉窗体越过每项的样式 */
CustomComboBox QAbstractItemView::item:disabled {

    background-color: rgba(37, 37, 37, 200);
}

/* QComboBox中的垂直滚动条 */
/*CustomComboBox QAbstractScrollArea QScrollBar:vertical {
    background:#2f3031;
    padding:4px;
    max-width:16px;
}

CustomComboBox QAbstractScrollArea QScrollBar::handle:vertical {
    background:#6b6b6b;
    min-height:20px;
    border-radius:4px;
}

CustomComboBox QAbstractScrollArea QScrollBar::handle:vertical:hover {
    background:#6b6b6b;
}

CustomComboBox QAbstractScrollArea QScrollBar::handle:vertical:pressed{
    background:#959595;
}*/

/* 下拉框样式 */
CustomComboBox::drop-down {
    subcontrol-origin: padding;   /* 子控件在父元素中的原点矩形。如果未指定此属性，则默认为padding。 */
    subcontrol-position: top right;   /* 下拉框的位置（右上） */
    width: 20px;   /* 下拉框的宽度 */
/*    height: 24px;*/
    border-top-right-radius: 4px;   /* 下拉框的右上边界线的圆角半径（应和整个QComboBox右上边界线的圆角半径一致） */
    border-bottom-right-radius: 4px;   /* 同上 */
    background-color:qlineargradient(x1:0, y1:0, x2:0, y2:1,
    stop:0 #2470e7,
    stop:0.1 #0561e2,
    stop: 1 #0656c7);
}

CustomComboBox::drop-down:on{
    background-color:qlineargradient(x1:0, y1:0, x2:0, y2:1,
    stop:0 #3a89f6,
    stop:0.1 #247bf4,
    stop: 1 #1e70e2);
}

/* 越过下拉框样式 */
CustomComboBox::drop-down:hover {

}

/* 下拉箭头样式 */
CustomComboBox::down-arrow {
    width: 20px; /* 下拉箭头的宽度（建议与下拉框drop-down的宽度一致） */
    height: 24px;
    padding: 0px;
    image: url(:/image/Resource/image/arrow-down.png);
}

/* 点击下拉箭头 */
CustomComboBox::down-arrow:on {
    width: 20px;
    height: 24px;
    padding: 0px;
    image: url(:/image/Resource/image/arrow-up.png); /* 显示上拉箭头 */
}

CustomComboBox:editable {
/*    font-family: "微软雅黑";*/
}

/*---------------CustomTreeView---------------*/
CustomTreeView QHeaderView::section {
    background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1,
                                    stop:0 #313334, stop: 0.9 #313334,
                                    stop: 1 #4b4d4e);
    color: #e0e0e0;
    padding-left: 8px;
    border-width:0px 1px;
    border-style:solid;
    border-color:#4b4d4e;
}

CustomTreeView QHeaderView::section:first {
      border-left: none;
}

CustomTreeView QHeaderView::section:last {
      border-right: none;
}

CustomTreeView{
    color: #e0e0e0;
    show-decoration-selected: 1;
    border: transparent;
    outline: transparent;
    background-color: #2d2d2d;
    alternate-background-color: #202324;
}

CustomTreeView::branch{
    background: transparent;
}

CustomTreeView::branch:selected{
    background: #464646;
}

CustomTreeView::branch:has-children:!has-siblings:closed,
CustomTreeView::branch:closed:has-children:has-siblings {
    border-image: none;
    image: url(:/image/Resource/image/right-fill-grey.png);
}

CustomTreeView::branch:has-children:!has-siblings:closed:hover,
CustomTreeView::branch:closed:has-children:has-siblings:hover {
    image: url(:/image/Resource/image/right-fill-blue.png);
}

CustomTreeView::branch:open:has-children:!has-siblings,
CustomTreeView::branch:open:has-children:has-siblings  {
    border-image: none;
    image: url(:/image/Resource/image/under-fill-grey.png);
}

CustomTreeView::branch:open:has-children:!has-siblings:hover,
CustomTreeView::branch:open:has-children:has-siblings:hover  {
    image: url(:/image/Resource/image/under-fill-blue.png);
}

CustomTreeView::item {
    border: transparent;
}

CustomTreeView::item:hover {
    border: transparent;
}

CustomTreeView::item:selected {
    border: transparent;
}

CustomTreeView::item:selected:active{
    background: #464646;
}

CustomTreeView::item:selected:!active {
    color: #FFFFFF;
    background: #464646;
}

CustomTreeView::indicator::enabled:checked{
    image: url(:/image/Resource/image/checkbox1.png);
}

CustomTreeView::indicator::enabled:checked:focus{
    image: url(:/image/Resource/image/checkbox2.png);
}

CustomTreeView::indicator::enabled:unchecked{
    image: url(:/image/Resource/image/checkbox.png);
}

/*---------------CustomListView---------------*/
CustomListView{
    border-width:1px;
    border-style:solid;
    border-color:#808080;
    border-radius: 4px;
    background:#3c3d3f;
    color: #dadada;
}

CustomListView QFrame[style="left"]
{
    border-width:0 1px 0 0;
    border-style:solid;
    border-color:#808080;
}

CustomListItem[style="normal"]
{
    border-width:0 0 1px 0;
    border-style:solid;
    border-color:#808080;
}

CustomListItem QLabel{
    color: #dadada;
}

CustomLineEdit{
    border-width: 2px;
    border-style: solid;
    border-color: transparent;
    border-radius:4px;
    background: #FFFFFF;
    height: 24px;
    color:#322E37;
    padding-left: 8px;
    padding-right: 8px;
    selection-background-color:#484848;
    selection-color:#DCDCDC;
}

CustomLineEdit:!read-only:focus{
    border-color: qlineargradient(x1:0, y1:0, x2:0, y2:1,
    stop: 0 #2376e6,
    stop: 1 #216ed7);
}


CustomLineEdit:read-only {
    background: rgba(255,255,255,0.5);
}

CustomLineEdit:read-only:hover {
    border-color: qlineargradient(x1:0, y1:0, x2:0, y2:1,
    stop: 0 #2376e6,
    stop: 1 #216ed7);
}

CustomTextEdit{
    border:2px solid #D4D4D4;
    border-radius:3px;
    padding:2px;
    color:#322E37;
    background: #FFFFFF;
    selection-background-color:#484848;
    selection-color:#DCDCDC;
}

CustomTextEdit:focus{
    border-color: qlineargradient(x1:0, y1:0, x2:0, y2:1,
    stop: 0 #2376e6,
    stop: 1 #216ed7);
}

CustomLabel{
    color:#322E37;
}

CustomStatusBar {
    color: #322E37;
}

CustomStatusBar::item{
    border: none;
}

/*---------------CustomSlider---------------*/
CustomSlider::groove:horizontal{
    background:#484848;
    height:8px;
    border-radius:4px;
}

CustomSlider::add-page:horizontal{
    background:#FAFAFA;
    height:8px;
    border-radius:4px;
}

/*已选区域*/
CustomSlider::sub-page:horizontal{
    background:#848484;
    height:8px;
    border-radius:4px;
}

/*滑块 滑块高度=marginTop + marginBottom + slider高度 */
CustomSlider::handle:horizontal{
    width: 20px;
    background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1,
    stop:0 #2470e7,
    stop:0.1 #0561e2,
    stop: 1 #0656c7);
    margin: -6px 0px -6px 0px;
    border-radius: 10px;
}

CustomSlider::handle:horizontal:hover{
    background-color:qlineargradient(x1:0, y1:0, x2:0, y2:1,
    stop:0 #3a89f6,
    stop:0.1 #247bf4,
    stop: 1 #1e70e2);
}

CustomSlider::groove:vertical{
    width:8px;
    border-radius:4px;
    background:#484848;
}

CustomSlider::add-page:vertical{
    background:#848484;
    width:8px;
    border-radius:4px;

}

CustomSlider::sub-page:vertical{
    background:#FAFAFA;
    width:8px;
    border-radius:4px;
}

CustomSlider::handle:vertical{
    height: 20px;
    background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1,
    stop:0 #2470e7,
    stop:0.1 #0561e2,
    stop: 1 #0656c7);
    margin: 0px -6px 0px -6px;
    border-radius: 10px;
}

CustomSlider::handle:vertical:hover{
    background-color:qlineargradient(x1:0, y1:0, x2:0, y2:1,
    stop:0 #3a89f6,
    stop:0.1 #247bf4,
    stop: 1 #1e70e2);
}

/*---------------CustomStatusBox---------------*/
CustomStatusBox{
    color:#322E37;
}

CustomStatusBox::indicator{
    width: 24px;height: 24px;
}

CustomStatusBox::indicator:unchecked{
    image:url(:/image/Resource/image/circle0.png);
}

CustomStatusBox[style="status"]::indicator:checked{
    image:url(:/image/Resource/image/circle1.png);
}

CustomStatusBox[style="warning"]::indicator:checked{
    image:url(:/image/Resource/image/circle2.png);
}

CustomStatusBox[style="alarm"]::indicator:checked{
    image:url(:/image/Resource/image/circle3.png);
}


/*---------------CustomCheckBox---------------*/
CustomCheckBox {
    color:#322E37;
    spacing: 10px;
    padding-left: 3px;
}

CustomCheckBox::indicator {
    width: 18px;height: 18px;
}

CustomCheckBox::indicator:unchecked {
    image: url(:/image/Resource/image/checkbox.png);
}

CustomCheckBox::indicator:unchecked:hover {
}

CustomCheckBox::indicator:unchecked:pressed {
}

CustomCheckBox::indicator:checked {
    image: url(:/image/Resource/image/checkbox1.png);
}
CustomCheckBox::indicator:checked:focus {
    image: url(:/image/Resource/image/checkbox2.png);
}

CustomCheckBox::indicator:checked:hover {

}

CustomCheckBox::indicator:checked:pressed {

}

CustomCheckBox::indicator:indeterminate:hover {

}

CustomCheckBox::indicator:indeterminate:pressed {

}

/*---------------CustomRadioButton---------------*/
CustomRadioButton{
    color:#322E37;
}

CustomRadioButton::indicator {
    width: 18px;height: 18px;
/*    border-width: 1px;
    border-style: solid;
    border-color: transparent;
    border-radius: 8px;*/
}

CustomRadioButton::indicator::unchecked {
    image: url(:/image/Resource/image/radiobutton.png);
}

CustomRadioButton::indicator:hover {
/*    border-color: qlineargradient(x1:0, y1:0, x2:0, y2:1,
    stop: 0 #2376e6,
    stop: 1 #216ed7);*/
}

/*---------------CustomTableView---------------*/

CustomTableView QHeaderView::section {
    background-color: #F5F5F5;
    color:#322E37;
    height: 30px;
    padding-left: 0px;
    border-width: 1px;
    border-style: solid;
    border-color: #E7E7E7;
}

CustomTableView QHeaderView::section:horizontal:last{

}

CustomTableView QHeaderView::section:checked {
    background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1,
    stop: 0 #2376e6,
    stop: 1 #216ed7);
    color:#FFFFFF;
}

CustomTableView{
    color:#322E37;
    border-color: transparent;
    outline: transparent;
    background-color: #FAFAFA;
    alternate-background-color: #F5F5F5;
    gridline-color: #DCDCDC;
}

CustomTableView::item {
    border-width: 2px;
    border-style: solid;
    border-color: transparent;
    border-radius: 4px;
    color:#322E37;
}

CustomTableView::item:focus{
}

CustomTableView::item:hover {
/*    border: transparent;*/
    background: #FFFFFF;
}

CustomTableView::item:selected {
    background: #FAFAFA;
    border-color: qlineargradient(x1:0, y1:0, x2:0, y2:1,
    stop: 0 #2376e6,
    stop: 1 #216ed7);
}

CustomTableView::item:selected:active {
}

CustomTableView::item:selected:!active {
}

CustomTableView::item QLineEdit {
    border-width: 2px;
    border-style: solid;
    border-color: transparent;
    border-radius: 4px;
    background: #666666;

    color: #e6e6e6;
    padding-left: 8px;
    padding-right: 16px;
    selection-background-color:#FFFFFF;
    selection-color:#DCDCDC;
}

CustomTableView::item QLineEdit:focus{
    border-color: qlineargradient(x1:0, y1:0, x2:0, y2:1,
    stop: 0 #2376e6,
    stop: 1 #216ed7);
}

CustomTableView QTableCornerButton::section {
    background-color: #FFFFFF;
    color: #e0e0e0;
/*    padding-left: 8px;*/
    border-width:0px 1px;
    border-style:solid;
    border-color:#E7E7E7;
}

CustomTableView QTableCornerButton::section::pressed {
    background: #464646;
}

CustomFooterWidget QLabel{
    color: #8F8F8F;
}


/*---------------CustomRadioButton---------------*/
CustomRadioButton::indicator:unchecked:pressed {

}

CustomRadioButton::indicator::checked {
    image: url(:/image/Resource/image/radiobutton1.png);
}

CustomRadioButton::indicator:checked:pressed {

}

CustomRadioButton::indicator:checked:focus {
    image: url(:/image/Resource/image/radiobutton2.png);
}

/*---------------CustomDockTitleBar---------------*/
CustomDockTitleBar{
    background: qlineargradient(x1:0, y1:0, x2:0, y2:1,
    stop: 0 #434344,
    stop: 1 #363638);
    border-style: solid;
    border-top-color: #565656;
    border-left-color: #565656;
    border-right-color: #565656;
    border-bottom-color: #000000;
    border-width: 1px;
/*    border-top: 1px solid #878687;*/
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}

/*---------------CustomDockWidget---------------*/
CustomDockWidget{
    background: #393939;
    border: 1px solid #565656;
    border-radius: 4px;
}


/*---------------用于处理TabifyDockWidget的Tabbar样式---------------*/

QMainWindow > QTabBar{
    alignment: center;
}

QMainWindow > QTabBar::scroller { /* the width of the scroll buttons */
    width: 48px;
    border:none;
}


QMainWindow > QTabBar QToolButton{
    background: rgba(120,120,120,100);
    border-radius: 2px;
}

QMainWindow > QTabBar QToolButton:hover{
    background: rgba(198,198,198,100);
}

QMainWindow > QTabBar::tear {
    border: none;
}

QMainWindow > QTabBar::tab{
    font-family: "微软雅黑";
    color: #e7e7e7;
    padding:3px;
}

QMainWindow > QTabBar::tab:top, QMainWindow > QTabBar::tab:bottom{
    background: qlineargradient(x1:0, y1:0, x2:0, y2:1,
    stop: 0 #808080, stop: 0.01 #707070,
    stop: 1 #6a6a6a);
    margin-right: 1px;
}

QMainWindow > QTabBar::tab:left, QMainWindow > QTabBar::tab:right{
    margin-bottom: 1px;
}

QMainWindow > QTabBar::tab:left{
    background: qlineargradient(x1:0, y1:0, x2:1, y2:0,
    stop: 0 #808080, stop: 0.01 #707070,
    stop: 1 #6a6a6a);
}

QMainWindow > QTabBar::tab:right{
    background: qlineargradient(x1:1, y1:0, x2:0, y2:0,
    stop: 0 #808080, stop: 0.01 #707070,
    stop: 1 #6a6a6a);
}


QMainWindow > QTabBar::tab:selected{
    color: #4e4e4e;
}

QMainWindow > QTabBar::tab:top:selected, QMainWindow > QTabBar::tab:bottom:selected{
    background: qlineargradient(x1:0, y1:0, x2:0, y2:1,
    stop: 0 #d7d7d7,
    stop: 1 #c8c8c8);
}

QMainWindow > QTabBar::tab:left:selected{
    background: qlineargradient(x1:0, y1:0, x2:1, y2:0,
    stop: 0 #d7d7d7,
    stop: 1 #c8c8c8);
}

QMainWindow > QTabBar::tab:right:selected{
    background: qlineargradient(x1:1, y1:0, x2:0, y2:0,
    stop: 0 #d7d7d7,
    stop: 1 #c8c8c8);
}

QMainWindow > QTabBar::tab:pressed{
    color: #e7e7e7;
}

QMainWindow > QTabBar::tab:top:pressed, QMainWindow > QTabBar::tab:bottom:pressed{
    background: qlineargradient(x1:0, y1:0, x2:0, y2:1,
    stop: 0 #989898, stop: 0.01 #8a8a8a,
    stop: 1 #848484);
}

QMainWindow > QTabBar::tab:left:pressed{
    background: qlineargradient(x1:0, y1:0, x2:1, y2:0,
    stop: 0 #989898, stop: 0.01 #8a8a8a,
    stop: 1 #848484);
}

QMainWindow > QTabBar::tab:bottom:pressed{
    background: qlineargradient(x1:1, y1:0, x2:0, y2:0,
    stop: 0 #989898, stop: 0.01 #8a8a8a,
    stop: 1 #848484);
}

QMainWindow > QTabBar::tab:top:first, QMainWindow > QTabBar::tab:bottom:first{
    border-top-left-radius: 3px;
    border-bottom-left-radius: 3px;
}

QMainWindow > QTabBar::tab:only-one {
    border-radius: 3px;
}

QMainWindow > QTabBar::tab:top:last, QMainWindow > QTabBar::tab:bottom:last{
    border-top-right-radius: 3px;
    border-bottom-right-radius: 3px;
}

QMainWindow > QTabBar::tab:left:first, QMainWindow > QTabBar::tab:right:first{
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
}

QMainWindow > QTabBar::tab:left:last, QMainWindow > QTabBar::tab:right:last{
    border-bottom-left-radius: 3px;
    border-bottom-right-radius: 3px;
}



/*---------------General---------------*/
*:disabled{
    border-color:transparent;
    color: #959798;
}

QToolTip {
    border: none;
/*    background: rgba(51,51,51,222);*/
/*    padding: 5px;*/
    border-radius: 4px;
    opacity: 200;
}

QScrollBar:horizontal{
    background:#FAFAFA;
    border-color: #E7E7E7;
}
QScrollBar::handle:horizontal{
    background:#BBBABA;
}
QScrollBar::handle:horizontal:hover{
    background:#848484;
}
QScrollBar::handle:horizontal:pressed{
    background:#848484;
}
QScrollBar::add-page:horizontal{
    background:none;
}
QScrollBar::sub-page:horizontal{
    background:none;
}
QScrollBar::add-line:horizontal{
    background:none;
}
QScrollBar::sub-line:horizontal{
    background:none;
}
QScrollBar:vertical{
    background:#FAFAFA;
    border-color: #E7E7E7;
}
QScrollBar::handle:vertical{
    background:#BBBABA;
}
QScrollBar::handle:vertical:hover{
    background:#848484;
}
QScrollBar::handle:vertical:pressed{
    background:#848484;
}

QScrollArea {
    background: transparent;
}
QScrollArea > QWidget > QWidget {
    background: transparent;
}
QScrollArea > QWidget > QScrollBar {
    background: palette(base);
}

QProgressBar::chunk {
    background-color:qlineargradient(x1:0, y1:0, x2:0, y2:1,
    stop:0 #3a89f6,
    stop:0.1 #247bf4,
    stop: 1 #1e70e2);
    min-width: 20px;
    border-radius:4px;
}

QProgressBar {
    background-color: #FFFFFF;
    border-radius: 4px;
    color: #322E37;
    text-align: center;
}

CustomCodeEditor {
    color:#322E37;
    background: #FFFFFF;
    selection-background-color:#484848;
    selection-color:#DCDCDC;
    border-color:#D4D4D4;
}

/*---------------FramelessBar---------------*/
FramelessBar{
    background: qlineargradient(x1:0, y1:0, x2:0, y2:1,
                            stop: 0 #F7F7F7, stop: 0.2 #E5E5E5,
                            stop: 1 #CDCDCD);
    border-top-color: #DCDCDC;
    border-left-color: #DCDCDC;
    border-right-color: #DCDCDC;
    border-bottom-color: #A8A8A8;
    qproperty-titleTextColor: #322E37;
}

FramelessWindow, FramelessDialog, FramelessMessageBox, FramelessWidget{
    background: #ECECEC;
    border: 1px solid #DCDCDC;
    border-radius: 4px;
}

QGroupBox{
    border:1px solid #999999;
    border-radius:4px;
    margin-top:8px;
    background:#E7E7E8;
}

QGroupBox::title{
    subcontrol-origin:margin;
    subcontrol-position:top center;
    color:#322E37;
    font-size: 24px;
}

QGroupBox::indicator {
    width: 18px;
    height: 18px;
 }

QGroupBox::indicator:unchecked {
    image: url(:/image/Resource/image/checkbox.png);
}

QGroupBox::indicator:checked {
    image: url(:/image/Resource/image/checkbox1.png);
}
QGroupBox::indicator:checked:focus {
    image: url(:/image/Resource/image/checkbox2.png);
}


QSplitter::handle:horizontal {
background: qlineargradient(x1:0, y1:0, x2:1, y2:0,
                            stop: 0 #B8BCBC, stop: 0.2 #FFFFFF,
                            stop: 1 #B8BCBC);
}

QSplitter::handle:vertical {
background: qlineargradient(x1:0, y1:0, x2:0, y2:1,
                            stop: 0 #B8BCBC, stop: 0.2 #FFFFFF,
                            stop: 1 #B8BCBC);
}

CRTChart{
qproperty-textColor: #322E37;
color: #322E37;
}

CRTChartView{
qproperty-textColor: #322E37;
}

