Debian Codegraph @

tksheet/themes.py

raw symbols SCIP
1 from __future__ import annotations
2
3 from .other_classes import DotDict
4
5 theme_light_blue: dict[str, str] = DotDict(
6 {
7 "popup_menu_fg": "#000000",
8 "popup_menu_bg": "#FFFFFF",
9 "popup_menu_highlight_bg": "#DCDEE0",
10 "popup_menu_highlight_fg": "#000000",
11 "index_hidden_rows_expander_bg": "#747775",
12 "header_hidden_columns_expander_bg": "#747775",
13 "header_bg": "#FFFFFF",
14 "header_border_fg": "#C4C7C5",
15 "header_grid_fg": "#C4C7C5",
16 "header_fg": "#444746",
17 "header_editor_bg": "#FFFFFF",
18 "header_editor_fg": "#444746",
19 "header_editor_select_bg": "#cfd1d1",
20 "header_editor_select_fg": "#000000",
21 "header_selected_cells_bg": "#D3E3FD",
22 "header_selected_cells_fg": "black",
23 "index_bg": "#FFFFFF",
24 "index_border_fg": "#C4C7C5",
25 "index_grid_fg": "#C4C7C5",
26 "index_fg": "black",
27 "index_editor_bg": "#FFFFFF",
28 "index_editor_fg": "black",
29 "index_editor_select_bg": "#cfd1d1",
30 "index_editor_select_fg": "#000000",
31 "index_selected_cells_bg": "#D3E3FD",
32 "index_selected_cells_fg": "black",
33 "top_left_bg": "#F9FBFD",
34 "top_left_fg": "#d9d9d9",
35 "top_left_fg_highlight": "#747775",
36 "table_bg": "#FFFFFF",
37 "table_grid_fg": "#E1E1E1",
38 "table_fg": "black",
39 "table_editor_bg": "#FFFFFF",
40 "table_editor_fg": "black",
41 "table_editor_select_bg": "#cfd1d1",
42 "table_editor_select_fg": "#000000",
43 "table_selected_box_cells_fg": "#0B57D0",
44 "table_selected_box_rows_fg": "#0B57D0",
45 "table_selected_box_columns_fg": "#0B57D0",
46 "table_selected_cells_border_fg": "#0B57D0",
47 "table_selected_cells_bg": "#E6EFFD",
48 "table_selected_cells_fg": "black",
49 "resizing_line_fg": "black",
50 "drag_and_drop_bg": "#0B57D0",
51 "outline_color": "gray2",
52 "header_selected_columns_bg": "#0B57D0",
53 "header_selected_columns_fg": "#FFFFFF",
54 "index_selected_rows_bg": "#0B57D0",
55 "index_selected_rows_fg": "#FFFFFF",
56 "table_selected_rows_border_fg": "#0B57D0",
57 "table_selected_rows_bg": "#E6EFFD",
58 "table_selected_rows_fg": "black",
59 "table_selected_columns_border_fg": "#0B57D0",
60 "table_selected_columns_bg": "#E6EFFD",
61 "table_selected_columns_fg": "black",
62 "tree_arrow_fg": "black",
63 "selected_cells_tree_arrow_fg": "black",
64 "selected_rows_tree_arrow_fg": "#FFFFFF",
65 "vertical_scroll_background": "#FFFFFF",
66 "horizontal_scroll_background": "#FFFFFF",
67 "vertical_scroll_troughcolor": "#f9fbfd",
68 "horizontal_scroll_troughcolor": "#f9fbfd",
69 "vertical_scroll_lightcolor": "#FFFFFF",
70 "horizontal_scroll_lightcolor": "#FFFFFF",
71 "vertical_scroll_darkcolor": "gray50",
72 "horizontal_scroll_darkcolor": "gray50",
73 "vertical_scroll_relief": "flat",
74 "horizontal_scroll_relief": "flat",
75 "vertical_scroll_troughrelief": "flat",
76 "horizontal_scroll_troughrelief": "flat",
77 "vertical_scroll_bordercolor": "#f9fbfd",
78 "horizontal_scroll_bordercolor": "#f9fbfd",
79 "vertical_scroll_active_bg": "#bdc1c6",
80 "horizontal_scroll_active_bg": "#bdc1c6",
81 "vertical_scroll_not_active_bg": "#DADCE0",
82 "horizontal_scroll_not_active_bg": "#DADCE0",
83 "vertical_scroll_pressed_bg": "#bdc1c6",
84 "horizontal_scroll_pressed_bg": "#bdc1c6",
85 "vertical_scroll_active_fg": "#bdc1c6",
86 "horizontal_scroll_active_fg": "#bdc1c6",
87 "vertical_scroll_not_active_fg": "#DADCE0",
88 "horizontal_scroll_not_active_fg": "#DADCE0",
89 "vertical_scroll_pressed_fg": "#bdc1c6",
90 "horizontal_scroll_pressed_fg": "#bdc1c6",
91 }
92 )
93
94 theme_light_green: dict[str, str] = DotDict(
95 {
96 "popup_menu_fg": "#000000",
97 "popup_menu_bg": "#FFFFFF",
98 "popup_menu_highlight_bg": "#DCDEE0",
99 "popup_menu_highlight_fg": "#000000",
100 "index_hidden_rows_expander_bg": "gray30",
101 "header_hidden_columns_expander_bg": "gray30",
102 "header_bg": "#F5F5F5",
103 "header_border_fg": "#ababab",
104 "header_grid_fg": "#ababab",
105 "header_fg": "black",
106 "header_editor_bg": "#F5F5F5",
107 "header_editor_fg": "black",
108 "header_editor_select_bg": "#cfd1d1",
109 "header_editor_select_fg": "#000000",
110 "header_selected_cells_bg": "#CAEAD8",
111 "header_selected_cells_fg": "#217346",
112 "index_bg": "#F5F5F5",
113 "index_border_fg": "#ababab",
114 "index_grid_fg": "#ababab",
115 "index_fg": "black",
116 "index_editor_bg": "#F5F5F5",
117 "index_editor_fg": "black",
118 "index_editor_select_bg": "#cfd1d1",
119 "index_editor_select_fg": "#000000",
120 "index_selected_cells_bg": "#CAEAD8",
121 "index_selected_cells_fg": "#107C41",
122 "top_left_bg": "#F5F5F5",
123 "top_left_fg": "#d9d9d9",
124 "top_left_fg_highlight": "#5f6368",
125 "table_bg": "#FFFFFF",
126 "table_grid_fg": "#bfbfbf",
127 "table_fg": "black",
128 "table_editor_bg": "#FFFFFF",
129 "table_editor_fg": "black",
130 "table_editor_select_bg": "#cfd1d1",
131 "table_editor_select_fg": "#000000",
132 "table_selected_box_cells_fg": "#107C41",
133 "table_selected_box_rows_fg": "#107C41",
134 "table_selected_box_columns_fg": "#107C41",
135 "table_selected_cells_border_fg": "#107C41",
136 "table_selected_cells_bg": "#E3E3E3",
137 "table_selected_cells_fg": "black",
138 "resizing_line_fg": "black",
139 "drag_and_drop_bg": "#107C41",
140 "outline_color": "gray2",
141 "header_selected_columns_bg": "#107C41",
142 "header_selected_columns_fg": "#FFFFFF",
143 "index_selected_rows_bg": "#107C41",
144 "index_selected_rows_fg": "#FFFFFF",
145 "table_selected_rows_border_fg": "#107C41",
146 "table_selected_rows_bg": "#E3E3E3",
147 "table_selected_rows_fg": "black",
148 "table_selected_columns_border_fg": "#107C41",
149 "table_selected_columns_bg": "#E3E3E3",
150 "table_selected_columns_fg": "black",
151 "tree_arrow_fg": "black",
152 "selected_cells_tree_arrow_fg": "#107C41",
153 "selected_rows_tree_arrow_fg": "#FFFFFF",
154 "vertical_scroll_background": "#FFFFFF",
155 "horizontal_scroll_background": "#FFFFFF",
156 "vertical_scroll_troughcolor": "#f1f1f1",
157 "horizontal_scroll_troughcolor": "#f1f1f1",
158 "vertical_scroll_lightcolor": "#FFFFFF",
159 "horizontal_scroll_lightcolor": "#FFFFFF",
160 "vertical_scroll_darkcolor": "gray50",
161 "horizontal_scroll_darkcolor": "gray50",
162 "vertical_scroll_relief": "flat",
163 "horizontal_scroll_relief": "flat",
164 "vertical_scroll_troughrelief": "flat",
165 "horizontal_scroll_troughrelief": "flat",
166 "vertical_scroll_bordercolor": "#f1f1f1",
167 "horizontal_scroll_bordercolor": "#f1f1f1",
168 "vertical_scroll_active_bg": "#707070",
169 "horizontal_scroll_active_bg": "#707070",
170 "vertical_scroll_not_active_bg": "#c1c1c1",
171 "horizontal_scroll_not_active_bg": "#c1c1c1",
172 "vertical_scroll_pressed_bg": "#707070",
173 "horizontal_scroll_pressed_bg": "#707070",
174 "vertical_scroll_active_fg": "#707070",
175 "horizontal_scroll_active_fg": "#707070",
176 "vertical_scroll_not_active_fg": "#c1c1c1",
177 "horizontal_scroll_not_active_fg": "#c1c1c1",
178 "vertical_scroll_pressed_fg": "#707070",
179 "horizontal_scroll_pressed_fg": "#707070",
180 }
181 )
182
183 theme_dark: dict[str, str] = DotDict(
184 {
185 "popup_menu_fg": "white",
186 "popup_menu_bg": "gray15",
187 "popup_menu_highlight_bg": "gray40",
188 "popup_menu_highlight_fg": "white",
189 "index_hidden_rows_expander_bg": "gray30",
190 "header_hidden_columns_expander_bg": "gray30",
191 "header_bg": "#141414",
192 "header_border_fg": "#505054",
193 "header_grid_fg": "#8C8C8C",
194 "header_fg": "gray70",
195 "header_editor_bg": "#141414",
196 "header_editor_fg": "gray70",
197 "header_editor_select_bg": "#60696e",
198 "header_editor_select_fg": "#FFFFFF",
199 "header_selected_cells_bg": "#4b4b4b",
200 "header_selected_cells_fg": "#6aa2fc",
201 "index_bg": "#141414",
202 "index_border_fg": "#505054",
203 "index_grid_fg": "#8C8C8C",
204 "index_fg": "gray70",
205 "index_editor_bg": "#141414",
206 "index_editor_fg": "gray70",
207 "index_editor_select_bg": "#60696e",
208 "index_editor_select_fg": "#FFFFFF",
209 "index_selected_cells_bg": "#4b4b4b",
210 "index_selected_cells_fg": "#6aa2fc",
211 "top_left_bg": "#28282a",
212 "top_left_fg": "#505054",
213 "top_left_fg_highlight": "white",
214 "table_bg": "#000000",
215 "table_grid_fg": "#595959",
216 "table_fg": "#E3E3E3",
217 "table_editor_bg": "#000000",
218 "table_editor_fg": "#E3E3E3",
219 "table_editor_select_bg": "#60696e",
220 "table_editor_select_fg": "#FFFFFF",
221 "table_selected_box_cells_fg": "#6aa2fc",
222 "table_selected_box_rows_fg": "#6aa2fc",
223 "table_selected_box_columns_fg": "#6aa2fc",
224 "table_selected_cells_border_fg": "#6aa2fc",
225 "table_selected_cells_bg": "#404040",
226 "table_selected_cells_fg": "#F7F7F7",
227 "resizing_line_fg": "white",
228 "drag_and_drop_bg": "#ecf0f2",
229 "outline_color": "gray95",
230 "header_selected_columns_bg": "#4489F7",
231 "header_selected_columns_fg": "white",
232 "index_selected_rows_bg": "#4489F7",
233 "index_selected_rows_fg": "white",
234 "table_selected_rows_border_fg": "#4489F7",
235 "table_selected_rows_bg": "#404040",
236 "table_selected_rows_fg": "#F7F7F7",
237 "table_selected_columns_border_fg": "#4489F7",
238 "table_selected_columns_bg": "#404040",
239 "table_selected_columns_fg": "#F7F7F7",
240 "tree_arrow_fg": "#8C8C8C",
241 "selected_cells_tree_arrow_fg": "#6aa2fc",
242 "selected_rows_tree_arrow_fg": "white",
243 "vertical_scroll_background": "#3b3b3d",
244 "horizontal_scroll_background": "#3b3b3d",
245 "vertical_scroll_troughcolor": "#000000",
246 "horizontal_scroll_troughcolor": "#000000",
247 "vertical_scroll_lightcolor": "gray50",
248 "horizontal_scroll_lightcolor": "gray50",
249 "vertical_scroll_darkcolor": "gray20",
250 "horizontal_scroll_darkcolor": "gray20",
251 "vertical_scroll_relief": "flat",
252 "horizontal_scroll_relief": "flat",
253 "vertical_scroll_troughrelief": "flat",
254 "horizontal_scroll_troughrelief": "flat",
255 "vertical_scroll_bordercolor": "#000000",
256 "horizontal_scroll_bordercolor": "#000000",
257 "vertical_scroll_active_bg": "#a0a0a0",
258 "horizontal_scroll_active_bg": "#a0a0a0",
259 "vertical_scroll_not_active_bg": "#3b3b3d",
260 "horizontal_scroll_not_active_bg": "#3b3b3d",
261 "vertical_scroll_pressed_bg": "#a0a0a0",
262 "horizontal_scroll_pressed_bg": "#a0a0a0",
263 "vertical_scroll_active_fg": "#a0a0a0",
264 "horizontal_scroll_active_fg": "#a0a0a0",
265 "vertical_scroll_not_active_fg": "#3b3b3d",
266 "horizontal_scroll_not_active_fg": "#3b3b3d",
267 "vertical_scroll_pressed_fg": "#a0a0a0",
268 "horizontal_scroll_pressed_fg": "#a0a0a0",
269 }
270 )
271
272 theme_black: dict[str, str] = DotDict(
273 {
274 "popup_menu_fg": "white",
275 "popup_menu_bg": "gray15",
276 "popup_menu_highlight_bg": "gray40",
277 "popup_menu_highlight_fg": "white",
278 "index_hidden_rows_expander_bg": "gray30",
279 "header_hidden_columns_expander_bg": "gray30",
280 "header_bg": "#000000",
281 "header_border_fg": "#505054",
282 "header_grid_fg": "#8C8C8C",
283 "header_fg": "#FBB86C",
284 "header_editor_bg": "#000000",
285 "header_editor_fg": "#FBB86C",
286 "header_editor_select_bg": "#545c61",
287 "header_editor_select_fg": "#FBB86C",
288 "header_selected_cells_bg": "#4b4b4b",
289 "header_selected_cells_fg": "#FBB86C",
290 "index_bg": "#000000",
291 "index_border_fg": "#505054",
292 "index_grid_fg": "#8C8C8C",
293 "index_fg": "#FBB86C",
294 "index_editor_bg": "#000000",
295 "index_editor_fg": "#FBB86C",
296 "index_editor_select_bg": "#545c61",
297 "index_editor_select_fg": "#FBB86C",
298 "index_selected_cells_bg": "#4b4b4b",
299 "index_selected_cells_fg": "#FBB86C",
300 "top_left_bg": "#141416",
301 "top_left_fg": "#505054",
302 "top_left_fg_highlight": "#FBB86C",
303 "table_bg": "#000000",
304 "table_grid_fg": "#595959",
305 "table_fg": "#E3E3E3",
306 "table_editor_bg": "#000000",
307 "table_editor_fg": "#E3E3E3",
308 "table_editor_select_bg": "#545c61",
309 "table_editor_select_fg": "#E3E3E3",
310 "table_selected_box_cells_fg": "#FBB86C",
311 "table_selected_box_rows_fg": "#FBB86C",
312 "table_selected_box_columns_fg": "#FBB86C",
313 "table_selected_cells_border_fg": "#FBB86C",
314 "table_selected_cells_bg": "#404040",
315 "table_selected_cells_fg": "#F7F7F7",
316 "resizing_line_fg": "white",
317 "drag_and_drop_bg": "#ecf0f2",
318 "outline_color": "gray95",
319 "header_selected_columns_bg": "#FBB86C",
320 "header_selected_columns_fg": "#000000",
321 "index_selected_rows_bg": "#FBB86C",
322 "index_selected_rows_fg": "#000000",
323 "table_selected_rows_border_fg": "#FBB86C",
324 "table_selected_rows_bg": "#404040",
325 "table_selected_rows_fg": "#F7F7F7",
326 "table_selected_columns_border_fg": "#FBB86C",
327 "table_selected_columns_bg": "#404040",
328 "table_selected_columns_fg": "#F7F7F7",
329 "tree_arrow_fg": "#8C8C8C",
330 "selected_cells_tree_arrow_fg": "#FBB86C",
331 "selected_rows_tree_arrow_fg": "#000000",
332 "vertical_scroll_background": "#3b3a39",
333 "horizontal_scroll_background": "#3b3a39",
334 "vertical_scroll_troughcolor": "#000000",
335 "horizontal_scroll_troughcolor": "#000000",
336 "vertical_scroll_lightcolor": "gray50",
337 "horizontal_scroll_lightcolor": "gray50",
338 "vertical_scroll_darkcolor": "gray20",
339 "horizontal_scroll_darkcolor": "gray20",
340 "vertical_scroll_relief": "flat",
341 "horizontal_scroll_relief": "flat",
342 "vertical_scroll_troughrelief": "flat",
343 "horizontal_scroll_troughrelief": "flat",
344 "vertical_scroll_bordercolor": "#000000",
345 "horizontal_scroll_bordercolor": "#000000",
346 "vertical_scroll_active_bg": "#a0a0a0",
347 "horizontal_scroll_active_bg": "#a0a0a0",
348 "vertical_scroll_not_active_bg": "#3b3a39",
349 "horizontal_scroll_not_active_bg": "#3b3a39",
350 "vertical_scroll_pressed_bg": "#a0a0a0",
351 "horizontal_scroll_pressed_bg": "#a0a0a0",
352 "vertical_scroll_active_fg": "#a0a0a0",
353 "horizontal_scroll_active_fg": "#a0a0a0",
354 "vertical_scroll_not_active_fg": "#3b3a39",
355 "horizontal_scroll_not_active_fg": "#3b3a39",
356 "vertical_scroll_pressed_fg": "#a0a0a0",
357 "horizontal_scroll_pressed_fg": "#a0a0a0",
358 }
359 )
360
361 theme_dark_blue: dict[str, str] = DotDict(theme_dark.copy())
362 theme_dark_blue["top_left_fg_highlight"] = "#94EBEB"
363 theme_dark_blue["table_selected_box_cells_fg"] = "#94EBEB"
364 theme_dark_blue["table_selected_box_rows_fg"] = "#94EBEB"
365 theme_dark_blue["table_selected_box_columns_fg"] = "#94EBEB"
366 theme_dark_blue["table_selected_cells_border_fg"] = "#94EBEB"
367 theme_dark_blue["table_selected_rows_border_fg"] = "#94EBEB"
368 theme_dark_blue["table_selected_columns_border_fg"] = "#94EBEB"
369 theme_dark_blue["header_fg"] = "#94EBEB"
370 theme_dark_blue["header_selected_cells_fg"] = "#94EBEB"
371 theme_dark_blue["header_selected_columns_fg"] = "#000000"
372 theme_dark_blue["header_selected_columns_bg"] = "#94EBEB"
373 theme_dark_blue["index_fg"] = "#94EBEB"
374 theme_dark_blue["index_selected_rows_bg"] = "#94EBEB"
375 theme_dark_blue["index_selected_rows_fg"] = "#000000"
376 theme_dark_blue["index_selected_cells_fg"] = "#94EBEB"
377 theme_dark_blue["selected_rows_tree_arrow_fg"] = "#000000"
378 theme_dark_blue["selected_cells_tree_arrow_fg"] = "#94EBEB"
379 theme_dark_blue["header_editor_fg"] = "#94EBEB"
380 theme_dark_blue["header_editor_select_fg"] = "#94EBEB"
381 theme_dark_blue["index_editor_fg"] = "#94EBEB"
382 theme_dark_blue["index_editor_select_fg"] = "#94EBEB"
383 theme_dark_blue["header_editor_select_bg"] = "#545c61"
384 theme_dark_blue["index_editor_select_bg"] = "#545c61"
385 theme_dark_blue["table_editor_select_bg"] = "#545c61"
386
387
388 theme_dark_green: dict[str, str] = DotDict(theme_dark.copy())
389 theme_dark_green["header_fg"] = "#66FFBF"
390 theme_dark_green["header_selected_cells_fg"] = "#66FFBF"
391 theme_dark_green["index_fg"] = "#66FFBF"
392 theme_dark_green["index_selected_cells_fg"] = "#66FFBF"
393 theme_dark_green["top_left_fg_highlight"] = "#66FFBF"
394 theme_dark_green["table_selected_box_cells_fg"] = "#66FFBF"
395 theme_dark_green["table_selected_box_rows_fg"] = "#66FFBF"
396 theme_dark_green["table_selected_box_columns_fg"] = "#66FFBF"
397 theme_dark_green["table_selected_cells_border_fg"] = "#66FFBF"
398 theme_dark_green["header_selected_columns_bg"] = "#66FFBF"
399 theme_dark_green["header_selected_columns_fg"] = "#000000"
400 theme_dark_green["index_selected_rows_bg"] = "#66FFBF"
401 theme_dark_green["index_selected_rows_fg"] = "#000000"
402 theme_dark_green["table_selected_rows_border_fg"] = "#66FFBF"
403 theme_dark_green["table_selected_columns_border_fg"] = "#66FFBF"
404 theme_dark_green["selected_rows_tree_arrow_fg"] = "#000000"
405 theme_dark_green["selected_cells_tree_arrow_fg"] = "#000000"
406 theme_dark_green["header_editor_fg"] = "#66FFBF"
407 theme_dark_green["header_editor_select_fg"] = "#66FFBF"
408 theme_dark_green["index_editor_fg"] = "#66FFBF"
409 theme_dark_green["index_editor_select_fg"] = "#66FFBF"
410 theme_dark_green["header_editor_select_bg"] = "#545c61"
411 theme_dark_green["index_editor_select_bg"] = "#545c61"
412 theme_dark_green["table_editor_select_bg"] = "#545c61"