/******************************************************************
class QTableView
******************************************************************/
QTableView {
    alternate-background-color: #e1e3e5;
}

QTableView {
    selection-background-color: #5b658a;
    qproperty-alternatingRowColors: 1;
    color: black;
    padding: 0px; 
}

QTableView::item{
    height: 10px;
    line-height: 10px;
    max-height: 10px;
    min-height: 10px;
    font-size:5px;
    padding-bottom: 0px;
    padding-top: 0px;
    padding-left: 0px;
    padding-right: 1px;
    margin: 0px;
}
QTableView::item:selected {
    background: #5b658a;
    color: white;
}

QTableView::item:selected:active{
    background: #5b658a;
    color: white;
}

QTableView::item:selected:!active {
    background: #5b658a;
    color: white;
}


/******************************************************************
class QLabel
******************************************************************/
QLabel {
    border: none;
    border-image: none;
    padding: 0;
    background: none;
}

/******************************************************************
class QRadioButton
******************************************************************/
/*
QRadioButton {
    spacing: 5px;
}

QRadioButton::indicator {
    width: 13px;
    height: 13px;
}

QRadioButton::indicator::unchecked {
    image: url(:/Resources/foo_radio1.png);
}

QRadioButton::indicator:unchecked:hover {
    image: url(:/Resources/foo_radio2.png);
}

QRadioButton::indicator:unchecked:pressed {
    image: url(:/Resources/foo_radio3.png);
}

QRadioButton::indicator::checked {
    image: url(:/Resources/foo_radio4.png);
}

QRadioButton::indicator:checked:hover {
    image: url(:/Resources/radiobutton_checked_hover.png);
}

QRadioButton::indicator:checked:pressed {
    image: url(:/Resources/radiobutton_checked_pressed.png);
}

QRadioButton:hover {
    background-color: #05B8CC;
}
*/

/******************************************************************
class QCheckBox
******************************************************************/
QCheckBox {
    spacing: 5px;
}

QCheckBox::indicator {
    width: 13px;
    height: 13px;
}

QCheckBox::indicator:unchecked {
    image: url(:/Resources/checkbox_unchecked.png);
}

QCheckBox::indicator:unchecked:hover {
    image: url(:/Resources/checkbox_unchecked_hover.png);
}

QCheckBox::indicator:unchecked:pressed {
    image: url(:/Resources/checkbox_unchecked_pressed.png);
}

QCheckBox::indicator:checked {
    image: url(:/Resources/checkbox_checked.png);
}

QCheckBox::indicator:checked:hover {
    image: url(:/Resources/checkbox_checked_hover.png);
}

QCheckBox::indicator:checked:pressed {
    image: url(:/Resources/checkbox_checked_pressed.png);
}


/******************************************************************
class QSpinBox
******************************************************************/
QSpinBox { 
    padding-right: 15px;
    border: 1px solid gray;
}

QSpinBox::up-button {
    subcontrol-origin: border;
    subcontrol-position: top right;

    width: 16px; /* 16 + 2*1px border-width = 15px padding + 3px parent border */
    border-image: url(:/Resources/spinup.png) 1;
    border-width: 1px;
}

QSpinBox::up-button:hover {
    border-image: url(:/Resources/spinup_hover.png) 1;
}

QSpinBox::up-button:pressed {
    border-image: url(:/Resources/spinup_pressed.png) 1;
}

QSpinBox::down-button {
    subcontrol-origin: border;
    subcontrol-position: bottom right;

    width: 16px;
    border-image: url(:/Resources/spindown.png) 1;
    border-width: 1px;
    border-top-width: 0;
}

QSpinBox::down-button:hover {
    border-image: url(:/Resources/spindown_hover.png) 1;
}

QSpinBox::down-button:pressed {
    border-image: url(:/Resources/spindown_pressed.png) 1;
}


/******************************************************************
class QGroupBox
******************************************************************/
QGroupBox {
    border: 1px solid #383c42;
    border-radius: 5px;
    margin-top: 2ex;
}

QGroupBox::title {
    subcontrol-origin: margin;
    subcontrol-position: top left;
    left:15px;
}

QGroupBox::indicator {
    width: 13px;
    height: 13px;
}

QGroupBox::indicator:unchecked {
    image: url(:/Resources/checkbox_unchecked.png);
}


/******************************************************************
class QListView
******************************************************************/
QListView {
   show-decoration-selected: 1; /* make the selection span the entire width of the view */
   border: 1px solid #6a6ea9;
}

QListView::item:alternate {
    background: #EEEEEE;
}

QListView::item:selected {
    border: 1px solid #2b0b21;
}

QListView::item:selected:!active {
    background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #ABA1E5, stop: 1 #8588B2);
}

QListView::item:selected:active {
    background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #1a62a9, stop: 1 #888dd9);
}

QListView::item:hover {
    background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #FAFBFE, stop: 1 #DCDEF1);
}
 
QListView::item{
    height:32px;
}
 
/******************************************************************
class QProgressBar
******************************************************************/
QProgressBar {
   border: 2px solid grey;
   border-radius: 5px;
   text-align: center;
}

QProgressBar::chunk {
    background-color: #05B8CC;
    width: 20px;
}
 

/******************************************************************
class QPushButton
******************************************************************/
/*
QPushButton{
    background-image: url(:/Resources/woodbackground.png);
    background-attachment: scroll;
    border: 1px solid #6a6ea9;
}

QPushButton:hover {
    border: 1px solid #6a1e19;
    background-image: url(:/Resources/timelinePillGreen.png);
}
*/


/******************************************************************
class QToolButton
******************************************************************/
QToolButton{
    background-image: url(:/Resources/woodbackground.png);
    background-attachment: scroll;
    border: 1px solid #6a6ea9;
}

QToolButton:hover {
    border: 1px solid #6a1e19;
    background-image: url(:/Resources/timelinePillGreen.png);
}


/******************************************************************
class QTabWidget
******************************************************************/
QTabWidget::pane { /* The tab widget frame */
    border-top: 1px solid #C2C7CB;
}

QTabWidget::tab-bar {
    left: 5px; /* move to the right by 5px */
}

/* Style the tab using the tab sub-control. Note that it reads QTabBar _not_ QTabWidget */
QTabBar::tab {
    background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
                                stop: 0 #E1E1E1, stop: 0.4 #DDDDDD,
                                stop: 0.5 #D8D8D8, stop: 1.0 #D3D3D3);
    border: 1px solid #C4C4C3;
    border-bottom-color: #C2C7CB; /* same as the pane color */
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    min-width: 8ex;
    padding: 2px;
}

QTabBar::tab:selected, QTabBar::tab:hover {
    background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
                                stop: 0 #fa1a1a, stop: 0.4 #f4f4f4,
                                stop: 0.5 #e7e7e7, stop: 1.0 #fafafa);
}

QTabBar::tab:selected {
    border-color: #9B9B9B;
    border-bottom-color: #C2C7CB; /* same as pane color */
}

QTabBar::tab:!selected {
    margin-top: 2px; /* make non-selected tabs look smaller */
}
 
 
/******************************************************************
class QToolBox
******************************************************************/
QToolBox::tab {
    background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
                                stop: 0 #E1E1E1, stop: 0.4 #DDDDDD,
                                stop: 0.5 #D8D8D8, stop: 1.0 #D3D3D3);
    border-radius: 5px;
    color: darkgray;
}

QToolBox::tab:selected { /* italicize selected tabs */
    font: italic;
    color: white;
}

 
/******************************************************************
class QTreeView
******************************************************************/
QTreeView {
    alternate-background-color: yellow;
    show-decoration-selected: 1;
}

QTreeView::item {
    border: 1px solid #d9d9d9;
    border-top-color: transparent;
    border-bottom-color: transparent;
}

QTreeView::item:hover {
    background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #e7effd, stop: 1 #cbdaf1);
    border: 1px solid #bfcde4;
}

QTreeView::item:selected {
    border: 1px solid #567dbc;
}

QTreeView::item:selected:active{
    background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #6ea1f1, stop: 1 #567dbc);
}

QTreeView::item:selected:!active {
    background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #6b9be8, stop: 1 #577fbf);
}

QTreeView::branch {
    background: palette(base);
}

QTreeView::branch:has-siblings:!adjoins-item {
    background: cyan;
}

QTreeView::branch:has-siblings:adjoins-item {
    background: red;
}

QTreeView::branch:!has-children:!has-siblings:adjoins-item {
    background: blue;
}

QTreeView::branch:closed:has-children:has-siblings {
    background: pink;
}

QTreeView::branch:has-children:!has-siblings:closed {
    background: gray;
}

QTreeView::branch:open:has-children:has-siblings {
    background: magenta;
}

QTreeView::branch:open:has-children:!has-siblings {
    background: green;
}
    
QTreeView::branch:has-siblings:!adjoins-item {
    border-image: url(:/Resources/vline.png) 0;
}

QTreeView::branch:has-siblings:adjoins-item {
    border-image: url(:/Resources/branch-more.png) 0;
}

QTreeView::branch:!has-children:!has-siblings:adjoins-item {
    border-image: url(:/Resources/branch-end.png) 0;
}

QTreeView::branch:has-children:!has-siblings:closed,
QTreeView::branch:closed:has-children:has-siblings {
    border-image: none;
    image: url(:/Resources/branch-closed.png);
}

QTreeView::branch:open:has-children:!has-siblings,
QTreeView::branch:open:has-children:has-siblings  {
    border-image: none;
    image: url(:/Resources/branch-open.png);
}


/******************************************************************
class QScrollBar
******************************************************************/
/*
QScrollBar::vertical {
    border:1px solid #0084d6;
    width: 17px;
    background: #abacb0;
    margin-top:4px;
    margin-bottom:3px;
}

QScrollBar::handle:vertical {
    min-width:15px;
    border: 1px solid white;
    border-radius:5px;
    margin-top:14px;
    margin-bottom:14px;
    background: qlineargradient(x1: 0, y1: 0, x2: 1, y2: 0, stop: 0 #0084d6, stop: 1 01446f);
}


QScrollBar::handle:vertical::hover{
    background: qlineargradient(x1: 0, y1: 0, x2: 1, y2: 0, stop: 0 #0084d6, stop: 1 01446f);
    border:1px solid #E0E0E0;
}

QScrollBar::add-line:vertical {
    height: 10px;
    background:#121215;
    subcontrol-position: bottom;
}

QScrollBar::sub-line:vertical {
    height: 10px;
    background:#121215;
    subcontrol-position: top;
}

QScrollBar::add-page:vertical, QScrollBar::sub-page:vertical {
    background: none;
}

QScrollBar:horizontal {
    height:17px;
    border:1px solid #0084d6;
    margin:0px,0px,0px,0px;
    margin-left:5px;
}

QScrollBar::handle:horizontal {
    height:17px;
    min-width:20px;
    border:1px solid white;
    margin-left:11px;
    margin-right:14px;
    border-radius:5px;
    background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #0084d6, stop: 0.5 #01446f);
}

QScrollBar::handle:horizontal:hover {
    background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #0084d6, stop: 0.5 #01446f);
    border:1px solid #E0E0E0;
}

QScrollBar::add-line:horizontal {
    width:10px;
    background:#121215;
    subcontrol-position:right;
}

QScrollBar::sub-line:horizontal {
    width:10px;
    background:#121215;
    subcontrol-position:left;
}

QScrollBar::add-page:horizontal {
    background: none;
}

QScrollBar::sub-page:horizontal {
    background: none;
}

QScrollBar::left-arrow:horizontal {
    background-image:url(:/Resources/leftArrow.png);
    background-repeat:no-repeat;
    min-width:20px;
}

QScrollBar::right-arrow:horizontal {
    background-image:url(:/Resources/rightArrow.png);
    background-repeat:no-repeat;
    min-width:20px;
}

QScrollBar::up-arrow:vertical {
    image:url(:/Resources/upArrow.png);
    min-height:20px;
    background-repeat:no-repeat;
}

QScrollBar::down-arrow:vertical {
    image:url(:/Resources/bottomArrow.png);
    min-height:20px;
    background-repeat:no-repeat;
}
*/


/******************************************************************
class QComboBox
******************************************************************/
QComboBox::drop-down {
    margin-top: 8px;
    background-image: url(:/Resources/drop-down.png);
    background-repeat: no-repeat;
}

QComboBox{
    border-radius:2px;
    padding:2px;
    background-color:#ffffff;
    font-size:12px;
}

QCombobox QAbstractItemView::item{
    font-size:20px;
}


/******************************************************************
class QHeaderView
******************************************************************/
QHeaderView::section {
    margin-bottom:8px;
    font-size:9px;
    font-weight:normal;
    padding-left: 4px;
     border-left: 1px solid #808080;
    border-top: 1px solid #808080;
    border-bottom: 1px solid #8b949c;
    min-height: 14px;
    background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #ffffff, stop: 0.0625 #ffffff, stop: 0.125 #eeeff3, stop: 1 #cfd0d6);
}
