/* ==========================================================================
   Everforest dark theme for rofi

   Based on the Everforest color scheme for Vim by sainnhe
   https://github.com/sainnhe/everforest/
   ========================================================================== */

* {
    /* Theme settings */
    highlight: bold italic;
    scrollbar: true;
    
    /* Everforest colors */

    everforest-bg0:                 #323d43;
    everforest-bg1:                 #525c6d;
    everforest-fg:                  #d8cacc;
    everforest-black:               #4a555b;
    everforest-dark-grey:           #525c62;
    everforest-dark-red:            #e26c6e;
    everforest-red:                 #e68183;
    everforest-dark-yellow:         #d5b26b; 
    everforest-yellow:              #dbbc7f;
    everforest-dark-blue:           #6eb2a9;
    everforest-blue:                #7fbbb3;
    everforest-dark-magenta:        #cf87a9;
    everforest-magenta:             #d699b6;
    everforest-dark-cyan:           #72b783;
    everforest-cyan:                #83c092;
    everforest-light-grey:          #d8caac;
    everforest-white:               #d8caac;

    /* Theme colors */
    background:                  @everforest-bg0;
    background-color:            @background;
    foreground:                  @everforest-fg;
    border-color:                @everforest-dark-yellow;
    separatorcolor:              @border-color;
    scrollbar-handle:            @border-color;

    normal-background:           @background;
    normal-foreground:           @foreground;
    alternate-normal-background: @everforest-bg1;
    alternate-normal-foreground: @foreground;
    selected-normal-background:  @everforest-dark-cyan;
    selected-normal-foreground:  @everforest-black;

    active-background:           @everforest-yellow;
    active-foreground:           @background;
    alternate-active-background: @active-background;
    alternate-active-foreground: @active-foreground;
    selected-active-background:  @everforest-cyan;
    selected-active-foreground:  @active-foreground;

    urgent-background:           @everforest-dark-red;
    urgent-foreground:           @background;
    alternate-urgent-background: @urgent-background;
    alternate-urgent-foreground: @urgent-foreground;
    selected-urgent-background:  @everforest-red;
    selected-urgent-foreground:  @urgent-foreground;
}

window {
    background-color: @background;
    border:           2;
    padding:          2;
}

mainbox {
    border:  0;
    padding: 0;
}

message {
    border:       2px 0 0;
    border-color: @separatorcolor;
    padding:      1px;
}

textbox {
    highlight:  @highlight;
    text-color: @foreground;
}

listview {
    border:       2px solid 0 0;
    padding:      2px 0 0;
    border-color: @separatorcolor;
    spacing:      2px;
    scrollbar:    @scrollbar;
}

element {
    border:  0;
    padding: 2px;
}

element.normal.normal {
    background-color: @normal-background;
    text-color:       @normal-foreground;
}

element.normal.urgent {
    background-color: @urgent-background;
    text-color:       @urgent-foreground;
}

element.normal.active {
    background-color: @active-background;
    text-color:       @active-foreground;
}

element.selected.normal {
    background-color: @selected-normal-background;
    text-color:       @selected-normal-foreground;
}

element.selected.urgent {
    background-color: @selected-urgent-background;
    text-color:       @selected-urgent-foreground;
}

element.selected.active {
    background-color: @selected-active-background;
    text-color:       @selected-active-foreground;
}

element.alternate.normal {
    background-color: @alternate-normal-background;
    text-color:       @alternate-normal-foreground;
}

element.alternate.urgent {
    background-color: @alternate-urgent-background;
    text-color:       @alternate-urgent-foreground;
}

element.alternate.active {
    background-color: @alternate-active-background;
    text-color:       @alternate-active-foreground;
}

scrollbar {
    width:        4px;
    border:       0;
    handle-color: @scrollbar-handle;
    handle-width: 8px;
    padding:      0;
}

mode-switcher {
    border:       2px 0 0;
    border-color: @separatorcolor;
}

inputbar {
    spacing:    0;
    text-color: @normal-foreground;
    padding:    2px;
    children:   [ prompt, textbox-prompt-sep, entry, case-indicator ];
}

case-indicator,
entry,
prompt,
button {
    spacing:    0;
    text-color: @normal-foreground;
}

button.selected {
    background-color: @selected-normal-background;
    text-color:       @selected-normal-foreground;
}

textbox-prompt-sep {
    expand:     false;
    str:        ":";
    text-color: @normal-foreground;
    margin:     0 0.3em 0 0;
}
element-text, element-icon {
    background-color: inherit;
    text-color:       inherit;
}