/*******WIDGET********/

QWidget
{
    color: #b1b1b1;
    border: 1px solid  #323232;
    background-color:#323232;
}

QWidget:disabled
{
    color: #555555;
    background-color: #323232;
}
QWidget:focus
{
    border: 1px solid  #838383;
}

/**************MAINWINDOW*************/

QMainWindow::separator
{
    background-color: QLinearGradient(x1:0, y1:0, x2:0, y2:1, stop:0 #161616, stop: 0.5 #151515, stop: 0.6 #212121, stop:1 #343434);
    color: white;
    padding-left: 4px;
    border: 1px solid #4c4c4c;
    spacing: 2px;
}

QMainWindow::separator:hover
{

    background-color: QLinearGradient(x1:0, y1:0, x2:0, y2:1, stop:0 #d7801a, stop:0.5 #b56c17 stop:1 #ffa02f);
    color: white;
    padding-left: 4px;
    border: 1px solid #6c6c6c;
    spacing: 3px;
}


/**************Tooltip**************/

QToolTip
{
     border: 1px solid black;
     background-color: #eeeeee;
     padding: 1px;
     padding-left: 4px;
     padding-right: 4px;
     border-radius: 3px;
     color: black;
     opacity: 100;
}

/*****************MENUBAT*************/

QMenuBar::item
{
    background: transparent;
}

QMenuBar::item:selected
{
    /*background: transparent;*/
    background-color: #555555;
    color: #fff;

}

QMenuBar::item:pressed
{
    background: #444;
    border: 1px solid #000;
    background-color: QLinearGradient(
        x1:0, y1:0,
        x2:0, y2:1,
        stop:1 #212121,
        stop:0.4 #343434
    );
    margin-bottom:-1px;
    padding-bottom:1px;
}


/***************ITEM**************/

QAbstractItemView
{
    background-color: #3b3b3b;
    alternate-background-color: #323232;
    /*show-decoration-selected: 1;*/
}

QTreeView::item:alternate {
     background-color: #323232;
 }
 QTreeView::item {
     background-color: #3b3b3b;
 }

QTreeView::item:selected, QListView::item:selected{
    background: #6b6a6a;
}
 QTreeView::item:selected:hover{
    background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #7b7b7b, stop: 1 #6b6a6a);
}

QTreeView:item:hover
{
    background-color:#515151;
    color: #fff;
}
/******************************************************/
QTreeView::branch:has-siblings:!adjoins-item {
     border-image: url(icons/vline.png) 0;
 }

 QTreeView::branch:has-siblings:adjoins-item {
     border-image: url(icons/more.png) 0;
 }

 QTreeView::branch:!has-children:!has-siblings:adjoins-item {
     border-image: url(icons/end.png) 0;
 }

 QTreeView::branch:has-children:!has-siblings:closed,
 QTreeView::branch:closed:has-children:has-siblings {
         border-image: none;
         image: url(icons/closed.png);
 }

 QTreeView::branch:open:has-children:!has-siblings,
 QTreeView::branch:open:has-children:has-siblings  {
         border-image: none;
         image: url(icons/open.png);
 }
/***************LINEEDIT************/

QLineEdit
{
    background-color: #464646;
    padding: 1px;
    border-style: solid;
    border: 1px solid #1e1e1e;
    border-radius: 0;
}

/***************PUSHBUTTON***********/

QPushButton
{
    color: #b1b1b1;
    background-color: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #565656, stop: 0.1 #525252, stop: 0.5 #4e4e4e, stop: 0.9 #4a4a4a, stop: 1 #464646);
    border-width: 1px;
    border-color: #1e1e1e;
    border-style: solid;
    border-radius: 2;
    padding: 3px;
    font-size: 12px;
    padding-left: 7px;
    padding-right: 7px;
}

QPushButton:pressed
{
    background-color: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #2d2d2d, stop: 0.1 #2b2b2b, stop: 0.5 #292929, stop: 0.9 #282828, stop: 1 #252525);
}
QPushButton:disabled
{
    background-color: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #2d2d2d, stop: 0.1 #2b2b2b, stop: 0.5 #292929, stop: 0.9 #282828, stop: 1 #252525);
    color: #525252;
}

QPushButton:checked
{
    border-color: #b1b1b1;
    background-color: #2d2d2d;
}

/*********************MENU************/

QMenu
{
    border: 1px solid black;
}

QMenu::item
{
    padding: 2px 20px 2px 20px;
}

QMenu::item:selected
{
    color: #fff;
    background-color: #555555;
}

QMenu::separator
{
    height: 2px;
    background-color: QLinearGradient(x1:0, y1:0, x2:0, y2:1, stop:0 #161616, stop: 0.5 #151515, stop: 0.6 #212121, stop:1 #343434);
    color: white;
    padding-left: 4px;
    margin-left: 20px;
    margin-right: 5px;
}


/**********************GROUPBOX**********/
QGroupBox:focus
{
border: 1px solid #696969;
}

QGroupBox {
    border:1px solid #696969;
    border-radius: 4px;
    margin-top: 2ex;

}

QGroupBox::title {
    subcontrol-origin: margin;
    subcontrol-position: top center;

    padding-left: 10px;
    padding-right: 10px;
}

 /******************TEXTEDIT****************/

QTextEdit
{
    background-color: #242424;
    border: 1px solid gray;
}

QTextEdit:focus
{
    border: 1px solid #c6c6c6;
}

QPlainTextEdit
{
    background-color: #242424;
}

/***********SCROLLBAR***************/

QScrollBar:horizontal {
     border: 1px solid #222222;
     background: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1, stop: 0.0 #121212, stop: 0.2 #282828, stop: 1 #484848);
     height: 15px;
     margin: 0px 16px 0 16px;
}

QScrollBar::handle:horizontal, QScrollBar::handle:vertical
{
      background:  #565656;
      min-height: 20px;
      border-radius: 2px;
}
QScrollBar::handle:horizontal:pressed, QScrollBar::handle:vertical:pressed
{
      background:  #5b5a5a;
}
QScrollBar::add-line:horizontal, QScrollBar::sub-line:horizontal
{
      border: 1px solid #1b1b19;
      border-radius: 1px;
      background: #565656;
      width: 14px;
      subcontrol-origin: margin;
}
QScrollBar::add-line:vertical, QScrollBar::sub-line:vertical
{
      border: 1px solid #1b1b19;
      border-radius: 1px;
      background: #565656;
      height: 14px;
      subcontrol-origin: margin;
}
QScrollBar::add-line:horizontal:pressed, QScrollBar::sub-line:horizontal:pressed ,
QScrollBar::add-line:vertical:pressed, QScrollBar::sub-line:vertical:pressed
{
      background:  #5b5a5a;
}

QScrollBar::sub-line:vertical
{
      subcontrol-position: top;
}
QScrollBar::add-line:vertical
{
      subcontrol-position: bottom;
}

QScrollBar::sub-line:horizontal
{
     subcontrol-position: left;
}
QScrollBar::add-line:horizontal
{
      subcontrol-position: right;
}

QScrollBar::add-page:horizontal, QScrollBar::sub-page:horizontal
{
      background: none;
}

QScrollBar:vertical
{
      background: QLinearGradient( x1: 0, y1: 0, x2: 1, y2: 0, stop: 0.0 #121212, stop: 0.2 #282828, stop: 1 #484848);
      width: 15px;
      margin: 16px 0 16px 0;
      border: 1px solid #222222;
}

QScrollBar::up-arrow:vertical, QScrollBar::down-arrow:vertical,
QScrollBar::right-arrow:horizontal, QScrollBar::left-arrow:horizontal
{
      border: 0px;
      width: 10px;
      height: 10px;
      background: #565656;
}
QScrollBar::up-arrow:vertical:pressed, QScrollBar::down-arrow:vertical:pressed,
QScrollBar::right-arrow:horizontal:pressed, QScrollBar::left-arrow:horizontal:pressed
{
      background: #5b5a5a;
}

QScrollBar::up-arrow:vertical
{
     border-image: url(:/arrow_up.png) 1;
}
QScrollBar::down-arrow:vertical
{
     border-image: url(:/arrow_down.png) 1;
}
QScrollBar::right-arrow:horizontal
{
     border-image: url(:/arrow_right.png) 1;
}
QScrollBar::left-arrow:horizontal
{
     border-image: url(:/arrow_left.png) 1;
}


QScrollBar::add-page:vertical, QScrollBar::sub-page:vertical
{
      background: none;
}



/*********HORIZONTAL SLIDER**************/

QSlider::groove:horizontal {
    border: 1px solid #949494;
    background: #949494;
    height: 6px;
    border-radius: 2px;
}
QSlider::groove:vertical {
    border: 1px solid #949494;
    background: #949494;
    width: 6px;
    border-radius: 2px;
}

QSlider::sub-page:horizontal {
    background: #949494;
    border: 1px solid #777;
    height: 10px;
    border-radius: 2px;
}
QSlider::sub-page:vertical {
    background: #949494;
    border: 1px solid #777;
    width: 10px;
    border-radius: 2px;
}
QSlider::add-page:horizontal {
    background: rgb(40,40,40);
    border: 1px solid #777;
    height: 10px;
    border-radius: 2px;
}
QSlider::add-page:vertical {
    background: rgb(40,40,40);
    border: 1px solid #777;
    width: 10px;
    border-radius: 2px;
}
QSlider::handle:horizontal {
background: qlineargradient(x1:0, y1:0, x2:1, y2:1,
    stop:0 #eee, stop:1 #ccc);
border: 1px solid #777;
width: 5px;
margin-top: -8px;
margin-bottom: -8px;
border-radius: 2px;
}
QSlider::handle:vertical {
background: qlineargradient(x1:0, y1:0, x2:1, y2:1,
    stop:0 #eee, stop:1 #ccc);
border: 1px solid #777;
height: 5px;
margin-left: -8px;
margin-right: -8px;
border-radius: 2px;
}
QSlider::handle:horizontal:hover,QSlider::handle:vertical:hover  {
background: qlineargradient(x1:0, y1:0, x2:1, y2:1,
    stop:0 #fff, stop:1 #ddd);
border: 1px solid #444;
border-radius: 2px;
}


QSlider::sub-page:horizontal:disabled,
QSlider::sub-page:vertical:disabled  {
background: #bbb;
border-color: #999;
}

QSlider::add-page:horizontal:disabled,
QSlider::add-page:vertical:disabled {
background: #eee;
border-color: #999;
}

QSlider::handle:horizontal:disabled,
QSlider::handle:vertical:disabled {
background: #eee;
border: 1px solid #aaa;
border-radius: 2px;
}


/*****************SPINBOX********************/

QSpinBox::up-button,QTimeEdit::up-button  {
    subcontrol-origin: border;
    subcontrol-position: top right;
     width: 16px;
    border: 1px solid #3a3939;
}
QSpinBox::down-button,  QTimeEdit::down-button{
    subcontrol-origin: border;
    subcontrol-position: bottom right;
     width: 16px;
    border: 1px solid #3a3939;
}
QSpinBox::up-button:hover, QSpinBox::down-button:hover,
QTimeEdit::up-button:hover , QTimeEdit::down-button:hover
{
    background-color: #adadad;
}


QSpinBox::up-button:pressed, QSpinBox::down-button:pressed,
QTimeEdit::up-button:pressed , QTimeEdit::down-button:pressed
{
    background-color: #828282;
}

QSpinBox::up-arrow  {
    width: 7px;
    height: 7px;
}



/****************************************************/


QComboBox,QDateEdit,QDateTimeEdit,QSpinBox
{
    selection-background-color: #78879b;
    background-color: #201F1F;
    border-style: solid;
    border: 1px solid #3A3939;
    border-radius: 0px;
    padding: 2px;
}

QComboBox:hover,QAbstractSpinBox:hover,QLineEdit:hover,QTextEdit:hover,QPlainTextEdit:hover,QAbstractView:hover,QTreeView:hover,QDateEdit:hover,QDateTimeEdit:hover
{
    border: 1px solid #78879b;
    color: silver;
}

QComboBox:on, QDateEdit:on,QDateTimeEdit:on, QSpinBox:on
{
    background-color: #282a2d;
    padding-top: 2px;
    padding-left: 2px;
    selection-background-color: #4a4a4a;
}

QComboBox QAbstractItemView
{
    background-color: #201F1F;
    border-radius: 0px;
    border: 1px solid #3A3939;
    selection-background-color: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1,
      stop: 0 #78879b, stop: 1 #78879b);
}

QComboBox::drop-down, QDateEdit::drop-down, QDateTimeEdit::drop-down
{
    subcontrol-origin: padding;
    subcontrol-position: top right;
    width: 20px;

    border-left-width: 1px;
    border-left-color: #505050;
    border-left-style: solid;
    border-top-right-radius: 0px;
    border-bottom-right-radius: 0px;
   background-color: #272525;
}
QComboBox::down-arrow , QDateEdit::drop-down, QDateTimeEdit::drop-down{
     image: url(:/arrow_down.png);
}
QComboBox::drop-down:pressed, QDateEdit::drop-down:pressed, QDateTimeEdit::drop-down:pressed
{
   background-color: #404040;
}


QWidget:item:hover
{
    background-color: #504f4f;
    color: white;
    outline: none
}

QWidget:item:selected
{
    background-color: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1,
    stop: 0 #78879b, stop: 1 #78879b);
   outline: none
}


QComboBox QAbstractItemView {
    border: 1px solid darkgray;
    color: white;
    padding: 1px 1px 1px 1px;
    selection-background-color: #505153;
    outline:none;
}



QTabWidget::pane  { /* The tab widget frame */
    border-top: 1px solid #696969;
}

QTabWidget::tab-bar  {
    left: 10px; /* move to the right by 5px */
}

QTabBar::tab  {
    background: #3b3c3e;
    border: 1px solid #696969;
    border-bottom-color: #696969;
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
    min-width: 25ex;
    padding-left: 5px;
    padding-right: 5px;
    padding-top: 3px;
    padding-bottom: 2px;
}

QTabBar::tab:selected, QTabBar::tab:hover  {
    background:#505153;
}

QTabBar::tab:selected  {
    border-color: #696969;
    border-bottom-color: #696969;
}

/*QTabBar::tab:!selected  {
    margin-top: 2px;
}

QTabBar::tab:selected  {

    margin-left: -4px;
    margin-right: -4px;
}*/

QTabBar::tab:first:selected  {
    margin-left: 0;
}

QTabBar::tab:last:selected  {
    margin-right:0;
}

QTabBar::tab:only-one  {
    margin: 0;
}

/******************* PROGRESSBAR***************/
QProgressBar
{
    border: 2px solid grey;
    border-radius: 3px;
    text-align: center;
    color: white;
    font: bold 14px;

}

QProgressBar::chunk
{
    background-color: #5b5a5a;
    width: 2.5px;
    margin: 0.5px;
}

/******************* RADIOBUTTON *****/
QRadioButton::indicator:checked, QRadioButton::indicator:unchecked{
    color: #b1b1b1;
    background-color: #323232;
    border: 1px solid #b1b1b1;
    border-radius: 4px;
}

QRadioButton::indicator:checked
{
    background-color: qradialgradient(
        cx: 0.5, cy: 0.5,
        fx: 0.5, fy: 0.5,
        radius: 1.0,
        stop: 0.25 #b9b8b8,
        stop: 0.3 #323232
    );
}

QRadioButton::indicator
{
    border-radius: 6px;
}

QRadioButton::indicator:hover, QCheckBox::indicator:hover
{
    border: 1px solid #fff;
}

/**************CHECKBOX***************/

QCheckBox::indicator:checked
{
    background-color: qradialgradient(
        cx: 0.5, cy: 0.5,
        fx: 0.5, fy: 0.5,
        radius: 1.0,
        stop: 0.25 #b9b8b8,
        stop: 0.3 #323232
    );

}

QCheckBox:disabled
{
color: #414141;
}

QCheckBox::indicator
{
    color: #b1b1b1;
    background-color: #323232;
    border: 1px solid #b1b1b1;
    width: 9px;
    height: 9px;
}

QCheckBox::indicator:disabled, QRadioButton::indicator:disabled
{
    border: 1px solid #444;
}
QCheckBox, QRadioButton
{
    margin-left: 2px;
    margin-right: 2px;
    margin-top: 2px;
    margin-bottom: 2px;
}

/************** TABLE VIEW **************/
QTableView  {
    selection-background-color: #323232;
}
QTableView QTableCornerButton::section  {
    background: #323232;
    border: 0px ;
}
QHeaderView{
    background: #323232;
}
 QHeaderView::section
{
    background: #514f4f;
    border: 1px solid #262626;
    padding: 2px 3px 2px 3px;
}

QTreeView::branch:has-siblings:!adjoins-item {
     border-image: url(:/vline.png) 0;
 }

 QTreeView::branch:has-siblings:adjoins-item {
     border-image: url(:/more.png) 0;
 }

 QTreeView::branch:!has-children:!has-siblings:adjoins-item {
     border-image: url(:/end.png) 0;
 }

 QTreeView::branch:has-children:!has-siblings:closed,
 QTreeView::branch:closed:has-children:has-siblings {
         border-image: none;
         image: url(:/closed.png);
 }

 QTreeView::branch:open:has-children:!has-siblings,
 QTreeView::branch:open:has-children:has-siblings  {
         border-image: none;
         image: url(:/open.png);
 }


