/* Material-dark theme created by Alfredo Monclus 2021 */
@define-color text #e2e2e2;
@define-color bg #121212;
@define-color buttons-bg #090909;
@define-color color1 #d46900;
@define-color color2 #ed3c63;
@define-color color3 #849900;
@define-color color4 #007db4;

@define-color echo #006412;
@define-color warning #EF6C00;
@define-color error #B71C1C;

@define-color active #d46900;
@define-color active-dark #282828;
@define-color lines #a2a2a2;
@define-color slider #d81549;
@define-color popup #006064;

* {
    color: @text;
}

list row,
treeview.view,
button,
window {
    background-color: @bg;
}

button.color1 {
    background-color: @buttons-bg;
    border-color: @color1;
    border-radius: 1em;
}

button.color2 {
    background-color: @buttons-bg;
    border-color: @color2;
    border-radius: 1em;
}

button.color3 {
    background-color: @buttons-bg;
    border-color: @color3;
    border-radius: 1em;
}

button.color4 {
    background-color: @buttons-bg;
    border-color: @color4;
    border-radius: 1em;
}

.button_active {
    background-color: @active-dark;
    border-width: .25em;
    border-radius: 1em;
}

button.color1:active,
button.color2:active,
button.color3:active,
button.color4:active,
button.update:active,
button.invalid:active,
.dialog button:active {
    border-style: none;
}

button.update,
button.invalid {
    background-color: @buttons-bg;
    border: 0;
    border-bottom: .3em solid;
    border-radius: .75em;
}

button.update {
    border-bottom-color: @echo;
}

button.invalid {
    border-bottom-color: @error;
}

combobox box button {
    background-color: @active-dark;
    border-color: @bg;
}

treeview.view check,
switch {
    background-color: @active-dark;
}

treeview.view check:checked,
switch:checked {
    background-color: @echo;
}

entry {
    background-color: @active-dark;
    border-color: @active-dark;
}

label {
    color: @text;
}

menu {
    background-color: @bg;
    border-color: @lines;
}

menuitem {
    background-color: @bg;
    border-color: @lines;
}

trough {
    background-color: @active-dark;
    color: @text;
}

trough highlight,
trough progress {
    background-color: @slider;
    color: @text;
    border-color: @bg;
}

scale-mark {
    color: @text;
}

scrollbar,
scrollbar button,
scrollbar trough {
    background-color: @bg;
}

scrollbar slider {
    background-color: @active-dark;
}

textview .time {
    color: @lines;
}

.popup {
    background-color: @popup;
}

.dialog {
    border: @bg;
    background-color: @bg;
}

.dialog button {
    background-color: @buttons-bg;
    border-bottom-color: @active-dark;
    border-radius: .75em;
}

.dialog button:nth-child(1) {
    border-bottom-color: @color3;
}

.dialog button:nth-child(2) {
    border-bottom-color: @error;
}

.tempbutton_top,
.tempbutton,
.tempbutton_bottom,
.distbutton_top,
.distbutton,
.distbutton_bottom  {
    border-color: @bg;
    background-color: @buttons-bg;
}

button:active,
.distbutton_active,
button.active {
    background-color: @active;
}

.fan_slider {
    color: @text;
}

.message_popup {
    border-bottom-color: @text;
}

.message_popup_echo,
.message_popup_echo button {
    background-color: @echo;
}

.message_popup_warning,
.message_popup_warning button {
    background-color: @warning;
}

.message_popup_error,
.message_popup_error button {
    background-color: @error;
}

.numpad_key {
    border-color: @bg;
    background-color: @buttons-bg;
}

.printing-status,
.printing-progress-text,
.printing-status-label {
    color: @text;
}

.message {
    border-color: @error;
    color: @text;
    background-color: @error;
}

.message button {
    background-color: @text;
    color: @bg;
}

.warning {
    background-color: @warning;
}

.error {
    background-color: @error;
}

.keyboard_pad {
    background-color: @buttons-bg;
}
