/* 2013-2018 Florian Joncour.
    Cette feuille de style est un élément du logiciel Zetta6 et est soumis à la licence relative aux donnés. */

* {
    color: #dcdcdc;
    background-color: #2d2d2d;
    selection-color: #dcdcdc;
    selection-background-color: #2d2d2d;
}

*:disabled
{
    color: #505050;
}

QPushButton:focus, QTabBar::tab:focus, QListView, QListWidget
{
    outline: none;
}

QFrame#separateur
{
    background: #505050;
    border:none;
    width:1px;
    margin: 5px;
}

QPushButton
{
    background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #505050, stop: 0.5 #2d2d2d);
    min-width: 70px;
}

QPushButton#aide
{
    min-height: 12px;
    min-width: 12px;
    max-height: 12px;
    max-width: 12px;
}

QPushButton
{
    padding : 4px;
    border: 1px solid #505050;
    border-radius: 2px;
}

QPushButton:hover
{
    border-style: outset;
    border-radius: 2px;
    border-width: 2px;
    border-color: #828282;
    color: #03D3D3;
    background-color : #2d2d2d;
}

QPushButton:default
{
    border-color: white;
}

QToolButton
{
    border-style: outset;
    border-radius: 2px;
    border-width: 2px;
    border-color: transparent;
}

QToolButton:hover
{
    border-color: #828282;
    color: #03D3D3;
    background-color : #2d2d2d;
}

QPushButton::pressed, QToolButton:pressed, QToolButton:checked
{
    background-color : #505050;
}

QMainWindow::separator, QToolBar::separator
{
    background: #505050;
    width: 1px;
    height: 1px;
    margin: 5px;
}

QComboBox QAbstractItemView
{
    margin-top: 0px;
    margin-bottom:0px;
    padding-bottom: 0px;
}

QComboBox, QSpinBox, QDoubleSpinBox
{
    text-align: center;
}

QComboBox
{
    padding: 3px 0px 1px 3px;
    border: 1px solid transparent;
    border-radius:2px;
    background-color: #3b3b3b;
    selection-background-color: #2d2d2d;
    selection-color: #03D3D3;
}

QComboBox:hover
{
    selection-background-color: #505050;
    border: 1px solid transparent;
    border-radius:2px;
    background-color: #505050;
    color: #03D3D3;
}

QComboBox::drop-down
{
    padding-right: 5px;
    subcontrol-origin: padding;
    subcontrol-position: center right;
    width: 10px;
    border: none;
    image: url(:/icones/fleche_bas.png);
}

QSpinBox, QDoubleSpinBox, QLineEdit
{
    padding: 1px;
    background-color: #2d2d2d;
    color: #dcdcdc;
    border-width: 3;
    border-image: url(:/icones/bordure.png) 3 3 3 3;
    selection-background-color: #2d2d2d;
    selection-color: #03D3D3;
}

QSpinBox:hover, QDoubleSpinBox:hover, QLineEdit:hover
{
    padding: 1px;
    background-color: #2d2d2d;
    color:#dcdcdc;
    border-width: 3;
    border-image: url(:/icones/bordure_surligne.png) 3 3 3 3;
    color: #03D3D3;
}

QSpinBox::up-arrow, QDoubleSpinBox::up-arrow
{
    image: url(:/icones/b_plus_c.png);
    width: 8px;
    height: 8px;
}

QSpinBox::down-arrow, QDoubleSpinBox::down-arrow
{
    image: url(:/icones/b_moins_c.png);
    width: 8px;
    height: 8px;
}

QSpinBox::up-button, QDoubleSpinBox:up-button
{
    padding-right: 1px;
    subcontrol-origin: padding;
    subcontrol-position: right;
    width: 18px;
    height:18px;
    background-color : #2d2d2d;
    border-style: outset;
    border-radius: 2px;
    border-width: 1px;
    border-color: #505050
}

QSpinBox::down-button, QDoubleSpinBox:down-button
{
    padding-left: 1px;
    subcontrol-origin: padding;
    subcontrol-position: left;
    width: 18px;
    height: 18px;
    background-color : #2d2d2d;
    border-style: outset;
    border-radius: 2px;
    border-width: 1px;
    border-color: #505050
}

QSpinBox::up-button:hover, QSpinBox::down-button:hover, QDoubleSpinBox::up-button:hover, QDoubleSpinBox::down-button:hover
{
    border-style: outset;
    border-radius: 2px;
    border-width: 1px;
    border-color: #828282;
    background-color : #2d2d2d;
}

QSpinBox::up-button:pressed, QDoubleSpinBox::up-button:pressed
{
    background-color : #505050;
}

QSpinBox::down-button:pressed, QDoubleSpinBox::down-button:pressed
{
    background-color : #505050;
}

QSpinBox::up-button:disabled, QSpinBox::up-button:off, QDoubleSpinBox::up-button:disabled, QDoubleSpinBox::up-button:off, QSpinBox::down-button:disabled, QSpinBox::down-button:off, QDoubleSpinBox::down-button:disabled, QDoubleSpinBox::down-button:off
{
    background-color : none; border:none;
}

QSpinBox::up-arrow:disabled, QSpinBox::up-arrow:off, QSpinBox::down-arrow:disabled, QSpinBox::down-arrow:off, QDoubleSpinBox::up-arrow:disabled, QDoubleSpinBox::up-arrow:off, QDoubleSpinBox::down-arrow:disabled, QDoubleSpinBox::down-arrow:off
{
    color: none;
    background-color : none;
    image:none;
}

/* QGraphicsView:hover, QGraphicsView:focus, */
QToolBar, QToolTip
{
/*    border-style: outset;
    border-radius: 1px;
    border-width: 2px;
    border-color: #505050;*/

    border: 3px solid #505050;
}

QToolTip
{
    color: #dcdcdc;
    background-color: #2d2d2d;
    padding: 2px;
}

QProgressBar
{
    border: 2px solid grey;
    border-radius: 2px;
    text-align: center;
}

QProgressBar::chunk
{
    background-color: #7b7b7b;
    width: 20px;
}

QCheckBox::hover
{
    color: #03D3D3;
}

QCheckBox::indicator, QMenu::indicator
{
    width: 13px;
    height: 13px;
}

QCheckBox::indicator:unchecked, QMenu::indicator:non-exclusive:unchecked
{
    image: url(:/icones/chk_0.png);
}

QCheckBox::indicator:unchecked:hover, QMenu::indicator:non-exclusive:unchecked:selected
{
    image: url(:/icones/chk_1.png);
}

QCheckBox::indicator:unchecked:pressed
{
    image: url(:/icones/chk_2.png);
}

QCheckBox::indicator:checked, QMenu::indicator:non-exclusive:checked
{
    image: url(:/icones/chk_3.png);
}

QCheckBox::indicator:checked:hover, QMenu::indicator:non-exclusive:checked:selected
{
    image: url(:/icones/chk_4.png);
}

QCheckBox::indicator:checked:pressed
{
    image: url(:/icones/chk_2.png);
}

QDockWidget
{
    border: 3px solid #505050;
}

QDockWidget::title
{
    text-align: center;
}

QDockWidget::close-button, QDockWidget::float-button
{
    border: 1px solid transparent;
    border-radius: 3px;
    background: #ffffff;
    padding: 0px;
}

QDockWidget::close-button:hover, QDockWidget::float-button:hover
{
    padding: -1px -1px -1px -1px;
}

/*QTabWidget::pane
{
    border:none;
}*/

QTabBar
{
/*    border-color: #dcdcdc;
    border-bottom-color: transparent;
    */
    border:none;
}

QTabBar::close-button
{
    image: url(:/icones/b_ferme.png);
    width: 11px;
    height: 11px;
    subcontrol-position: right;
}

QTabBar::close-button:hover
{
    image: url(:/icones/b_ferme_surligne.png);
    width: 11px;
    height: 11px;
}

QTabBar::tab
{
    text-align: left;
    background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #2d2d2d, stop: 0.0 #505050, stop: 0.1 #2d2d2d, stop: 0.4 #505050);
/*     border: 2px solid #C4C4C3; */
    border: 3px solid #505050;
    border-bottom-color: transparent;
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
    min-width:80px;
    padding: 2px;
/*     padding-left: 5px; */
/*     padding-right: -5px; */
}

QTabBar::tab:hover
{
    color: #03D3D3;
}

QTabBar::tab:selected
{
    border-color: #dcdcdc;
    border-bottom-color: #2d2d2d;
    background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #505050, stop: 0.0 #2d2d2d, stop: 0.1 #505050, stop: 0.4 #2d2d2d);
}

QTabBar::tab:!selected
{
    margin-top: 4px;
    margin-left: 0px;
    margin-right: 0px;
}

QTabBar::tab:selected
{
/*     margin-left: -4px; */
/*     margin-right: -4px; */
}

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

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

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

QTabWidget::tab-bar
{
    border-color : transparent;
    left: 5px;
    right: 0px;
/*     alignment: center; */
}

QToolBar
{
    spacing: 1px;
}

QToolBar::handle
{
    width:10px;
    height:10px;
    image:none;
}

QScrollBar::handle:horizontal:hover, QScrollBar::handle:vertical:hover
{
    border-color: transparent;
}

QScrollBar::right-arrow:horizontal:hover, QScrollBar::left-arrow:horizontal:hover, QScrollBar::up-arrow:vertical:hover, QScrollBar::down-arrow:vertical:hover
{
    border: 1px solid #505050;
    border-radius: 2px;
}

QScrollBar::handle:vertical:pressed, QScrollBar::handle:horizontal:pressed, QScrollBar::right-arrow:horizontal:pressed, QScrollBar::left-arrow:horizontal:pressed, QScrollBar::up-arrow:vertical:pressed, QScrollBar::down-arrow:vertical:pressed
{
    border: 1px solid #dcdcdc;
    border-radius: 2px;
}

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: 16px;
    margin: 0px 16px 0 16px;
}

QScrollBar::add-line:horizontal
{
    border: 1px solid #1b1b19;
    border-radius: 2px;
    background: QLinearGradient( x1: 0, y1: 0, x2: 1, y2: 0, stop: 0 #505050, stop: 1 #2d2d2d);
    width: 14px;
    subcontrol-position: right;
    subcontrol-origin: margin;
}

QScrollBar::sub-line:horizontal
{
    border: 1px solid #1b1b19;
    border-radius: 2px;
    background: QLinearGradient( x1: 0, y1: 0, x2: 1, y2: 0, stop: 0 #505050, stop: 1 #2d2d2d);
    width: 14px;
    subcontrol-position: left;
    subcontrol-origin: margin;
}

QScrollBar::right-arrow:horizontal
{
    image: url(:/icones/fleche_droite.png); width: 10px; height: 10px;
}

QScrollBar::left-arrow:horizontal
{
    image: url(:/icones/fleche_gauche.png); width: 10px; height: 10px;
}

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: 16px;
    margin: 16px 0 16px 0;
    border: 1px solid #222222;
}

QScrollBar::handle:horizontal, QScrollBar::handle:vertical
{
    border: 1px solid #2d2d2d;
    border-radius: 2px;
    background-color: #505050;
    min-height: 20px;
    border-radius: 2px;
}

QScrollBar::add-line:vertical
{
    border: 1px solid #1b1b19;
    border-radius: 2px;
    background: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #505050, stop: 1 #2d2d2d);
    height: 14px;
    subcontrol-position: bottom;
    subcontrol-origin: margin;
}

QScrollBar::sub-line:vertical
{
    border: 1px solid #1b1b19;
    border-radius: 2px;
    background: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #2d2d2d, stop: 1 #505050);
    height: 14px;
    subcontrol-position: top;
    subcontrol-origin: margin;
}

QScrollBar::up-arrow:vertical, QScrollBar::down-arrow:vertical
{
    image: url(:/icones/fleche_haut.png); width: 10px; height: 10px;
}

QScrollBar::down-arrow:vertical
{
    image: url(:/icones/fleche_bas.png); width: 10px; height: 10px;
}

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

QMenu, QWidget#cadre
{
    border: 3px solid #505050;
}

QMenu::separator
{
    height: 2px;
    margin: 8px;
    background: #505050;
    margin-left: 30px;
    margin-right: 30px;
}

QMenu::item
{
    padding: 4px 25px 4px 30px;
}

QMenu::item:default
{
    margin-top:8px;
    font: bold;
}

QMenu::item, QListWidget::item, QListView::item, QTreeView::item
{
    background-color: transparent;
    border: 1px solid transparent;
}

QMenu::item:selected, QListWidget::item:hover, QListView::item:hover, QTreeView::item:hover
{
/*    background-color: transparent;
    color: #03D3D3;*/

/*    border-style: outset;
    border-radius: 0px;
    border-width: 1px;
    border-color: #828282;*/
    color: #03D3D3;
    background-color : #2d2d2d;
}

QListView::item:selected, QTreeView::item:selected
{
    border: 1px solid #567dbc;
    color: #03D3D3;
}

QTreeView, QListView
{
    show-decoration-selected: 1;
}
