@import "~/.themes/Serpensortia/rofi/theme.rasi"

configuration {
    modi:                       "drun,run,window";
    show-icons:                 true;
    display-drun:               "Applications";
    display-run:                "Run Command";
    display-window:             "Switch Window";
}
window {
    font:             "Fira Sans 11";
    border-color:     @border;
    background-color: @background-alt;
    border:           @main-border;
    padding:          @main-padding;
    border-radius:    @main-radius;
    spacing:          @main-spacing;

    anchor:         north;
    location:       center;
    y-offset:       -15.5em;


    children: [ inputbar, message, listview ];
}

wrapper-mode-switcher {
    orientation: horizontal;

    expand:     false;
    spacing:    0;
    children: [ mode-switcher ];
}

mode-switcher {
    border:  0px;
    spacing: 0px;
    expand: true;
}

button {
    padding:      @element-spacing;
    border:       @button-border;
    border-color: @separator;
}
button selected.normal {
    text-color: @on-selected;
    background-color: @list-bg;

    border:       @button-selected-border;
    border-color: @separator;
    border-radius:    @button-selected-radius;
}

sidebar {
    expand: false;
}

message {
    text-color:       @foreground-alt;
    background-color: @message-bg;
    border-color:     @border-alt;
    border:           @main-border;
    border-radius:    @element-radius;
    padding:          @element-padding;
    margin:           @message-margin;
    expand:           false;
}

listview {
    spacing:      @element-spacing;
    scrollbar:    false;
    padding:      @main-padding;
    background-color: @list-bg;

    expand:       true;
    border:       @list-border;
    border-color: @separator;
    border-radius: @list-radius;
}
element {
    border:  @element-border;
    border-color: transparent;
    padding: @element-padding;
}
element-text {
    background-color: inherit;
    text-color:       inherit;
}
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 {
    border:  @element-border;
    border-color: @border-alt;
    background-color: @selected-normal-background;
    text-color:       @selected-normal-foreground;
}
element.selected.urgent {
    border:  @element-border;
    border-color: @border-alt;
    background-color: @selected-urgent-background;
    text-color:       @selected-urgent-foreground;
}
element.selected.active {
    border:  @element-border;
    border-color: @border-alt;
    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-width: 8px ;
    padding:      0;
}
sidebar {
    border:       @sidebar-border;
    border-color: @separator;
}
inputbar {
    text-color: @normal-foreground;
    padding: @input-padding;
    spacing:                     8px;
    orientation:                 vertical;
}
prompt {
    enabled:                     true;
    padding:                     @element-padding;
    background-color:            transparent;
    text-color:                  @foreground;
    font:                        "Fira Sans Bold 13";
}
case-indicator {
    text-color: @normal-foreground;
}

wrapper {
    orientation: horizontal;
    text-color:       @foreground-alt;
    background-color: @background-bar;
    border-color:     @border-alt;

    border: @main-border;
    border-radius: @element-radius;
    padding: @element-padding;
    children:   [ icon-k, entry, icon-paste];
    spacing:  @main-padding;
}
button-paste {
    expand: false;
    str: "gtk-paste";
    size: 24;
    vertical-align: 0.5;
    action: "kb-cancel";
}
icon-paste {
    expand: false;
    filename: "gtk-paste";
    size: 24;
    vertical-align: 0.5;
    action: "kb-primary-paste";
}
icon-k {
    expand: false;
    filename: "input-keyboard";
    size: 24;
    vertical-align: 0.5;

}
entry {
    vertical-align: 0.5;
}
inputbar {
    children:   [ prompt, wrapper ];
}

error-message {
    background-color: @error-bg;
    border-color: @error-border;
    border-radius: @main-radius;
    border: @main-border;
    padding: @main-padding;
}
