]> git.rmz.io Git - dotfiles.git/blob - qutebrowser/themes/nord-qutebrowser.py
nvim: force telescope as lazyvim picker
[dotfiles.git] / qutebrowser / themes / nord-qutebrowser.py
1 # noqa: D100
2 from qutebrowser.config.configfiles import ConfigAPI
3 from qutebrowser.config.config import ConfigContainer
4
5 c: ConfigContainer = c # noqa: F821 pylint: disable=E0602,C0103
6 config: ConfigAPI = config # noqa: F821 pylint: disable=E0602,C0103
7
8 # https://github.com/Linuus/nord-qutebrowser
9
10 nord = {
11 # Polar Night
12 'nord0': '#2e3440',
13 'nord1': '#3b4252',
14 'nord2': '#434c5e',
15 'nord3': '#4c566a',
16 # Snow Storm
17 'nord4': '#d8dee9',
18 'nord5': '#e5e9f0',
19 'nord6': '#eceff4',
20 # Frost
21 'nord7': '#8fbcbb',
22 'nord8': '#88c0d0',
23 'nord9': '#81a1c1',
24 'nord10': '#5e81ac',
25 # Aurora
26 'nord11': '#bf616a',
27 'nord12': '#d08770',
28 'nord13': '#ebcb8b',
29 'nord14': '#a3be8c',
30 'nord15': '#b48ead',
31 }
32
33 ## Background color of the completion widget category headers.
34 ## Type: QssColor
35 c.colors.completion.category.bg = 'qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 '+nord['nord1']+', stop:1 '+nord['nord0']+')'
36
37 ## Bottom border color of the completion widget category headers.
38 ## Type: QssColor
39 c.colors.completion.category.border.bottom = nord['nord0']
40
41 ## Top border color of the completion widget category headers.
42 ## Type: QssColor
43 c.colors.completion.category.border.top = nord['nord1']
44
45 ## Foreground color of completion widget category headers.
46 ## Type: QtColor
47 c.colors.completion.category.fg = nord['nord5']
48
49 ## Background color of the completion widget for even rows.
50 ## Type: QssColor
51 c.colors.completion.even.bg = nord['nord1']
52
53 ## Text color of the completion widget. May be a single color to use for
54 ## all columns or a list of three colors, one for each column.
55 ## Type: List of QtColor, or QtColor
56 c.colors.completion.fg = nord['nord4']
57
58 ## Background color of the selected completion item.
59 ## Type: QssColor
60 c.colors.completion.item.selected.bg = nord['nord3']
61
62 ## Bottom border color of the selected completion item.
63 ## Type: QssColor
64 c.colors.completion.item.selected.border.bottom = nord['nord3']
65
66 ## Top border color of the selected completion item.
67 ## Type: QssColor
68 c.colors.completion.item.selected.border.top = nord['nord3']
69
70 ## Foreground color of the selected completion item.
71 ## Type: QtColor
72 c.colors.completion.item.selected.fg = nord['nord6']
73
74 ## Foreground color of the matched text in the selected completion item.
75 ## Type: QtColor
76 c.colors.completion.item.selected.match.fg = nord['nord13']
77
78 ## Foreground color of the matched text in the completion.
79 ## Type: QtColor
80 c.colors.completion.match.fg = nord['nord13']
81
82 ## Background color of the completion widget for odd rows.
83 ## Type: QssColor
84 c.colors.completion.odd.bg = nord['nord2']
85
86 ## Color of the scrollbar in the completion view.
87 ## Type: QssColor
88 c.colors.completion.scrollbar.bg = nord['nord1']
89
90 ## Color of the scrollbar handle in the completion view.
91 ## Type: QssColor
92 c.colors.completion.scrollbar.fg = nord['nord5']
93
94 ## Background color of disabled items in the context menu. If set to
95 ## null, the Qt default is used.
96 ## Type: QssColor
97 c.colors.contextmenu.disabled.bg = nord['nord0']
98
99 ## Foreground color of disabled items in the context menu. If set to
100 ## null, the Qt default is used.
101 ## Type: QssColor
102 c.colors.contextmenu.disabled.fg = nord['nord3']
103
104 ## Background color of the context menu. If set to null, the Qt default
105 ## is used.
106 ## Type: QssColor
107 c.colors.contextmenu.menu.bg = nord['nord1']
108
109 ## Foreground color of the context menu. If set to null, the Qt default
110 ## is used.
111 ## Type: QssColor
112 c.colors.contextmenu.menu.fg = nord['nord6']
113
114 ## Background color of the context menu's selected item. If set to null,
115 ## the Qt default is used.
116 ## Type: QssColor
117 c.colors.contextmenu.selected.bg = nord['nord1']
118
119 ## Foreground color of the context menu's selected item. If set to null,
120 ## the Qt default is used.
121 ## Type: QssColor
122 c.colors.contextmenu.selected.fg = nord['nord6']
123
124 ## Background color for the download bar.
125 ## Type: QssColor
126 c.colors.downloads.bar.bg = nord['nord0']
127
128 ## Background color for downloads with errors.
129 ## Type: QtColor
130 c.colors.downloads.error.bg = nord['nord11']
131
132 ## Foreground color for downloads with errors.
133 ## Type: QtColor
134 c.colors.downloads.error.fg = nord['nord5']
135
136 ## Color gradient start for download backgrounds.
137 ## Type: QtColor
138 c.colors.downloads.start.bg = nord['nord12']
139
140 ## Color gradient start for download text.
141 ## Type: QtColor
142 c.colors.downloads.start.fg = nord['nord2']
143
144 ## Color gradient stop for download backgrounds.
145 ## Type: QtColor
146 c.colors.downloads.stop.bg = nord['nord14']
147
148 ## Color gradient end for download text.
149 ## Type: QtColor
150 c.colors.downloads.stop.fg = nord['nord2']
151
152 ## Color gradient interpolation system for download backgrounds.
153 ## Type: ColorSystem
154 ## Valid values:
155 ## - rgb: Interpolate in the RGB color system.
156 ## - hsv: Interpolate in the HSV color system.
157 ## - hsl: Interpolate in the HSL color system.
158 ## - none: Don't show a gradient.
159 c.colors.downloads.system.bg = 'hsv'
160
161 ## Color gradient interpolation system for download text.
162 ## Type: ColorSystem
163 ## Valid values:
164 ## - rgb: Interpolate in the RGB color system.
165 ## - hsv: Interpolate in the HSV color system.
166 ## - hsl: Interpolate in the HSL color system.
167 ## - none: Don't show a gradient.
168 c.colors.downloads.system.fg = "none"
169
170 ## Background color for hints. Note that you can use a `rgba(...)` value
171 ## for transparency.
172 ## Type: QssColor
173 #TODO use gradient?
174 # c.colors.hints.bg = 'qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 rgba(255, 247, 133, 0.8), stop:1 rgba(255, 197, 66, 0.8))'
175 c.colors.hints.bg = nord['nord13']
176
177 ## Font color for hints.
178 ## Type: QssColor
179 c.colors.hints.fg = nord['nord0']
180
181 ## Font color for the matched part of hints.
182 ## Type: QtColor
183 c.colors.hints.match.fg = nord['nord10']
184
185 ## Background color of the keyhint widget.
186 ## Type: QssColor
187 c.colors.keyhint.bg = nord['nord1']
188
189 ## Text color for the keyhint widget.
190 ## Type: QssColor
191 c.colors.keyhint.fg = nord['nord5']
192
193 ## Highlight color for keys to complete the current keychain.
194 ## Type: QssColor
195 c.colors.keyhint.suffix.fg = nord['nord13']
196
197 ## Background color of an error message.
198 ## Type: QssColor
199 c.colors.messages.error.bg = nord['nord11']
200
201 ## Border color of an error message.
202 ## Type: QssColor
203 c.colors.messages.error.border = nord['nord11']
204
205 ## Foreground color of an error message.
206 ## Type: QssColor
207 c.colors.messages.error.fg = nord['nord5']
208
209 ## Background color of an info message.
210 ## Type: QssColor
211 c.colors.messages.info.bg = nord['nord8']
212
213 ## Border color of an info message.
214 ## Type: QssColor
215 c.colors.messages.info.border = nord['nord8']
216
217 ## Foreground color of an info message.
218 ## Type: QssColor
219 c.colors.messages.info.fg = nord['nord5']
220
221 ## Background color of a warning message.
222 ## Type: QssColor
223 c.colors.messages.warning.bg = nord['nord12']
224
225 ## Border color of a warning message.
226 ## Type: QssColor
227 c.colors.messages.warning.border = nord['nord12']
228
229 ## Foreground color of a warning message.
230 ## Type: QssColor
231 c.colors.messages.warning.fg = nord['nord5']
232
233 ## Background color for prompts.
234 ## Type: QssColor
235 c.colors.prompts.bg = nord['nord2']
236
237 ## Border used around UI elements in prompts.
238 ## Type: String
239 c.colors.prompts.border = '1px solid ' + nord['nord0']
240
241 ## Foreground color for prompts.
242 ## Type: QssColor
243 c.colors.prompts.fg = nord['nord5']
244
245 ## Background color for the selected item in filename prompts.
246 ## Type: QssColor
247 c.colors.prompts.selected.bg = nord['nord3']
248
249 ## Foreground color for the selected item in filename prompts.
250 ## Type: QssColor
251 c.colors.prompts.selected.fg = nord['nord5']
252
253 ## Background color of the statusbar in caret mode.
254 ## Type: QssColor
255 c.colors.statusbar.caret.bg = nord['nord15']
256
257 ## Foreground color of the statusbar in caret mode.
258 ## Type: QssColor
259 c.colors.statusbar.caret.fg = nord['nord5']
260
261 ## Background color of the statusbar in caret mode with a selection.
262 ## Type: QssColor
263 c.colors.statusbar.caret.selection.bg = nord['nord15']
264
265 ## Foreground color of the statusbar in caret mode with a selection.
266 ## Type: QssColor
267 c.colors.statusbar.caret.selection.fg = nord['nord5']
268
269 ## Background color of the statusbar in command mode.
270 ## Type: QssColor
271 c.colors.statusbar.command.bg = nord['nord2']
272
273 ## Foreground color of the statusbar in command mode.
274 ## Type: QssColor
275 c.colors.statusbar.command.fg = nord['nord5']
276
277 ## Background color of the statusbar in private browsing + command mode.
278 ## Type: QssColor
279 c.colors.statusbar.command.private.bg = nord['nord2']
280
281 ## Foreground color of the statusbar in private browsing + command mode.
282 ## Type: QssColor
283 c.colors.statusbar.command.private.fg = nord['nord5']
284
285 ## Background color of the statusbar in insert mode.
286 ## Type: QssColor
287 c.colors.statusbar.insert.bg = nord['nord3']
288
289 ## Foreground color of the statusbar in insert mode.
290 ## Type: QssColor
291 c.colors.statusbar.insert.fg = nord['nord6']
292
293 ## Background color of the statusbar.
294 ## Type: QssColor
295 c.colors.statusbar.normal.bg = nord['nord0']
296
297 ## Foreground color of the statusbar.
298 ## Type: QssColor
299 c.colors.statusbar.normal.fg = nord['nord5']
300
301 ## Background color of the statusbar in passthrough mode.
302 ## Type: QssColor
303 c.colors.statusbar.passthrough.bg = nord['nord10']
304
305 ## Foreground color of the statusbar in passthrough mode.
306 ## Type: QssColor
307 c.colors.statusbar.passthrough.fg = nord['nord5']
308
309 ## Background color of the statusbar in private browsing mode.
310 ## Type: QssColor
311 c.colors.statusbar.private.bg = nord['nord3']
312
313 ## Foreground color of the statusbar in private browsing mode.
314 ## Type: QssColor
315 c.colors.statusbar.private.fg = nord['nord5']
316
317 ## Background color of the progress bar.
318 ## Type: QssColor
319 c.colors.statusbar.progress.bg = nord['nord5']
320
321 ## Foreground color of the URL in the statusbar on error.
322 ## Type: QssColor
323 c.colors.statusbar.url.error.fg = nord['nord11']
324
325 ## Default foreground color of the URL in the statusbar.
326 ## Type: QssColor
327 c.colors.statusbar.url.fg = nord['nord5']
328
329 ## Foreground color of the URL in the statusbar for hovered links.
330 ## Type: QssColor
331 c.colors.statusbar.url.hover.fg = nord['nord8']
332
333 ## Foreground color of the URL in the statusbar on successful load
334 ## (http).
335 ## Type: QssColor
336 c.colors.statusbar.url.success.http.fg = nord['nord5']
337
338 ## Foreground color of the URL in the statusbar on successful load
339 ## (https).
340 ## Type: QssColor
341 c.colors.statusbar.url.success.https.fg = nord['nord14']
342
343 ## Foreground color of the URL in the statusbar when there's a warning.
344 ## Type: QssColor
345 c.colors.statusbar.url.warn.fg = nord['nord12']
346
347 ## Background color of the tab bar.
348 ## Type: QssColor
349 c.colors.tabs.bar.bg = nord['nord3']
350
351 ## Background color of unselected even tabs.
352 ## Type: QtColor
353 c.colors.tabs.even.bg = nord['nord3']
354
355 ## Foreground color of unselected even tabs.
356 ## Type: QtColor
357 c.colors.tabs.even.fg = nord['nord5']
358
359 ## Color for the tab indicator on errors.
360 ## Type: QtColor
361 c.colors.tabs.indicator.error = nord['nord11']
362
363 ## Color gradient start for the tab indicator.
364 ## Type: QtColor
365 c.colors.tabs.indicator.start = nord['nord12']
366
367 ## Color gradient end for the tab indicator.
368 ## Type: QtColor
369 c.colors.tabs.indicator.stop = nord['nord14']
370
371 ## Color gradient interpolation system for the tab indicator.
372 ## Type: ColorSystem
373 ## Valid values:
374 ## - rgb: Interpolate in the RGB color system.
375 ## - hsv: Interpolate in the HSV color system.
376 ## - hsl: Interpolate in the HSL color system.
377 ## - none: Don't show a gradient.
378 c.colors.tabs.indicator.system = 'hsv'
379
380 ## Background color of unselected odd tabs.
381 ## Type: QtColor
382 c.colors.tabs.odd.bg = nord['nord3']
383
384 ## Foreground color of unselected odd tabs.
385 ## Type: QtColor
386 c.colors.tabs.odd.fg = nord['nord5']
387
388 ## Background color of pinned unselected even tabs.
389 ## Type: QtColor
390 c.colors.tabs.pinned.even.bg = nord['nord10']
391
392 ## Foreground color of pinned unselected even tabs.
393 ## Type: QtColor
394 c.colors.tabs.pinned.even.fg = nord['nord4']
395
396 ## Background color of pinned unselected odd tabs.
397 ## Type: QtColor
398 c.colors.tabs.pinned.odd.bg = c.colors.tabs.pinned.even.bg
399
400 ## Foreground color of pinned unselected odd tabs.
401 ## Type: QtColor
402 c.colors.tabs.pinned.odd.fg = c.colors.tabs.pinned.even.fg
403
404 ## Background color of pinned selected even tabs.
405 ## Type: QtColor
406 c.colors.tabs.pinned.selected.even.bg = c.colors.tabs.selected.even.bg
407
408 ## Foreground color of pinned selected even tabs.
409 ## Type: QtColor
410 c.colors.tabs.pinned.selected.even.fg = c.colors.tabs.selected.even.fg
411
412 ## Background color of pinned selected odd tabs.
413 ## Type: QtColor
414 c.colors.tabs.pinned.selected.odd.bg = c.colors.tabs.selected.odd.bg
415
416 ## Foreground color of pinned selected odd tabs.
417 ## Type: QtColor
418 c.colors.tabs.pinned.selected.odd.fg = c.colors.tabs.selected.odd.fg
419
420 ## Background color of selected even tabs.
421 ## Type: QtColor
422 c.colors.tabs.selected.even.bg = nord['nord0']
423
424 ## Foreground color of selected even tabs.
425 ## Type: QtColor
426 c.colors.tabs.selected.even.fg = nord['nord5']
427
428 ## Background color of selected odd tabs.
429 ## Type: QtColor
430 c.colors.tabs.selected.odd.bg = nord['nord0']
431
432 ## Foreground color of selected odd tabs.
433 ## Type: QtColor
434 c.colors.tabs.selected.odd.fg = nord['nord5']
435
436 ## Background color of tooltips. If set to null, the Qt default is used.
437 ## Type: QssColor
438 c.colors.tooltip.bg = None
439
440 ## Foreground color of tooltips. If set to null, the Qt default is used.
441 ## Type: QssColor
442 c.colors.tooltip.fg = None
443
444 ## Background color for webpages if unset (or empty to use the theme's
445 ## color).
446 ## Type: QtColor
447 c.colors.webpage.bg = nord['nord4']