summaryrefslogtreecommitdiffstats
path: root/themes/docu.rasi
blob: 6f946e7232d6642f4f8976b494bed43053b9a694 (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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
/**
 * ROFI Documentation theme.
 * User: Qball
 * Copyright: Dave Davenport
 */

/** Default settings, every widget inherits from this. */
* {
    /** Default background color is transparent. */
    background-color: transparent;
    /** Default text is white */
    text-color:       white;
}

/**
 * Entry box on top. 
 */
entry {
    /** top  and bottom border */
    border: 2px 0px;
    /** Dark grey border color */
    border-color:  darkgrey;
    /** Background is grey */
    background-color: grey;
    /** 4px padding on the inside of the border. */
    padding:       4px;
    /** when no text is set, show 'Type to filter' */
    placeholder:       "Type to filter";
    /** this text is dark grey */
    placeholder-color: darkgrey;
    /** inherit font setting from parent */
    font: inherit;
    cursor: text;
}

/**
 * Input bar
 */
inputbar {
    /** no spacing between widgets */
    spacing: 0;
    /** include entry and mode-switcher (removes prompt) */
    children: [  icon-keyboard, entry, mode-switcher ];
    /** use monospace font. */
    font:   "mono 18";
}

/**
 * Mode switcher.
 *  We set it up to 'connect' to reset of input bar.
 */
mode-switcher {
    /** we use spacing between children to draw a 'border' */
    spacing: 2px;
    border: 2px;
    border-radius: 0px 4px 4px 0px;
    /** border and background are same color, widget will have desired bg color.*/
    /** this way the spacing shows as a border */
    border-color: darkgrey;
    background-color: darkgrey;
    /** inherit font setting from parent */
    font: inherit;
}

/**
 * Buttons in mode switcher.
 */
button {
    background-color: grey;
    border-color: darkgrey;
    /** inherit font setting from parent */
    font: inherit;
    cursor: pointer;
}

/**
 * Selected buttons in mode switcher.
 */
button selected {
    background-color: lightgrey;
    text-color:       black;
}

/**
 * Small icon in inputbar
 */
icon-keyboard {
    /** give it a 2 pixel border, except on the right side. */
    border:        2px 0px 2px 2px;
    /** with a radius on the left two corners. */ 
    border-radius: 4px 0px 0px 4px;
    /** add matching border. */
    border-color: darkgrey;
    /** match background. */
    background-color: grey;
    /** move icon away from right border. */
    padding: 0px 10px 0px 10px;
    /** Only use required space. */
    expand: false;
    /** icon is around 1.2 font width */
    size: 1.2em;
    /** Icon name, we use symbolic name here */
    filename: "keyboard";
}

/**
 * Main window widget
 */
window {
    /** Place on top center of rofi window on the top center of the screen. */
    anchor: north;
    location: north;

    /** 100% screen width */
    width:            100%;

    /** Black transparent color. */
    background-color: black / 70%;
    /** Small one 1 font width border on inside of window. */
    padding:           1em;

    /** border */
    border-color: black;
    border:  0em 0.2em 0.2em;
}

/**
 * Main container in the window.
 */
mainbox { 
    /** spacing between widgets */
    spacing: 1em;
}

/**
 * listview that shows entries.
 */
listview {
    /** 4 rows. */
    lines: 4;
    /** 6 columns */
    columns: 6;
    /** add 1 em spacing between items */
    spacing: 1em;
    /** Don't reduce columns if less items are available. */
    fixed-columns: true;
}
/**
 * entry in listview.
 */
element {
    /** clients are packed vertically. */
    orientation:      vertical;
    /** 2 px border */
    border:           2px;
    /** with 4px radius on corners. */
    border-radius:    4px ;
    border-color:     darkgrey;
    background-color: grey;
    /** 4 px padding on the inside of border */
    cursor: pointer;
    padding:          4px;
}

/** selected element */
element selected {
    /** highlighted colors */
    background-color: lightgrey;
    text-color:       black;
}

/** Entry icon */
element-icon {
    /** change size to 128 pixels. */
    size: 128px;
    cursor: inherit;
}

/** Entry text */
element-text {
    /* align font in (horizontally) center */
    horizontal-align: 0.5;
    cursor: inherit;
}