rofi/selectanimepreview.rasi
118 lines · 3572 bytes
1// Colours
2* {
3 background-color: transparent;
4 background: #1D2330;
5 background-transparent: #1D2330A0;
6 text-color: #BBBBBB;
7 text-color-selected: #FFFFFF;
8 primary: #BB77BB;
9 important: #BF616A;
10}
11
12configuration {
13 font: "Roboto 17";
14 show-icons: true;
15}
16
17window {
18 fullscreen: true;
19 height: 100%;
20 width: 100%;
21 transparency: "real";
22 background-color: @background-transparent;
23 border: 0px;
24 border-color: @primary;
25}
26
27mainbox {
28 children: [prompt, inputbar-box, listview];
29 padding: 0px;
30}
31
32prompt {
33 width: 100%;
34 margin: 10px 0px 0px 30px;
35 text-color: @important;
36 font: "Roboto Bold 27";
37}
38
39listview {
40 layout: vertical;
41 padding: 60px;
42 dynamic: true;
43 columns: 7;
44 spacing: 20px;
45 horizontal-align: center; /* Center the list items */
46}
47
48inputbar-box {
49 children: [dummy, inputbar, dummy];
50 orientation: horizontal;
51 expand: false;
52}
53
54inputbar {
55 children: [textbox-prompt, entry];
56 margin: 0px;
57 background-color: @primary;
58 border: 4px;
59 border-color: @primary;
60 border-radius: 8px;
61}
62
63textbox-prompt {
64 text-color: @background;
65 horizontal-align: 0.5;
66 vertical-align: 0.5;
67 expand: false;
68}
69
70entry {
71 expand: false;
72 padding: 8px;
73 margin: -6px;
74 horizontal-align: 0;
75 width: 300;
76 background-color: @background;
77 border: 6px;
78 border-color: @primary;
79 border-radius: 8px;
80 cursor: text;
81}
82
83element {
84 children: [dummy, element-box, dummy];
85 padding: 5px;
86 orientation: vertical;
87 border: 0px;
88 border-radius: 16px;
89 background-color: transparent; /* Default background */
90}
91
92element selected {
93 background-color: @primary; /* Solid color for selected item */
94}
95
96element-box {
97 children: [element-icon, element-text];
98 orientation: vertical;
99 expand: false;
100 cursor: pointer;
101}
102
103element-icon {
104 padding: 10px;
105 cursor: inherit;
106 size: 33%;
107 margin: 10px;
108}
109
110element-text {
111 horizontal-align: 0.5;
112 cursor: inherit;
113 text-color: @text-color;
114}
115
116element-text selected {
117 text-color: @text-color-selected;
118}