
@def base_highlight_color rgba(255, 255, 0, 0.80);

DockWidgetTitle
{
    padding: 0px;
    margin-bottom: 2px;
}

DockAreaDragTitle
{
    background-color: palette(dark);
}

DockWidgetTitle[active="true"]
{
    background-color: palette(base);
}

DockWidgetTitle > QPushButton,
DockAreaDragTitle > QPushButton
{
    min-width: 20px;
    min-height: 20px;
}

DockWidgetTitle > QPushButton:!hover,
DockAreaDragTitle > QPushButton:!hover
{
    border: none;
}

chooser_widget_t,
standalone_dirtree_widget_t
{
    qproperty-highlight-bg-default: ${base_highlight_color};
    qproperty-highlight-bg-selected: rgba(0, 192, 192, 0.80);

    qproperty-cut-text-color-default : silver;
    qproperty-cut-text-color-selected : grey;
}

chooser_widget_t[os-dark-theme="true"],
standalone_dirtree_widget_t[os-dark-theme="true"]
{
    qproperty-highlight-bg-default: red;
    qproperty-highlight-bg-selected: pink;

    qproperty-cut-text-color-default : darkgrey;
    qproperty-cut-text-color-selected : grey;
}

log_widget_t
{
    color            : black;
    background-color : white;
}

log_widget_t[os-dark-theme="true"]
{
    color: #ddd;
    background-color: #2d2d2d;
}

text_area_t
{
    qproperty-keyword1-fg: blue;
    qproperty-keyword1-weight: 0;
    qproperty-keyword1-italic: 0;

    qproperty-keyword2-fg: purple;
    qproperty-keyword2-weight: 0;
    qproperty-keyword2-italic: 0;

    qproperty-keyword3-fg: red;
    qproperty-keyword3-weight: 0;
    qproperty-keyword3-italic: 0;

    qproperty-string-fg: darkred;
    qproperty-string-weight: 0;
    qproperty-string-italic: 0;

    qproperty-comment-fg: darkgreen;
    qproperty-comment-weight: 0;
    qproperty-comment-italic: 1;

    qproperty-preprocessor-fg: blue;
    qproperty-preprocessor-weight: 1;
    qproperty-preprocessor-italic: 0;

    qproperty-number-fg: darkcyan;
    qproperty-number-weight: 1;
    qproperty-number-italic: 0;

    qproperty-user1-fg: darkblue;
    qproperty-user1-weight: 0;
    qproperty-user1-italic: 0;

    qproperty-user2-fg: dimgrey;
    qproperty-user2-weight: 0;
    qproperty-user2-italic: 0;

    qproperty-user3-fg: indigo;
    qproperty-user3-weight: 0;
    qproperty-user3-italic: 0;

    qproperty-user4-fg: sienna;
    qproperty-user4-weight: 0;
    qproperty-user4-italic: 0;
}

text_area_t[os-dark-theme="true"]
{
    qproperty-user1-fg: darkturquoise;
}

text_area_t text_area_margin_widget_t
{
    color: grey;
    qproperty-header-color: dimgrey;
}

text_area_dialog_t QLabel#counter_label
{
    color: grey;
}

text_area_dialog_t QLabel#counter_label[invalid=true]
{
    color: red;
}

QWidget[field_validity=false]
{
    border-color: red;
    border-width: 1.2px;
    border-style: inset;
}

.hint
{
    padding: 12px;
    margin: 0 12px 12px 12px;
    background-color: #f0f0D0;
    border-color: #d0d020;
    border-width: 1.2px;
    border-radius: 12px;
    border-style: solid;
    text-align: center;
    color: black;
}

@ifdef __MAC__
/* drawing borders on macOS seems to be glitchy with Qt 5.15.2. see IDA-3041 */
DockWidgetTitle > QPushButton,
DockAreaDragTitle > QPushButton
{
    border: none;
}
@endif
