/*
 * Copyright (c) Contributors to the Open 3D Engine Project.
 * For complete copyright and license terms please see the LICENSE at the root of this distribution.
 *
 * SPDX-License-Identifier: Apache-2.0 OR MIT
 *
 */

*
{
    background-color: transparent;
    color: white;
    font-family: "Open Sans";
    font-size: 12px;
}

QMainWindow,
QDialog,
QDockWidget
{
    color: #cccccc;
    background-color: #444444;
}

QLineEdit,
QComboBox
{
    background-color: #CCCCCC;
    color: black;
    font-family: "Open Sans";
    border-radius: 2px;
    border-width: 0px;
    border-color: #e9e9e9;
    font-size: 12px;
    line-height: 16px;
}

[HighlightField=true]
{
    border:3px solid #E57829;
}

[HighlightText=true]
{
    font-weight: bold; 
    color: #E57829;
}

QToolTip
{
    color: black;
}

QFrame#SeparatorLine
{
    color: #2d2d2d;
}

/* QComboBox */
QComboBox
{
    height: 16px;
    padding-left: 4px;
    margin: 1px;
    font-size: 12px;
    background-color: #CCCCCC;
}

QComboBox:hover
{
    margin: 0px;
    border-width: 1px;
    border-style: solid;
    border-radius: 3px;
    border-color: rgba(0, 0, 0, 50);
}

QComboBox:disabled
{
    background-color: #666666;
    color: #999999;
}

QComboBox::drop-down
{
    border-width: 0;
}

QComboBox::down-arrow
{
    width: 16px;
    height: 16px;
    margin-right: 4px;
    image: url(":/stylesheet/img/UI20/combobox-arrow.svg");
}

/* Popup */
QComboBox QAbstractItemView
{
    background-color: #222222;
    padding: 0px;
    outline: none; /* Disable focus rect */
    show-decoration-selected: 1;
}

QComboBox QAbstractItemView::item
{
    color: #FFFFFF;
}

QComboBox QAbstractItemView::item:selected
{
    background-color: #444444;
}

QComboBox QAbstractItemView::item:disabled
{
    color: #555555;
}

/* QPushButton */
QPushButton
{
    border: 1px solid #3D000000;
    border-radius: 4px;
    color: #ffffff;
    font-family: "Open Sans";
    font-size: 12px;
}

QPushButton:hover,
QPushButton:pressed
{
    color: #FFFFFF;
}

QPushButton:disabled
{
    border: 1px solid #3D000000;
    color: #999999;
}

QPushButton#Primary
{
    background-color: qlineargradient(x1:0, y1:0, x2:1, y2:1, stop:0 #0095F2, stop:1 #0073BB);
}

QPushButton#Primary:hover
{
    background-color: qlineargradient(x1:0, y1:0, x2:1, y2:1, stop:0 #44BAFF, stop:1 #4AB2F8);
    border: 1px solid #94D2FF;
}

QPushButton#Primary:pressed
{
    background-color: #0073BB;
    border: 1px solid #1E70EB;
}

QPushButton#Primary:disabled
{
    background-color: #7092A7;
}

QPushButton#Secondary
{
    background-color: qlineargradient(x1:0, y1:0, x2:1, y2:1, stop:0 #777777, stop:1 #666666);
}

QPushButton#Secondary:hover
{
    background-color: qlineargradient(x1:0, y1:0, x2:1, y2:1, stop:0 #888888, stop:1 #777777);
    border: 1px solid #FFFFFF;
}

QPushButton#Secondary:pressed
{
    background-color: #444444;
    border: 1px solid #FFFFFF;
}

QPushButton#Secondary:disabled
{
    background-color: #666666;
}

QPushButton:flat
{
    border: none;
    background-color: transparent;
}

/* QTableView & QTreeView */
QTableView
{
    qproperty-showGrid: false;
}

QTableView,
QTreeView
{
    alternate-background-color: rgb(77, 77, 77);
    background-color: transparent;
    selection-background-color: rgb(101, 101, 101);
    selection-color: #ffffff;
    show-decoration-selected: 1;
    border: 1px solid #10ffffff;
}

QTableView QHeaderView::down-arrow,
QTreeView QHeaderView::down-arrow
{
    width: 12px;
    height: 12px;
    margin-right: 4px;
    image: url(":/stylesheet/img/indicator-arrow-down.svg");
}

QTableView QHeaderView::up-arrow,
QTreeView QHeaderView::up-arrow
{
    margin-right: 4px;
    image: url(":/stylesheet/img/indicator-arrow-up.svg");
}

QTableView::item,
QTreeView::item
{
    height: 24px;
    border: none;
    margin: 4px;
}

QTableView::item:selected,
QTreeView::branch:selected,
QTreeView::item:selected
{
    background: rgb(101, 101, 101);
}

QTableView::item:hover,
QTreeView::branch:hover,
QTreeView::item:hover
{
    background: rgb(90, 90, 90);
}

QTableView QHeaderView::section,
QTreeView QHeaderView::section
{
    height: 24px;

    background: #2d2d2d;
    border: none;

    font-size: 13px;
    font-style: normal;

    padding-left: 7px;
}

QTableView QHeaderView::section::first,
QTreeView QHeaderView::section::first
{
    border-right: 0.5px solid white;
}

QTableView QHeaderView::section::last,
QTreeView QHeaderView::section::last
{
    border-left: 0.5px solid white;
}

QTableView QHeaderView::section::middle,
QTreeView QHeaderView::section::middle
{
    border-right: 0.5px solid white;
    border-left: 0.5px solid white;
}

QTreeView::indicator
{
    margin: 0px;
    width: 16px;
    height: 16px;
    margin-left: -3px;
}

QTreeView::branch:open:has-children
{
    image: url(:/TreeView/open.svg);
    padding: 10px 4px;
}

QTreeView::branch:closed:has-children
{
    image: url(:/TreeView/closed.svg);
    padding: 8px 6px;
}

/* QScrollBar */
QScrollBar
{
    border: 2px solid rgba(50, 50, 50, 70%);
    background: none;
    margin: 0px;
}

QScrollBar:vertical
{
    width: 8px;
}

QScrollBar:horizontal
{
    height: 8px;
}

QScrollBar::handle
{
    border: 0px solid #000000;
    border-radius: 2px;
    background-color: rgba(136, 136, 136, 64%);
}

QScrollBar::handle:vertical {
    min-height: 32px;
}

QScrollBar::handle:horizontal {
    min-width: 32px;
}

QScrollBar::add-line,
QScrollBar::sub-line
{
     border: none;
     background: none;
     color: none;
}

QScrollBar::add-line:horizontal,
QScrollBar::sub-line:horizontal
{
     width: 0px;
}

QScrollBar::add-line:vertical,
QScrollBar::sub-line:vertical
{
     height: 0px;
}

/* scrollbar hovered */

QScrollBar:hover
{
    border: 1px solid rgba(136, 136, 136, 64%);
    background-color: rgba(255, 255, 255, 12%);
    margin: 0px;
}

QScrollBar::handle:hover
{
    border-radius: 3px;
    background-color: #999999;
}

/* NotificationFrame */
NotificationFrame
{
    background-color: transparent;
    border: 1px solid #E57829;
    border-radius: 2px;
    margin: 4px;
    padding: 4px;
}

NotificationFrame QLabel#NotificationIcon
{
    padding-left: 0px;
    padding-right: 15px;
}

NotificationFrame QLabel#NotificationTitle
{
    font-size: 15px;
    font-weight: bold;
}

NotificationFrame#ErrorPage
{
    background-color: transparent;
    border: none;
}

NotificationFrame#ErrorPage QLabel#NotificationIcon
{
    qproperty-alignment: "AlignTop";
}

NotificationFrame#ErrorPage QLabel#NotificationTitle
{
    padding-top: 0px;
    text-align: top;
}

NotificationFrame#ErrorPage QLabel#NotificationContent
{
    padding-top: 0px;
    text-align: top;
    qproperty-wordWrap: false;
}
