/*
QMenu {
    background-color: #fafafa;
}

QMenu::icon {
    padding-left: 5px;
}

QMenu::item {
   
}

QMenu::item:selected {
    color: #333;
    background: #e6e6e6;
}

QMenu::separator {
    background-color: #ccc;
    height: 1px;
    margin: 8px 8px;
}
*/

QMenuBar {
    background: palette(window);
    border-bottom: 1px solid #404040;
    color: palette(text);
    /*
    background-color: palette(base);
    border-top: 1px solid #e0e0e0;
    */
}

QHeaderView::section {
    height: 24px;
    background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1,
        stop: 0 palette(midlight),
        stop: 0.05 palette(dark),
        stop: 0.92 palette(shadow),
        stop: 1 palette(shadow));

    /*background-color: palette(button);*/

    color: palette(buttontext);
    padding-top: 0px;
    padding-bottom: 0px;
    padding-left: 24px;
    padding-right: 16px;
    border: 1px solid palette(shadow);
    border-width: 0px 1px 1px 0px;
    border-bottom: 1px solid palette(shadow);
}

QHeaderView::section::first {
    padding-left: 24px;
}

QHeaderView::section::last {
    padding-right: 8px;
    border-right: 0px solid palette(shadow);
}

/* style the sort indicator */
QHeaderView::down-arrow {
    right: 8px;
    subcontrol-origin: content;
    subcontrol-position: center right;
    image: url(:/icons/sort-down-arrow.svg);
}

QHeaderView::up-arrow {
    right: 8px;
    subcontrol-origin: content;
    subcontrol-position: center right;
    image: url(:/icons/sort-up-arrow.svg);
}

QTreeView {
    border-top: 1px solid palette(shadow);
    background-color: palette(base);
}

QTreeView::item {
    padding: 0 0.5em 0 0.5em;
}

QTreeView::item:focus {
    padding-left: 0;
}

QTreeView::item:first:focus {
    padding-left: 0;
}

QTreeView::item:selected:active {
    background: palette(highlight);
    padding: 0;
}

QTreeView::item:selected:!active {
    background: palette(midlight);
    padding: 0;
}

QTreeView QLineEdit {
    background-color: #ffffff;
    border: 1px solid #ececec;
}

QTreeView::branch {
    background-color: palette(base);
    width: 0px;
}

QTreeView::branch:selected:active {
    background: palette(highlight);
}

QTreeView::branch:selected:!active {
    background: palette(midlight);
}

/* same ExtButton2.qml */
QPushButton {
    min-height: 22px;
    border: 1px solid #909090;
    border-radius: 2px;
    background-color: #fefefe;
    padding: 4px 8px;
}

QPushButton:hover {
    background-color: #e6e6e6;
}

QPushButton:focus {
    border-width: 2px;
    border-color: #007cfa;
}

QPushButton:pressed {
    background-color: #d0d0d0;
}

QPushButton:default {
    border-width: 2px;
    border-color: #007cfa;
}


QPushButton:flat {
    border: none;
    background: none;
}

QPushButton:flat:hover {
    background-color: #fafafa;
}


QMessageBox, QInputDialog {
    background-color: #f0f0f0;
}

QSplitter::handle {
    background-color: palette(dark);
}

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

QScrollBar::handle:horizontal
{
      background: QLinearGradient( x1: 0, y1: 0, x2: 1, y2: 0, stop: 0 #ffa02f, stop: 0.5 #d7801a, stop: 1 #ffa02f);
      min-height: 20px;
      border-radius: 2px;
}

QScrollBar::add-line:horizontal {
      border: 1px solid #1b1b19;
      border-radius: 2px;
      background: QLinearGradient( x1: 0, y1: 0, x2: 1, y2: 0, stop: 0 #ffa02f, stop: 1 #d7801a);
      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 #ffa02f, stop: 1 #d7801a);
      width: 14px;
     subcontrol-position: left;
     subcontrol-origin: margin;
}

QScrollBar::right-arrow:horizontal, QScrollBar::left-arrow:horizontal
{
      border: 1px solid black;
      width: 1px;
      height: 1px;
      background: white;
}

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 #343434, stop: 0.2 #303030, stop: 1 #343434);
      width: 16px;
      margin: 26px 0 1px 0;
      /*border: 1px solid #222222;*/
}

QScrollBar::handle:vertical
{
      background: QLinearGradient( x1: 0, y1: 0, x2: 1, y2: 0, stop: 0 palette(button), stop: 0.1 palette(dark), stop: 1 palette(shadow));
      min-height: 20px;
      border-radius: 2px;
}

QScrollBar::add-line:vertical
{
    background: none;
    width: 0;

    /*

      border: 1px solid #1b1b19;
      border-radius: 2px;
      background: QLinearGradient( x1: 0, y1: 0, x2: 1, y2: 0, stop: 0 palette(button), stop: 0.1 palette(dark), stop: 1 palette(shadow));
      height: 14px;
      subcontrol-position: bottom;
      subcontrol-origin: margin;*/
}

QScrollBar::sub-line:vertical
{
    height: 24px;
    background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1,
        stop: 0 palette(midlight),
        stop: 0.05 palette(dark),
        stop: 0.92 palette(shadow),
        stop: 1 palette(shadow));
      subcontrol-position: top;
      subcontrol-origin: margin;
    border: 1px solid palette(shadow);
    border-width: 0px 1px 1px 0px;
    border-bottom: 1px solid palette(shadow);
    /*
    height: 1.3em;
        background: none;
        width: 0;
      border: 1px solid #1b1b19;
      border-radius: 2px;
      background: QLinearGradient( x1: 0, y1: 0, x2: 1, y2: 0, stop: 0 palette(button), stop: 0.1 palette(dark), stop: 1 palette(shadow));
      height: 14px;
      */
}

QScrollBar::up-arrow:vertical, QScrollBar::down-arrow:vertical
{
      border: 1px solid black;
      width: 1px;
      height: 1px;
      background: white;
}

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

QStatusBar {
    background-color: palette(dark);
}

/*QStatusBar::item {
    border: 1px solid red;
    border-radius: 3px;
}*/
