|
1 | 1 | """Shared styles for reclaimed"""
|
2 | 2 |
|
3 |
| -# Solarized Dark color scheme hex values |
4 |
| -BASE03 = "#002b36" |
5 |
| -BASE02 = "#073642" |
6 |
| -BASE01 = "#586e75" |
7 |
| -BASE00 = "#657b83" |
8 |
| -BASE0 = "#839496" |
9 |
| -BASE1 = "#93a1a1" |
10 |
| -BASE2 = "#eee8d5" |
11 |
| -BASE3 = "#fdf6e3" |
12 |
| -YELLOW = "#b58900" |
13 |
| -ORANGE = "#cb4b16" |
14 |
| -RED = "#dc322f" |
15 |
| -MAGENTA = "#d33682" |
16 |
| -VIOLET = "#6c71c4" |
17 |
| -BLUE = "#268bd2" |
18 |
| -CYAN = "#2aa198" |
19 |
| -GREEN = "#859900" |
| 3 | +# Selenized Dark color scheme hex values |
| 4 | +BG_0 = "#103c48" # darkest background |
| 5 | +BG_1 = "#184956" # darker background |
| 6 | +BG_2 = "#2d5b69" # content highlights |
| 7 | +DIM_0 = "#72898f" # dimmed text |
| 8 | +FG_0 = "#adbcbc" # main text |
| 9 | +FG_1 = "#cad8d9" # emphasized text |
| 10 | +YELLOW = "#ebc13d" # bright yellow |
| 11 | +ORANGE = "#fd9456" # bright orange |
| 12 | +RED = "#ff665c" # bright red |
| 13 | +MAGENTA = "#ff84cd" # bright magenta |
| 14 | +VIOLET = "#bd96fa" # bright violet |
| 15 | +BLUE = "#58a3ff" # bright blue |
| 16 | +CYAN = "#53d6c7" # bright cyan |
| 17 | +GREEN = "#84c747" # bright green |
| 18 | + |
| 19 | +# Backward compatibility with old Solarized variable names |
| 20 | +BASE03 = BG_0 # darkest background |
| 21 | +BASE02 = BG_1 # darker background |
| 22 | +BASE01 = BG_2 # content highlights |
| 23 | +BASE00 = DIM_0 # dimmed text |
| 24 | +BASE0 = FG_0 # main text |
| 25 | +BASE1 = FG_1 # emphasized text |
| 26 | +BASE2 = FG_1 # light content (mapped to emphasized text in selenized) |
| 27 | +BASE3 = FG_1 # lightest (mapped to emphasized text in selenized) |
20 | 28 |
|
21 | 29 | # CSS styles for Textual UI
|
22 | 30 | TEXTUAL_CSS = """
|
23 | 31 | /* Define all variables at the start */
|
24 |
| -$base03: #002b36; |
25 |
| -$base02: #073642; |
26 |
| -$base01: #586e75; |
27 |
| -$base00: #657b83; |
28 |
| -$base0: #839496; |
29 |
| -$base1: #93a1a1; |
30 |
| -$base2: #eee8d5; |
31 |
| -$base3: #fdf6e3; |
32 |
| -$yellow: #b58900; |
33 |
| -$orange: #cb4b16; |
34 |
| -$red: #dc322f; |
35 |
| -$magenta: #d33682; |
36 |
| -$violet: #6c71c4; |
37 |
| -$blue: #268bd2; |
38 |
| -$cyan: #2aa198; |
39 |
| -$green: #859900; |
| 32 | +$bg_0: #103c48; /* darkest background */ |
| 33 | +$bg_1: #184956; /* darker background */ |
| 34 | +$bg_2: #2d5b69; /* content highlights */ |
| 35 | +$dim_0: #72898f; /* dimmed text */ |
| 36 | +$fg_0: #adbcbc; /* main text */ |
| 37 | +$fg_1: #cad8d9; /* emphasized text */ |
| 38 | +$yellow: #ebc13d; /* bright yellow */ |
| 39 | +$orange: #fd9456; /* bright orange */ |
| 40 | +$red: #ff665c; /* bright red */ |
| 41 | +$magenta: #ff84cd; /* bright magenta */ |
| 42 | +$violet: #bd96fa; /* bright violet */ |
| 43 | +$blue: #58a3ff; /* bright blue */ |
| 44 | +$cyan: #53d6c7; /* bright cyan */ |
| 45 | +$green: #84c747; /* bright green */ |
40 | 46 |
|
41 | 47 |
|
42 | 48 | Screen {
|
43 |
| - background: $base03; |
44 |
| - color: $base0; |
| 49 | + background: $bg_0; |
| 50 | + color: $fg_0; |
45 | 51 | }
|
46 | 52 |
|
47 | 53 | #header {
|
48 | 54 | dock: top;
|
49 | 55 | height: 1;
|
50 |
| - background: $base02; |
51 |
| - color: $base1; |
| 56 | + background: $bg_2; |
| 57 | + color: $fg_1; |
52 | 58 | text-align: center;
|
| 59 | + border-bottom: solid $fg_0; |
53 | 60 | }
|
54 | 61 |
|
55 | 62 | #footer {
|
| 63 | + height: 1; |
| 64 | + background: $bg_2; |
| 65 | + color: $fg_1; |
| 66 | + border-top: solid $fg_0; |
| 67 | +} |
| 68 | +
|
| 69 | +#footer-container { |
56 | 70 | dock: bottom;
|
| 71 | + height: 2; |
| 72 | + align-horizontal: left; |
| 73 | +} |
| 74 | +
|
| 75 | +#scan-progress { |
| 76 | + background: $bg_1; |
| 77 | +} |
| 78 | +
|
| 79 | +Footer { |
57 | 80 | height: 1;
|
58 |
| - background: $base02; |
59 |
| - color: $base1; |
60 | 81 | }
|
61 | 82 |
|
62 | 83 | #main-container {
|
63 | 84 | width: 100%;
|
64 | 85 | height: 100%;
|
| 86 | + border-left: heavy $bg_2; |
| 87 | + border-right: heavy $bg_2; |
65 | 88 | }
|
66 | 89 |
|
67 | 90 | #title {
|
68 | 91 | dock: top;
|
69 |
| - height: 1; |
70 |
| - background: $base02; |
71 |
| - color: $blue; |
| 92 | + height: 2; |
| 93 | + background: $bg_2; |
| 94 | + color: $fg_1; |
72 | 95 | text-align: center;
|
| 96 | + border-bottom: heavy $bg_1; |
73 | 97 | }
|
74 | 98 |
|
75 | 99 | #status-bar {
|
76 | 100 | dock: top;
|
77 |
| - height: 1; |
78 |
| - background: $base02; |
| 101 | + height: 2; |
| 102 | + background: $bg_1; |
79 | 103 | padding: 0 1;
|
| 104 | + border-bottom: heavy $bg_2; |
80 | 105 | }
|
81 | 106 |
|
82 | 107 | #status-label {
|
83 | 108 | width: auto;
|
84 |
| - color: $base01; |
| 109 | + color: $fg_0; |
85 | 110 | }
|
86 | 111 |
|
87 | 112 | #path-display {
|
88 | 113 | width: 1fr;
|
89 |
| - color: $base1; |
| 114 | + color: $fg_0; |
| 115 | + padding: 0 1; |
90 | 116 | }
|
91 | 117 |
|
92 | 118 | #scan-timer {
|
|
100 | 126 | width: auto;
|
101 | 127 | color: $blue;
|
102 | 128 | text-align: right;
|
| 129 | + padding-right: 1; |
103 | 130 | }
|
104 |
| -
|
105 | 131 | #files-section-header, #dirs-section-header {
|
106 | 132 | height: 1;
|
107 |
| - background: $base02; |
108 |
| - color: $blue; |
109 |
| - padding: 0 1; |
| 133 | + background: $bg_1; |
| 134 | + padding-left: 1; |
| 135 | + color: $fg_1; |
110 | 136 | margin-top: 1;
|
111 | 137 | }
|
112 | 138 |
|
|
117 | 143 |
|
118 | 144 | #files-table, #dirs-table {
|
119 | 145 | width: 100%;
|
120 |
| - background: $base03; |
121 |
| - color: $base0; |
| 146 | + color: $fg_0; |
| 147 | + background: $bg_0; |
| 148 | + border: heavy $fg_0; |
122 | 149 | }
|
123 | 150 |
|
124 | 151 | #dirs-table {
|
125 |
| - height: 40%; |
| 152 | + height: 45%; |
126 | 153 | margin-bottom: 1;
|
127 | 154 | }
|
128 | 155 |
|
129 | 156 | #files-table {
|
130 |
| - height: 40%; |
| 157 | + height: 50%; |
131 | 158 | }
|
132 | 159 |
|
133 | 160 | DataTable {
|
134 | 161 | border: none;
|
135 | 162 | }
|
136 | 163 |
|
137 | 164 | DataTable > .datatable--header {
|
138 |
| - background: $base02; |
139 |
| - color: $base1; |
| 165 | + background: $bg_1; |
| 166 | + color: $fg_1; |
| 167 | + border-bottom: heavy $bg_2; |
140 | 168 | }
|
141 | 169 |
|
142 | 170 | DataTable > .datatable--cursor {
|
143 |
| - background: $base01; |
| 171 | + background: $bg_2; |
| 172 | + color: $fg_1; |
| 173 | + border: round $bg_1; |
144 | 174 | }
|
145 | 175 |
|
146 | 176 | #dialog-container {
|
147 |
| - width: 60%; |
| 177 | + width: 100%; |
| 178 | + margin: 5; |
148 | 179 | height: auto;
|
149 |
| - background: $base02; |
| 180 | + background: $bg_1; |
150 | 181 | border: tall $blue;
|
151 | 182 | padding: 1 2;
|
152 | 183 | }
|
|
155 | 186 | width: 100%;
|
156 | 187 | height: 1;
|
157 | 188 | content-align: center middle;
|
158 |
| - color: $base1; |
| 189 | + color: $fg_1; |
159 | 190 | }
|
160 | 191 |
|
161 | 192 | #dialog-path {
|
162 | 193 | width: 100%;
|
163 |
| - height: 3; |
| 194 | + height: 2; |
164 | 195 | content-align: center middle;
|
165 | 196 | margin: 1 0;
|
166 | 197 | color: $red;
|
|
171 | 202 | height: 3;
|
172 | 203 | content-align: center middle;
|
173 | 204 | margin-top: 1;
|
| 205 | + align-horizontal: center; |
174 | 206 | }
|
175 | 207 |
|
176 | 208 | #sort-container {
|
177 | 209 | width: 40%;
|
178 | 210 | height: auto;
|
179 |
| - background: $base02; |
| 211 | + background: $bg_1; |
180 | 212 | border: tall $blue;
|
181 | 213 | padding: 1 2;
|
182 | 214 | }
|
|
186 | 218 | height: 1;
|
187 | 219 | content-align: center middle;
|
188 | 220 | margin-bottom: 1;
|
189 |
| - color: $base1; |
| 221 | + color: $fg_1; |
190 | 222 | }
|
191 | 223 |
|
192 | 224 | #sort-buttons {
|
|
198 | 230 |
|
199 | 231 | Button {
|
200 | 232 | margin: 0 1;
|
201 |
| - background: $base01; |
202 |
| - color: $base2; |
| 233 | + background: $bg_2; |
| 234 | + color: $fg_1; |
203 | 235 | }
|
204 | 236 |
|
205 | 237 | Button:hover {
|
206 |
| - background: $base00; |
| 238 | + background: $dim_0; |
207 | 239 | }
|
208 | 240 |
|
209 | 241 | Button.primary {
|
|
219 | 251 | }
|
220 | 252 |
|
221 | 253 | RadioButton {
|
222 |
| - background: $base02; |
223 |
| - color: $base1; |
| 254 | + background: $bg_1; |
| 255 | + color: $fg_1; |
224 | 256 | }
|
225 | 257 |
|
226 | 258 | RadioButton.-selected {
|
227 | 259 | background: $blue;
|
228 |
| - color: $base3; |
| 260 | + color: $fg_1; |
229 | 261 | }
|
230 | 262 |
|
231 |
| -#footer-container { |
232 |
| - layout: horizontal; |
233 |
| - dock: bottom; |
234 |
| - height: 3; |
235 |
| - align-horizontal: left; |
236 |
| - align-vertical: middle; |
237 |
| - padding: 0 1; |
238 |
| -} |
239 |
| -
|
240 |
| -#scan-progress { |
241 |
| - margin-left: 2; |
242 |
| - height: 1; |
243 |
| - background: $base02; |
244 |
| -} |
245 |
| -
|
246 |
| -Footer { |
247 |
| - height: 1; |
248 |
| -} |
249 | 263 | """
|
0 commit comments