aboutsummaryrefslogtreecommitdiffstats
path: root/rofi/udt/common.rasi
blob: 327e5a9ff7d1b4a442f14135a43de941b61fb157 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
/*
 * Shared identity for all udt rofi layouts.
 * Copyright (C) 2026 Danilo M. <danix@danix.xyz>
 * Licensed under the GNU General Public License v2 only.
 */

@import "palette.rasi"
@import "accent.rasi"

* {
    font:             "Noto Sans 11";
    monospace-font:   "Inconsolata Nerd Font Mono 11";

    background-color: transparent;
    text-color:       @text;

    margin:  0;
    padding: 0;
    spacing: 0;

    radius:  10px;
    bar-height: 36px;
}

window {
    background-color: @base;
    border:           2px;
    border-color:     @accent;
    border-radius:    @radius;
    padding:          16px;
}

mainbox {
    spacing: 12px;
}

inputbar {
    background-color: @surface0;
    border-radius:    6px;
    padding:          10px 12px;
    spacing:          8px;
    children:         [ prompt, entry ];
}

prompt {
    text-color: @accent;
}

entry {
    placeholder:       "search";
    placeholder-color: @overlay0;
    cursor:            text;
}

listview {
    scrollbar: false;
    cycle:     true;
    dynamic:   true;
    spacing:   4px;
}

element {
    border-radius: 6px;
    padding:       8px 10px;
    spacing:       10px;
    cursor:        pointer;
}

element normal.normal   { text-color: @text; }
element alternate.normal{ text-color: @text; }
element normal.urgent   { text-color: @red; }
element normal.active   { text-color: @accent; }

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

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

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

element-icon {
    size:              1.2em;
    vertical-align:    0.5;
    background-color:  transparent;
}

element-text {
    vertical-align:   0.5;
    background-color: transparent;
    text-color:       inherit;
}

message {
    background-color: @surface0;
    border-radius:    6px;
    padding:          10px;
}

textbox {
    text-color: @text;
}

error-message {
    background-color: @base;
    text-color:       @red;
    padding:          12px;
}