codis 1.1.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- codis-1.1.1.dist-info/METADATA +194 -0
- codis-1.1.1.dist-info/RECORD +329 -0
- codis-1.1.1.dist-info/WHEEL +5 -0
- codis-1.1.1.dist-info/entry_points.txt +5 -0
- codis-1.1.1.dist-info/licenses/LICENSE +21 -0
- codis-1.1.1.dist-info/top_level.txt +2 -0
- run.py +190 -0
- src/__init__.py +1 -0
- src/__main__.py +81 -0
- src/_app_build.py +1507 -0
- src/_app_editor.py +1274 -0
- src/_app_kui.py +825 -0
- src/_app_lsp.py +625 -0
- src/_app_recovery.py +189 -0
- src/_app_settings.py +1385 -0
- src/_app_tools.py +2471 -0
- src/_app_webpreview.py +126 -0
- src/_font_safety.py +127 -0
- src/_shells.py +172 -0
- src/app.py +1488 -0
- src/chat/__init__.py +1 -0
- src/chat/adapters/__init__.py +33 -0
- src/chat/adapters/base.py +209 -0
- src/chat/adapters/discord.py +190 -0
- src/chat/adapters/http.py +78 -0
- src/chat/adapters/irc.py +360 -0
- src/chat/adapters/matrix.py +219 -0
- src/chat/adapters/mattermost.py +178 -0
- src/chat/adapters/mqtt.py +165 -0
- src/chat/adapters/slack.py +204 -0
- src/chat/adapters/telegram.py +117 -0
- src/chat/adapters/ws.py +154 -0
- src/chat/adapters/xmpp.py +337 -0
- src/chat/history.py +76 -0
- src/chat/models.py +207 -0
- src/chat/probe.py +79 -0
- src/chat/session.py +446 -0
- src/chat/util.py +125 -0
- src/collab/__init__.py +1 -0
- src/collab/net.py +411 -0
- src/collab/ot.py +311 -0
- src/collab/session.py +141 -0
- src/collab/tk_adapter.py +134 -0
- src/config.py +335 -0
- src/constants.py +2552 -0
- src/dep_catalog.py +446 -0
- src/diff/__init__.py +1 -0
- src/diff/engine.py +247 -0
- src/dpi.py +30 -0
- src/editor/__init__.py +1 -0
- src/editor/_pane_lsp.py +2937 -0
- src/editor/_pane_utils.py +171 -0
- src/editor/autocomplete.py +607 -0
- src/editor/code_folding.py +836 -0
- src/editor/color_preview.py +382 -0
- src/editor/complexity_lens.py +281 -0
- src/editor/diff_pane.py +623 -0
- src/editor/file_watcher.py +144 -0
- src/editor/focus_block.py +236 -0
- src/editor/heatmap.py +141 -0
- src/editor/inlay_hints.py +366 -0
- src/editor/inline_blame.py +429 -0
- src/editor/kdocs.py +3376 -0
- src/editor/large_file.py +488 -0
- src/editor/ligatures.py +180 -0
- src/editor/line_numbers.py +598 -0
- src/editor/minimap.py +691 -0
- src/editor/multi_cursor.py +269 -0
- src/editor/pane.py +2082 -0
- src/editor/rhythm.py +206 -0
- src/editor/save_hooks.py +43 -0
- src/editor/smart_selection.py +425 -0
- src/editor/smart_tips.py +719 -0
- src/editor/snippets.py +411 -0
- src/editor/sticky_note_gutter.py +410 -0
- src/editor/sticky_scroll.py +385 -0
- src/editor/suggest.py +464 -0
- src/editor/text_transforms.py +310 -0
- src/editor/vim_mode.py +1074 -0
- src/events/__init__.py +84 -0
- src/events/bus.py +427 -0
- src/events/correlator.py +244 -0
- src/events/kinds.py +125 -0
- src/events/pipeline.py +264 -0
- src/events/stream.py +416 -0
- src/events/window.py +204 -0
- src/extcompat/__init__.py +19 -0
- src/extcompat/code/__init__.py +13 -0
- src/extcompat/code/consent.py +162 -0
- src/extcompat/code/host.py +353 -0
- src/extcompat/code/hosts/py_host.py +763 -0
- src/extcompat/code/locate.py +105 -0
- src/extcompat/code/manager.py +325 -0
- src/extcompat/code/permissions.py +154 -0
- src/extcompat/code/sandbox.py +60 -0
- src/extcompat/colors.py +131 -0
- src/extcompat/common.py +184 -0
- src/extcompat/cson.py +269 -0
- src/extcompat/formats/__init__.py +22 -0
- src/extcompat/formats/_tm.py +189 -0
- src/extcompat/formats/_util.py +31 -0
- src/extcompat/formats/base16.py +66 -0
- src/extcompat/formats/brackets.py +172 -0
- src/extcompat/formats/eclipse.py +193 -0
- src/extcompat/formats/emacs.py +361 -0
- src/extcompat/formats/geany.py +147 -0
- src/extcompat/formats/generic.py +184 -0
- src/extcompat/formats/gtksource.py +117 -0
- src/extcompat/formats/helix.py +91 -0
- src/extcompat/formats/jetbrains.py +343 -0
- src/extcompat/formats/kate.py +130 -0
- src/extcompat/formats/micro.py +131 -0
- src/extcompat/formats/nano.py +111 -0
- src/extcompat/formats/notepadpp.py +140 -0
- src/extcompat/formats/pulsar.py +165 -0
- src/extcompat/formats/pyides.py +163 -0
- src/extcompat/formats/sublime.py +340 -0
- src/extcompat/jsonc.py +65 -0
- src/extcompat/lessish.py +128 -0
- src/extcompat/manager.py +122 -0
- src/extcompat/market/__init__.py +63 -0
- src/extcompat/market/sources.py +211 -0
- src/extcompat/model.py +88 -0
- src/extcompat/net.py +228 -0
- src/extcompat/openvsx.py +63 -0
- src/extcompat/readers.py +362 -0
- src/extcompat/registry.py +73 -0
- src/extcompat/safexml.py +63 -0
- src/extcompat/sexp.py +187 -0
- src/extcompat/sources.py +105 -0
- src/extcompat/store.py +276 -0
- src/extcompat/textmate.py +214 -0
- src/extcompat/themes.py +487 -0
- src/extcompat/yamlite.py +294 -0
- src/fileio.py +94 -0
- src/fs_ops.py +106 -0
- src/i18n.py +233 -0
- src/ia/__init__.py +1 -0
- src/ia/actions.py +295 -0
- src/ia/approval_gate.py +672 -0
- src/ia/checkpoints.py +308 -0
- src/ia/context_builder.py +921 -0
- src/ia/dialdiff.py +408 -0
- src/ia/iaspace.py +2078 -0
- src/ia/pair.py +296 -0
- src/ia/providers.py +954 -0
- src/ia/session.py +335 -0
- src/ia/toolbox.py +2524 -0
- src/launcher_actions.py +204 -0
- src/lint/__init__.py +1 -0
- src/lint/manager.py +1058 -0
- src/locales/.translate_manifest.json +64170 -0
- src/locales/de.json +4936 -0
- src/locales/en.json +4936 -0
- src/locales/es.json +4936 -0
- src/locales/fr.json +4936 -0
- src/locales/it.json +4936 -0
- src/locales/ja.json +4936 -0
- src/locales/ko.json +4936 -0
- src/locales/nl.json +4936 -0
- src/locales/pl.json +4936 -0
- src/locales/pt-BR.json +4936 -0
- src/locales/ru.json +4936 -0
- src/locales/tr.json +4936 -0
- src/locales/uk.json +4936 -0
- src/locales/zh-CN.json +4936 -0
- src/lsp/__init__.py +26 -0
- src/lsp/client.py +2300 -0
- src/lsp/dap_client.py +480 -0
- src/lsp/edits.py +84 -0
- src/lsp/framing.py +73 -0
- src/lsp/protocol.py +931 -0
- src/main.py +260 -0
- src/memtrim.py +91 -0
- src/plugins/__init__.py +1 -0
- src/plugins/api.py +1761 -0
- src/plugins/loader.py +571 -0
- src/plugins/process_runner.py +519 -0
- src/plugins/registry.py +342 -0
- src/plugins/safety.py +367 -0
- src/plugins/startup.py +195 -0
- src/plugins/store.py +1178 -0
- src/proc_registry.py +278 -0
- src/pyexec.py +394 -0
- src/recovery.py +259 -0
- src/stall_trace.py +92 -0
- src/standalone.py +1070 -0
- src/startup_profile.py +35 -0
- src/syntax/__init__.py +1 -0
- src/syntax/highlighter.py +776 -0
- src/syntax/patterns.py +584 -0
- src/system_profile.py +430 -0
- src/terminal/backends.py +658 -0
- src/terminal/internal.py +346 -0
- src/terminal/keys.py +138 -0
- src/terminal/palette.py +67 -0
- src/terminal/session.py +283 -0
- src/terminal/shells.py +79 -0
- src/terminal/view.py +489 -0
- src/terminal/vt.py +870 -0
- src/textfmt.py +22 -0
- src/theme/__init__.py +1 -0
- src/theme/base.py +1281 -0
- src/theme/colors.py +49 -0
- src/theme/manager.py +602 -0
- src/theme/utils.py +312 -0
- src/toolbox.py +329 -0
- src/trash_core.py +531 -0
- src/ui/__init__.py +1 -0
- src/ui/_perf_utils.py +285 -0
- src/ui/_persistence_utils.py +93 -0
- src/ui/accessibility.py +843 -0
- src/ui/activity_bar.py +860 -0
- src/ui/app_embed.py +434 -0
- src/ui/archive_panel.py +608 -0
- src/ui/bookmarks.py +314 -0
- src/ui/breadcrumb.py +383 -0
- src/ui/calculator_panel.py +982 -0
- src/ui/calendar_panel.py +1218 -0
- src/ui/chat_panel.py +1271 -0
- src/ui/chat_profile_dialog.py +278 -0
- src/ui/chat_render.py +128 -0
- src/ui/clock_panel.py +810 -0
- src/ui/code_outline.py +364 -0
- src/ui/code_runner.py +729 -0
- src/ui/code_stats.py +546 -0
- src/ui/collab_panel.py +1009 -0
- src/ui/color_picker.py +547 -0
- src/ui/command_palette.py +452 -0
- src/ui/cursor_manager.py +750 -0
- src/ui/custom_keywords_panel.py +413 -0
- src/ui/debug_panel.py +1037 -0
- src/ui/dependency_graph.py +692 -0
- src/ui/diff_panel.py +381 -0
- src/ui/docs_panel.py +514 -0
- src/ui/doom_embed.py +349 -0
- src/ui/dropdown.py +321 -0
- src/ui/easter_eggs.py +979 -0
- src/ui/env_manager.py +666 -0
- src/ui/extcode_bridge.py +215 -0
- src/ui/extcode_dialogs.py +412 -0
- src/ui/extcompat_dialog.py +583 -0
- src/ui/file_timeline.py +319 -0
- src/ui/file_tree.py +1208 -0
- src/ui/find_in_files.py +1355 -0
- src/ui/flowchart_panel.py +727 -0
- src/ui/formatter_panel.py +490 -0
- src/ui/git_auth.py +763 -0
- src/ui/git_clone_dialog.py +487 -0
- src/ui/git_panel.py +1483 -0
- src/ui/grab_safe.py +84 -0
- src/ui/internal_python_dialog.py +98 -0
- src/ui/k_ui/__init__.py +1305 -0
- src/ui/k_ui/_bgrenderer.py +317 -0
- src/ui/k_ui/_colors.py +213 -0
- src/ui/k_ui/_dock.py +545 -0
- src/ui/k_ui/_easter.py +290 -0
- src/ui/k_ui/_engine.py +5448 -0
- src/ui/k_ui/_perf.py +333 -0
- src/ui/k_ui/_tkutil.py +7 -0
- src/ui/k_ui/_tooltip.py +365 -0
- src/ui/k_ui/_widgets.py +1204 -0
- src/ui/k_ui/_world.py +837 -0
- src/ui/key_remapper.py +856 -0
- src/ui/launcher.py +1252 -0
- src/ui/lazy_panel.py +73 -0
- src/ui/macro_recorder.py +610 -0
- src/ui/menu_bar.py +898 -0
- src/ui/output_panel.py +321 -0
- src/ui/paint_canvas.py +1000 -0
- src/ui/paint_engine.py +535 -0
- src/ui/paint_panel.py +888 -0
- src/ui/panel_detach.py +112 -0
- src/ui/performance_panel.py +861 -0
- src/ui/pip_manager.py +1758 -0
- src/ui/plugin_panel.py +1586 -0
- src/ui/pomodoro_panel.py +447 -0
- src/ui/problems.py +566 -0
- src/ui/process_manager.py +1657 -0
- src/ui/project_templates.py +775 -0
- src/ui/recovery_dialog.py +122 -0
- src/ui/regex_playground.py +304 -0
- src/ui/remote_adapters.py +1398 -0
- src/ui/remote_browser.py +1224 -0
- src/ui/remote_profile_dialog.py +342 -0
- src/ui/render_panel.py +1293 -0
- src/ui/rest_client.py +549 -0
- src/ui/scratchpad.py +548 -0
- src/ui/search_bar.py +1274 -0
- src/ui/settings_editor.py +3349 -0
- src/ui/settings_window.py +1554 -0
- src/ui/snippets_panel.py +597 -0
- src/ui/sql_studio.py +1815 -0
- src/ui/status_bar.py +438 -0
- src/ui/tab_bar.py +654 -0
- src/ui/task_manager.py +1773 -0
- src/ui/terminal.py +525 -0
- src/ui/theme_preview_panel.py +851 -0
- src/ui/thread_safe_tk.py +152 -0
- src/ui/time_tracker.py +574 -0
- src/ui/tkbind.py +43 -0
- src/ui/todo_panel.py +358 -0
- src/ui/toolbox_panels.py +658 -0
- src/ui/trash_manager.py +657 -0
- src/ui/ui_scale.py +294 -0
- src/ui/ux_enhancements.py +41 -0
- src/ui/web_preview.py +397 -0
- src/ui/webdev.py +630 -0
- src/ui/welcome.py +567 -0
- src/ui/window_embed.py +1500 -0
- src/ui/wizard.py +1550 -0
- src/ui/workspace_switcher.py +418 -0
- src/ui/workspace_trust.py +370 -0
- src/ui/zen_audio.py +354 -0
- src/ui/zen_media.py +2271 -0
- src/ui/zen_media_client.py +303 -0
- src/ui/zen_media_host.py +329 -0
- src/ui/zen_player.py +907 -0
- src/ui/zen_player_widgets.py +700 -0
- src/updater/__init__.py +11 -0
- src/updater/assets.py +145 -0
- src/updater/backup.py +101 -0
- src/updater/channel.py +221 -0
- src/updater/dialog.py +492 -0
- src/updater/integrity.py +111 -0
- src/updater/manager.py +727 -0
- src/updater/result.py +114 -0
- src/venv_runtime.py +531 -0
- src/workspace_state.py +25 -0
src/theme/base.py
ADDED
|
@@ -0,0 +1,1281 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Codis - Sistema de Temas
|
|
3
|
+
|
|
4
|
+
Define o dataclass ``Theme`` e todas as definições de temas built-in.
|
|
5
|
+
|
|
6
|
+
Estrutura do Tema
|
|
7
|
+
Cada tema é composto por grupos de cores com funções bem definidas:
|
|
8
|
+
|
|
9
|
+
Grupo Atributo(s) Descrição
|
|
10
|
+
------------- --------------------------------- ----------------------
|
|
11
|
+
Janela bg, fg, fg_muted Superfície principal
|
|
12
|
+
Editor editor_bg, cursor Área de código
|
|
13
|
+
Sidebar sidebar_bg, activity_bg Painel lateral
|
|
14
|
+
Tabs tabbar_bg, tab_act_bg/fg Barra de abas
|
|
15
|
+
tab_in_fg
|
|
16
|
+
Painéis panel_bg, floating_bg Bottom/popup panels
|
|
17
|
+
Seleção sel_bg, sel_fg Texto selecionado
|
|
18
|
+
Inputs input_bg, border Campos e divisores
|
|
19
|
+
Botões btn_bg, btn_hover, btn_primary Botões normais / CTA
|
|
20
|
+
btn_primary_fg, btn_fg
|
|
21
|
+
Scrollbar scroll_bg, scroll_thumb Scrollbars
|
|
22
|
+
Diagnósticos ok_fg, warn_fg, err_fg Status: ok/warn/erro
|
|
23
|
+
Syntax t_keyword, t_string, t_comment Highlight de código
|
|
24
|
+
t_number, t_func, t_type
|
|
25
|
+
t_operator, t_decorator
|
|
26
|
+
Metadados name, dark Nome e polaridade
|
|
27
|
+
|
|
28
|
+
Adicionando Temas
|
|
29
|
+
1. Crie um ``Theme(name="meu_tema", ...)`` dentro de ``_define_themes()``.
|
|
30
|
+
2. Adicione ``name`` em ``THEME_ORDER`` na posição desejada.
|
|
31
|
+
3. Opcional: ajuste ``t_*`` para as cores de syntax do tema.
|
|
32
|
+
4. Execute o Codis - o tema aparecerá em View -> Theme.
|
|
33
|
+
|
|
34
|
+
garante que atributos opcionais possuam valores fallback seguros.
|
|
35
|
+
"""
|
|
36
|
+
|
|
37
|
+
from __future__ import annotations
|
|
38
|
+
|
|
39
|
+
from dataclasses import dataclass, field
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
@dataclass
|
|
43
|
+
class Theme:
|
|
44
|
+
"""
|
|
45
|
+
Representa um tema visual completo do Codis.
|
|
46
|
+
|
|
47
|
+
Campos marcados com ``field(default=...)`` são preenchidos automaticamente
|
|
48
|
+
por ``_patch_all_themes()`` caso omitidos na definição.
|
|
49
|
+
|
|
50
|
+
Parameters
|
|
51
|
+
----------
|
|
52
|
+
name : str
|
|
53
|
+
Identificador único do tema (snake_case). Deve ser idêntico à chave
|
|
54
|
+
usada em ``THEMES``.
|
|
55
|
+
dark : bool
|
|
56
|
+
``True`` para temas escuros, ``False`` para temas claros. Afeta
|
|
57
|
+
lógica de contraste em componentes como o editor K-UI.
|
|
58
|
+
|
|
59
|
+
Color Slots
|
|
60
|
+
-----------
|
|
61
|
+
bg / fg / fg_muted
|
|
62
|
+
Cores da superfície principal da janela.
|
|
63
|
+
editor_bg / cursor
|
|
64
|
+
Fundo do texto editável e cursor de texto.
|
|
65
|
+
sidebar_bg / activity_bg
|
|
66
|
+
Sidebar (explorador, git, etc.) e barra de atividade (ícones).
|
|
67
|
+
tabbar_bg / tab_act_bg / tab_act_fg / tab_in_fg
|
|
68
|
+
Barra de abas: fundo, aba ativa (bg e fg), aba inativa (fg).
|
|
69
|
+
panel_bg / floating_bg
|
|
70
|
+
Painéis inferiores (terminal, output) e janelas flutuantes (dialogs).
|
|
71
|
+
sel_bg / sel_fg
|
|
72
|
+
Destaque de texto selecionado.
|
|
73
|
+
input_bg / border
|
|
74
|
+
Campos de entrada e linhas divisórias.
|
|
75
|
+
btn_bg / btn_hover / btn_fg
|
|
76
|
+
Botão padrão: fundo, hover, texto.
|
|
77
|
+
btn_primary / btn_primary_fg
|
|
78
|
+
Botão de ação principal (CTA) e seu texto.
|
|
79
|
+
scroll_bg / scroll_thumb
|
|
80
|
+
Trilho e polegar dos scrollbars.
|
|
81
|
+
ok_fg / warn_fg / err_fg
|
|
82
|
+
Cores semânticas para mensagens de status.
|
|
83
|
+
accent
|
|
84
|
+
Cor de destaque usada em indicadores, badges e links.
|
|
85
|
+
t_keyword / t_string / t_comment / t_number / t_func / t_type
|
|
86
|
+
t_operator / t_decorator
|
|
87
|
+
Paleta de syntax highlighting.
|
|
88
|
+
"""
|
|
89
|
+
|
|
90
|
+
name: str = "unnamed"
|
|
91
|
+
dark: bool = True
|
|
92
|
+
|
|
93
|
+
bg: str = "#1e1e2e"
|
|
94
|
+
fg: str = "#cdd6f4"
|
|
95
|
+
fg_muted: str = "#6c7086"
|
|
96
|
+
|
|
97
|
+
editor_bg: str = "#1e1e2e"
|
|
98
|
+
cursor: str = "#f5e0dc"
|
|
99
|
+
|
|
100
|
+
sidebar_bg: str = "#181825"
|
|
101
|
+
activity_bg: str = "#11111b"
|
|
102
|
+
|
|
103
|
+
tabbar_bg: str = "#181825"
|
|
104
|
+
tab_act_bg: str = "#1e1e2e"
|
|
105
|
+
tab_act_fg: str = "#cdd6f4"
|
|
106
|
+
tab_in_fg: str = "#6c7086"
|
|
107
|
+
|
|
108
|
+
panel_bg: str = "#181825"
|
|
109
|
+
floating_bg: str = "#1e1e2e"
|
|
110
|
+
|
|
111
|
+
sel_bg: str = "#313244"
|
|
112
|
+
sel_fg: str = "#cdd6f4"
|
|
113
|
+
|
|
114
|
+
input_bg: str = "#313244"
|
|
115
|
+
border: str = "#45475a"
|
|
116
|
+
|
|
117
|
+
btn_bg: str = "#313244"
|
|
118
|
+
btn_hover: str = "#45475a"
|
|
119
|
+
btn_fg: str = "#cdd6f4"
|
|
120
|
+
btn_primary: str = "#89b4fa"
|
|
121
|
+
btn_primary_fg: str = "#1e1e2e"
|
|
122
|
+
|
|
123
|
+
scroll_bg: str = "#181825"
|
|
124
|
+
scroll_thumb: str = "#45475a"
|
|
125
|
+
|
|
126
|
+
ok_fg: str = "#a6e3a1"
|
|
127
|
+
warn_fg: str = "#f9e2af"
|
|
128
|
+
err_fg: str = "#f38ba8"
|
|
129
|
+
|
|
130
|
+
accent: str = "#89b4fa"
|
|
131
|
+
|
|
132
|
+
t_keyword: str = "#cba6f7"
|
|
133
|
+
t_string: str = "#a6e3a1"
|
|
134
|
+
t_comment: str = "#585b70"
|
|
135
|
+
t_number: str = "#fab387"
|
|
136
|
+
t_func: str = "#89b4fa"
|
|
137
|
+
t_type: str = "#f38ba8"
|
|
138
|
+
t_operator: str = "#89dceb"
|
|
139
|
+
t_decorator: str = "#f9e2af"
|
|
140
|
+
t_class: str = field(default="")
|
|
141
|
+
t_variable: str = field(default="")
|
|
142
|
+
t_link: str = field(default="")
|
|
143
|
+
|
|
144
|
+
statusbar_bg: str = field(default="")
|
|
145
|
+
statusbar_fg: str = field(default="")
|
|
146
|
+
statusbar_sep: str = field(default="")
|
|
147
|
+
statusbar_hover: str = field(default="")
|
|
148
|
+
|
|
149
|
+
actbar_bg: str = field(default="")
|
|
150
|
+
actbar_fg: str = field(default="")
|
|
151
|
+
actbar_active_bg: str = field(default="")
|
|
152
|
+
actbar_active_fg: str = field(default="")
|
|
153
|
+
|
|
154
|
+
sidebar_fg: str = field(default="")
|
|
155
|
+
sidebar_header_fg: str = field(default="")
|
|
156
|
+
|
|
157
|
+
breadcrumb_bg: str = field(default="")
|
|
158
|
+
breadcrumb_fg: str = field(default="")
|
|
159
|
+
breadcrumb_sep: str = field(default="")
|
|
160
|
+
breadcrumb_active: str = field(default="")
|
|
161
|
+
|
|
162
|
+
tab_bg: str = field(default="")
|
|
163
|
+
tab_fg: str = field(default="")
|
|
164
|
+
tab_in_bg: str = field(default="")
|
|
165
|
+
tab_active_bg: str = field(default="")
|
|
166
|
+
tab_active_fg: str = field(default="")
|
|
167
|
+
tab_act_border: str = field(default="")
|
|
168
|
+
|
|
169
|
+
gutter_bg: str = field(default="")
|
|
170
|
+
gutter_fg: str = field(default="")
|
|
171
|
+
gutter_active_fg: str = field(default="")
|
|
172
|
+
|
|
173
|
+
minimap_bg: str = field(default="")
|
|
174
|
+
minimap_viewport: str = field(default="")
|
|
175
|
+
minimap_find: str = field(default="")
|
|
176
|
+
|
|
177
|
+
terminal_bg: str = field(default="")
|
|
178
|
+
terminal_fg: str = field(default="")
|
|
179
|
+
|
|
180
|
+
line_hl: str = field(default="")
|
|
181
|
+
floating_border: str = field(default="")
|
|
182
|
+
comment_fg: str = field(default="")
|
|
183
|
+
|
|
184
|
+
scroll_hover: str = field(default="")
|
|
185
|
+
|
|
186
|
+
btn_active: str = field(default="")
|
|
187
|
+
|
|
188
|
+
err_bg: str = field(default="")
|
|
189
|
+
warn_bg: str = field(default="")
|
|
190
|
+
|
|
191
|
+
fg_dim: str = field(default="")
|
|
192
|
+
hint_fg: str = field(default="")
|
|
193
|
+
info_fg: str = field(default="")
|
|
194
|
+
|
|
195
|
+
diff_add_bg: str = field(default="")
|
|
196
|
+
diff_add_fg: str = field(default="")
|
|
197
|
+
diff_del_bg: str = field(default="")
|
|
198
|
+
diff_del_fg: str = field(default="")
|
|
199
|
+
diff_change_bg: str = field(default="")
|
|
200
|
+
diff_change_fg: str = field(default="")
|
|
201
|
+
diff_hunk_bg: str = field(default="")
|
|
202
|
+
diff_hunk_fg: str = field(default="")
|
|
203
|
+
|
|
204
|
+
overlay_bg: str = field(default="")
|
|
205
|
+
border_focus: str = field(default="")
|
|
206
|
+
line_hl2: str = field(default="")
|
|
207
|
+
ruler_color: str = field(default="")
|
|
208
|
+
indent_guide: str = field(default="")
|
|
209
|
+
whitespace: str = field(default="")
|
|
210
|
+
input_border: str = field(default="")
|
|
211
|
+
tab_hover_bg: str = field(default="")
|
|
212
|
+
tab_modified: str = field(default="")
|
|
213
|
+
info_bg: str = field(default="")
|
|
214
|
+
|
|
215
|
+
status_bg: str = field(default="")
|
|
216
|
+
status_fg: str = field(default="")
|
|
217
|
+
status_err_bg: str = field(default="")
|
|
218
|
+
status_err_fg: str = field(default="")
|
|
219
|
+
status_warn_bg: str = field(default="")
|
|
220
|
+
status_warn_fg: str = field(default="")
|
|
221
|
+
|
|
222
|
+
minimap_err: str = field(default="")
|
|
223
|
+
minimap_warn: str = field(default="")
|
|
224
|
+
|
|
225
|
+
breadcrumb_active_fg: str = field(default="")
|
|
226
|
+
|
|
227
|
+
t_builtin: str = field(default="")
|
|
228
|
+
t_tag: str = field(default="")
|
|
229
|
+
t_attr: str = field(default="")
|
|
230
|
+
t_heading: str = field(default="")
|
|
231
|
+
t_regex: str = field(default="")
|
|
232
|
+
t_constant: str = field(default="")
|
|
233
|
+
t_escape: str = field(default="")
|
|
234
|
+
t_embedded: str = field(default="")
|
|
235
|
+
t_invalid: str = field(default="")
|
|
236
|
+
t_namespace: str = field(default="")
|
|
237
|
+
|
|
238
|
+
corner_radius: int = field(default=0)
|
|
239
|
+
use_blur: bool = field(default=False)
|
|
240
|
+
blur_alpha: float = field(default=1.0)
|
|
241
|
+
shadow_color: str = field(default="")
|
|
242
|
+
floating_shadow: str = field(default="")
|
|
243
|
+
|
|
244
|
+
activity_icon_active: str = field(default="")
|
|
245
|
+
activity_icon_inactive: str = field(default="")
|
|
246
|
+
activity_active_indicator: str = field(default="")
|
|
247
|
+
|
|
248
|
+
panel_header_bg: str = field(default="")
|
|
249
|
+
card_selected_bg: str = field(default="")
|
|
250
|
+
input_focus_border: str = field(default="")
|
|
251
|
+
shimmer_bg: str = field(default="")
|
|
252
|
+
list_hover_bg: str = field(default="")
|
|
253
|
+
settings_active_bg: str = field(default="")
|
|
254
|
+
|
|
255
|
+
|
|
256
|
+
THEMES: dict[str, Theme] = {}
|
|
257
|
+
THEME_ORDER: list[str] = []
|
|
258
|
+
|
|
259
|
+
|
|
260
|
+
def _theme_catppuccin_mocha() -> Theme:
|
|
261
|
+
"""Tema ``catppuccin_mocha``."""
|
|
262
|
+
return Theme(
|
|
263
|
+
name="catppuccin_mocha",
|
|
264
|
+
dark=True,
|
|
265
|
+
bg="#1e1e2e",
|
|
266
|
+
fg="#cdd6f4",
|
|
267
|
+
fg_muted="#6c7086",
|
|
268
|
+
editor_bg="#1e1e2e",
|
|
269
|
+
cursor="#f5e0dc",
|
|
270
|
+
sidebar_bg="#181825",
|
|
271
|
+
activity_bg="#11111b",
|
|
272
|
+
tabbar_bg="#181825",
|
|
273
|
+
tab_act_bg="#1e1e2e",
|
|
274
|
+
tab_act_fg="#cdd6f4",
|
|
275
|
+
tab_in_fg="#6c7086",
|
|
276
|
+
panel_bg="#181825",
|
|
277
|
+
floating_bg="#1e1e2e",
|
|
278
|
+
sel_bg="#585b70",
|
|
279
|
+
sel_fg="#cdd6f4",
|
|
280
|
+
input_bg="#313244",
|
|
281
|
+
border="#45475a",
|
|
282
|
+
btn_bg="#313244",
|
|
283
|
+
btn_hover="#45475a",
|
|
284
|
+
btn_fg="#cdd6f4",
|
|
285
|
+
btn_primary="#89b4fa",
|
|
286
|
+
btn_primary_fg="#1e1e2e",
|
|
287
|
+
scroll_bg="#181825",
|
|
288
|
+
scroll_thumb="#45475a",
|
|
289
|
+
ok_fg="#a6e3a1",
|
|
290
|
+
warn_fg="#f9e2af",
|
|
291
|
+
err_fg="#f38ba8",
|
|
292
|
+
accent="#89b4fa",
|
|
293
|
+
t_keyword="#cba6f7",
|
|
294
|
+
t_string="#a6e3a1",
|
|
295
|
+
t_comment="#585b70",
|
|
296
|
+
t_number="#fab387",
|
|
297
|
+
t_func="#89b4fa",
|
|
298
|
+
t_type="#f38ba8",
|
|
299
|
+
t_operator="#89dceb",
|
|
300
|
+
t_decorator="#f9e2af",
|
|
301
|
+
)
|
|
302
|
+
|
|
303
|
+
def _theme_fluent_dark() -> Theme:
|
|
304
|
+
"""Tema ``fluent_dark``."""
|
|
305
|
+
return Theme(
|
|
306
|
+
name="fluent_dark",
|
|
307
|
+
dark=True,
|
|
308
|
+
bg="#1f1f1f",
|
|
309
|
+
fg="#d4d4d4",
|
|
310
|
+
fg_muted="#858585",
|
|
311
|
+
editor_bg="#1e1e1e",
|
|
312
|
+
cursor="#aeafad",
|
|
313
|
+
sidebar_bg="#252526",
|
|
314
|
+
activity_bg="#333333",
|
|
315
|
+
tabbar_bg="#252526",
|
|
316
|
+
tab_act_bg="#1e1e1e",
|
|
317
|
+
tab_act_fg="#ffffff",
|
|
318
|
+
tab_in_fg="#969696",
|
|
319
|
+
panel_bg="#1e1e1e",
|
|
320
|
+
floating_bg="#252526",
|
|
321
|
+
sel_bg="#264f78",
|
|
322
|
+
sel_fg="#d4d4d4",
|
|
323
|
+
input_bg="#3c3c3c",
|
|
324
|
+
border="#454545",
|
|
325
|
+
btn_bg="#3a3d41",
|
|
326
|
+
btn_hover="#505152",
|
|
327
|
+
btn_fg="#cccccc",
|
|
328
|
+
btn_primary="#0e639c",
|
|
329
|
+
btn_primary_fg="#ffffff",
|
|
330
|
+
scroll_bg="#1e1e1e",
|
|
331
|
+
scroll_thumb="#424242",
|
|
332
|
+
ok_fg="#89d185",
|
|
333
|
+
warn_fg="#cca700",
|
|
334
|
+
err_fg="#f48771",
|
|
335
|
+
accent="#569cd6",
|
|
336
|
+
t_keyword="#569cd6",
|
|
337
|
+
t_string="#ce9178",
|
|
338
|
+
t_comment="#6a9955",
|
|
339
|
+
t_number="#b5cea8",
|
|
340
|
+
t_func="#dcdcaa",
|
|
341
|
+
t_type="#4ec9b0",
|
|
342
|
+
t_operator="#d4d4d4",
|
|
343
|
+
t_decorator="#c586c0",
|
|
344
|
+
)
|
|
345
|
+
|
|
346
|
+
def _theme_fluent_light() -> Theme:
|
|
347
|
+
"""Tema ``fluent_light``."""
|
|
348
|
+
return Theme(
|
|
349
|
+
name="fluent_light",
|
|
350
|
+
dark=False,
|
|
351
|
+
bg="#f3f3f3",
|
|
352
|
+
fg="#1e1e1e",
|
|
353
|
+
fg_muted="#717171",
|
|
354
|
+
editor_bg="#ffffff",
|
|
355
|
+
cursor="#000000",
|
|
356
|
+
sidebar_bg="#f3f3f3",
|
|
357
|
+
activity_bg="#2c2c2c",
|
|
358
|
+
tabbar_bg="#ececec",
|
|
359
|
+
tab_act_bg="#ffffff",
|
|
360
|
+
tab_act_fg="#000000",
|
|
361
|
+
tab_in_fg="#717171",
|
|
362
|
+
panel_bg="#f5f5f5",
|
|
363
|
+
floating_bg="#ffffff",
|
|
364
|
+
sel_bg="#add6ff",
|
|
365
|
+
sel_fg="#000000",
|
|
366
|
+
input_bg="#ffffff",
|
|
367
|
+
border="#d0d0d0",
|
|
368
|
+
btn_bg="#e7e7e7",
|
|
369
|
+
btn_hover="#d4d4d4",
|
|
370
|
+
btn_fg="#1e1e1e",
|
|
371
|
+
btn_primary="#0078d4",
|
|
372
|
+
btn_primary_fg="#ffffff",
|
|
373
|
+
scroll_bg="#f5f5f5",
|
|
374
|
+
scroll_thumb="#c2c2c2",
|
|
375
|
+
ok_fg="#14a02e",
|
|
376
|
+
warn_fg="#b5700c",
|
|
377
|
+
err_fg="#c72e0f",
|
|
378
|
+
accent="#0078d4",
|
|
379
|
+
t_keyword="#0000ff",
|
|
380
|
+
t_string="#a31515",
|
|
381
|
+
t_comment="#008000",
|
|
382
|
+
t_number="#098658",
|
|
383
|
+
t_func="#795e26",
|
|
384
|
+
t_type="#267f99",
|
|
385
|
+
t_operator="#1e1e1e",
|
|
386
|
+
t_decorator="#af00db",
|
|
387
|
+
)
|
|
388
|
+
|
|
389
|
+
def _theme_tokyo_night() -> Theme:
|
|
390
|
+
"""Tema ``tokyo_night``."""
|
|
391
|
+
return Theme(
|
|
392
|
+
name="tokyo_night",
|
|
393
|
+
dark=True,
|
|
394
|
+
bg="#1a1b26",
|
|
395
|
+
fg="#a9b1d6",
|
|
396
|
+
fg_muted="#565f89",
|
|
397
|
+
editor_bg="#1a1b26",
|
|
398
|
+
cursor="#c0caf5",
|
|
399
|
+
sidebar_bg="#16161e",
|
|
400
|
+
activity_bg="#13131a",
|
|
401
|
+
tabbar_bg="#15161e",
|
|
402
|
+
tab_act_bg="#1a1b26",
|
|
403
|
+
tab_act_fg="#c0caf5",
|
|
404
|
+
tab_in_fg="#565f89",
|
|
405
|
+
panel_bg="#16161e",
|
|
406
|
+
floating_bg="#1f2335",
|
|
407
|
+
sel_bg="#3d59a1",
|
|
408
|
+
sel_fg="#c0caf5",
|
|
409
|
+
input_bg="#1f2335",
|
|
410
|
+
border="#292e42",
|
|
411
|
+
btn_bg="#292e42",
|
|
412
|
+
btn_hover="#3b4261",
|
|
413
|
+
btn_fg="#a9b1d6",
|
|
414
|
+
btn_primary="#7aa2f7",
|
|
415
|
+
btn_primary_fg="#1a1b26",
|
|
416
|
+
scroll_bg="#16161e",
|
|
417
|
+
scroll_thumb="#3b4261",
|
|
418
|
+
ok_fg="#9ece6a",
|
|
419
|
+
warn_fg="#e0af68",
|
|
420
|
+
err_fg="#f7768e",
|
|
421
|
+
accent="#7aa2f7",
|
|
422
|
+
t_keyword="#bb9af7",
|
|
423
|
+
t_string="#9ece6a",
|
|
424
|
+
t_comment="#565f89",
|
|
425
|
+
t_number="#ff9e64",
|
|
426
|
+
t_func="#7aa2f7",
|
|
427
|
+
t_type="#2ac3de",
|
|
428
|
+
t_operator="#89ddff",
|
|
429
|
+
t_decorator="#e0af68",
|
|
430
|
+
)
|
|
431
|
+
|
|
432
|
+
def _theme_dracula() -> Theme:
|
|
433
|
+
"""Tema ``dracula``."""
|
|
434
|
+
return Theme(
|
|
435
|
+
name="dracula",
|
|
436
|
+
dark=True,
|
|
437
|
+
bg="#282a36",
|
|
438
|
+
fg="#f8f8f2",
|
|
439
|
+
fg_muted="#6272a4",
|
|
440
|
+
editor_bg="#282a36",
|
|
441
|
+
cursor="#f8f8f0",
|
|
442
|
+
sidebar_bg="#21222c",
|
|
443
|
+
activity_bg="#191a21",
|
|
444
|
+
tabbar_bg="#21222c",
|
|
445
|
+
tab_act_bg="#282a36",
|
|
446
|
+
tab_act_fg="#f8f8f2",
|
|
447
|
+
tab_in_fg="#6272a4",
|
|
448
|
+
panel_bg="#21222c",
|
|
449
|
+
floating_bg="#21222c",
|
|
450
|
+
sel_bg="#44475a",
|
|
451
|
+
sel_fg="#f8f8f2",
|
|
452
|
+
input_bg="#44475a",
|
|
453
|
+
border="#6272a4",
|
|
454
|
+
btn_bg="#44475a",
|
|
455
|
+
btn_hover="#6272a4",
|
|
456
|
+
btn_fg="#f8f8f2",
|
|
457
|
+
btn_primary="#bd93f9",
|
|
458
|
+
btn_primary_fg="#282a36",
|
|
459
|
+
scroll_bg="#21222c",
|
|
460
|
+
scroll_thumb="#6272a4",
|
|
461
|
+
ok_fg="#50fa7b",
|
|
462
|
+
warn_fg="#ffb86c",
|
|
463
|
+
err_fg="#ff5555",
|
|
464
|
+
accent="#bd93f9",
|
|
465
|
+
t_keyword="#ff79c6",
|
|
466
|
+
t_string="#f1fa8c",
|
|
467
|
+
t_comment="#6272a4",
|
|
468
|
+
t_number="#bd93f9",
|
|
469
|
+
t_func="#50fa7b",
|
|
470
|
+
t_type="#8be9fd",
|
|
471
|
+
t_operator="#ff79c6",
|
|
472
|
+
t_decorator="#ffb86c",
|
|
473
|
+
)
|
|
474
|
+
|
|
475
|
+
def _theme_gruvbox_dark() -> Theme:
|
|
476
|
+
"""Tema ``gruvbox_dark``."""
|
|
477
|
+
return Theme(
|
|
478
|
+
name="gruvbox_dark",
|
|
479
|
+
dark=True,
|
|
480
|
+
bg="#282828",
|
|
481
|
+
fg="#ebdbb2",
|
|
482
|
+
fg_muted="#928374",
|
|
483
|
+
editor_bg="#282828",
|
|
484
|
+
cursor="#ebdbb2",
|
|
485
|
+
sidebar_bg="#1d2021",
|
|
486
|
+
activity_bg="#1b1b1b",
|
|
487
|
+
tabbar_bg="#1d2021",
|
|
488
|
+
tab_act_bg="#282828",
|
|
489
|
+
tab_act_fg="#ebdbb2",
|
|
490
|
+
tab_in_fg="#928374",
|
|
491
|
+
panel_bg="#1d2021",
|
|
492
|
+
floating_bg="#32302f",
|
|
493
|
+
sel_bg="#504945",
|
|
494
|
+
sel_fg="#ebdbb2",
|
|
495
|
+
input_bg="#3c3836",
|
|
496
|
+
border="#504945",
|
|
497
|
+
btn_bg="#3c3836",
|
|
498
|
+
btn_hover="#504945",
|
|
499
|
+
btn_fg="#ebdbb2",
|
|
500
|
+
btn_primary="#d79921",
|
|
501
|
+
btn_primary_fg="#282828",
|
|
502
|
+
scroll_bg="#1d2021",
|
|
503
|
+
scroll_thumb="#504945",
|
|
504
|
+
ok_fg="#b8bb26",
|
|
505
|
+
warn_fg="#fabd2f",
|
|
506
|
+
err_fg="#fb4934",
|
|
507
|
+
accent="#d79921",
|
|
508
|
+
t_keyword="#fb4934",
|
|
509
|
+
t_string="#b8bb26",
|
|
510
|
+
t_comment="#928374",
|
|
511
|
+
t_number="#d3869b",
|
|
512
|
+
t_func="#fabd2f",
|
|
513
|
+
t_type="#8ec07c",
|
|
514
|
+
t_operator="#fe8019",
|
|
515
|
+
t_decorator="#fabd2f",
|
|
516
|
+
)
|
|
517
|
+
|
|
518
|
+
def _theme_gruvbox_light() -> Theme:
|
|
519
|
+
"""Tema ``gruvbox_light``."""
|
|
520
|
+
return Theme(
|
|
521
|
+
name="gruvbox_light",
|
|
522
|
+
dark=False,
|
|
523
|
+
bg="#fbf1c7",
|
|
524
|
+
fg="#3c3836",
|
|
525
|
+
fg_muted="#6a5f55",
|
|
526
|
+
editor_bg="#fbf1c7",
|
|
527
|
+
cursor="#3c3836",
|
|
528
|
+
sidebar_bg="#f2e5bc",
|
|
529
|
+
activity_bg="#d5c4a1",
|
|
530
|
+
tabbar_bg="#ebdbb2",
|
|
531
|
+
tab_act_bg="#fbf1c7",
|
|
532
|
+
tab_act_fg="#3c3836",
|
|
533
|
+
tab_in_fg="#7c6f64",
|
|
534
|
+
panel_bg="#f2e5bc",
|
|
535
|
+
floating_bg="#ebdbb2",
|
|
536
|
+
sel_bg="#d5c4a1",
|
|
537
|
+
sel_fg="#3c3836",
|
|
538
|
+
input_bg="#ebdbb2",
|
|
539
|
+
border="#bdae93",
|
|
540
|
+
btn_bg="#d5c4a1",
|
|
541
|
+
btn_hover="#bdae93",
|
|
542
|
+
btn_fg="#3c3836",
|
|
543
|
+
btn_primary="#af3a03",
|
|
544
|
+
btn_primary_fg="#fbf1c7",
|
|
545
|
+
scroll_bg="#f2e5bc",
|
|
546
|
+
scroll_thumb="#bdae93",
|
|
547
|
+
ok_fg="#79740e",
|
|
548
|
+
warn_fg="#b57614",
|
|
549
|
+
err_fg="#9d0006",
|
|
550
|
+
accent="#af3a03",
|
|
551
|
+
t_keyword="#9d0006",
|
|
552
|
+
t_string="#79740e",
|
|
553
|
+
t_comment="#928374",
|
|
554
|
+
t_number="#8f3f71",
|
|
555
|
+
t_func="#b57614",
|
|
556
|
+
t_type="#427b58",
|
|
557
|
+
t_operator="#af3a03",
|
|
558
|
+
t_decorator="#b57614",
|
|
559
|
+
)
|
|
560
|
+
|
|
561
|
+
def _theme_solarized_dark() -> Theme:
|
|
562
|
+
"""Tema ``solarized_dark``."""
|
|
563
|
+
return Theme(
|
|
564
|
+
name="solarized_dark",
|
|
565
|
+
dark=True,
|
|
566
|
+
bg="#002b36",
|
|
567
|
+
fg="#839496",
|
|
568
|
+
fg_muted="#586e75",
|
|
569
|
+
editor_bg="#002b36",
|
|
570
|
+
cursor="#93a1a1",
|
|
571
|
+
sidebar_bg="#073642",
|
|
572
|
+
activity_bg="#001e26",
|
|
573
|
+
tabbar_bg="#073642",
|
|
574
|
+
tab_act_bg="#002b36",
|
|
575
|
+
tab_act_fg="#93a1a1",
|
|
576
|
+
tab_in_fg="#586e75",
|
|
577
|
+
panel_bg="#073642",
|
|
578
|
+
floating_bg="#073642",
|
|
579
|
+
sel_bg="#2a5068",
|
|
580
|
+
sel_fg="#fdf6e3",
|
|
581
|
+
input_bg="#073642",
|
|
582
|
+
border="#586e75",
|
|
583
|
+
btn_bg="#073642",
|
|
584
|
+
btn_hover="#094251",
|
|
585
|
+
btn_fg="#839496",
|
|
586
|
+
btn_primary="#268bd2",
|
|
587
|
+
btn_primary_fg="#002b36",
|
|
588
|
+
scroll_bg="#002b36",
|
|
589
|
+
scroll_thumb="#586e75",
|
|
590
|
+
ok_fg="#859900",
|
|
591
|
+
warn_fg="#b58900",
|
|
592
|
+
err_fg="#dc322f",
|
|
593
|
+
accent="#268bd2",
|
|
594
|
+
t_keyword="#859900",
|
|
595
|
+
t_string="#2aa198",
|
|
596
|
+
t_comment="#586e75",
|
|
597
|
+
t_number="#d33682",
|
|
598
|
+
t_func="#268bd2",
|
|
599
|
+
t_type="#6c71c4",
|
|
600
|
+
t_operator="#93a1a1",
|
|
601
|
+
t_decorator="#b58900",
|
|
602
|
+
)
|
|
603
|
+
|
|
604
|
+
def _theme_solarized_light() -> Theme:
|
|
605
|
+
"""Tema ``solarized_light``."""
|
|
606
|
+
return Theme(
|
|
607
|
+
name="solarized_light",
|
|
608
|
+
dark=False,
|
|
609
|
+
bg="#fdf6e3",
|
|
610
|
+
fg="#586e75",
|
|
611
|
+
fg_muted="#73848a",
|
|
612
|
+
editor_bg="#fdf6e3",
|
|
613
|
+
cursor="#073642",
|
|
614
|
+
sidebar_bg="#eee8d5",
|
|
615
|
+
activity_bg="#ddd6c1",
|
|
616
|
+
tabbar_bg="#eee8d5",
|
|
617
|
+
tab_act_bg="#fdf6e3",
|
|
618
|
+
tab_act_fg="#586e75",
|
|
619
|
+
tab_in_fg="#93a1a1",
|
|
620
|
+
panel_bg="#eee8d5",
|
|
621
|
+
floating_bg="#fdf6e3",
|
|
622
|
+
sel_bg="#eee8d5",
|
|
623
|
+
sel_fg="#586e75",
|
|
624
|
+
input_bg="#eee8d5",
|
|
625
|
+
border="#c0bfaa",
|
|
626
|
+
btn_bg="#eee8d5",
|
|
627
|
+
btn_hover="#ddd6c1",
|
|
628
|
+
btn_fg="#657b83",
|
|
629
|
+
btn_primary="#268bd2",
|
|
630
|
+
btn_primary_fg="#fdf6e3",
|
|
631
|
+
scroll_bg="#eee8d5",
|
|
632
|
+
scroll_thumb="#c0bfaa",
|
|
633
|
+
ok_fg="#859900",
|
|
634
|
+
warn_fg="#b58900",
|
|
635
|
+
err_fg="#dc322f",
|
|
636
|
+
accent="#268bd2",
|
|
637
|
+
t_keyword="#859900",
|
|
638
|
+
t_string="#2aa198",
|
|
639
|
+
t_comment="#93a1a1",
|
|
640
|
+
t_number="#d33682",
|
|
641
|
+
t_func="#268bd2",
|
|
642
|
+
t_type="#6c71c4",
|
|
643
|
+
t_operator="#657b83",
|
|
644
|
+
t_decorator="#b58900",
|
|
645
|
+
)
|
|
646
|
+
|
|
647
|
+
def _theme_one_dark_pro() -> Theme:
|
|
648
|
+
"""Tema ``one_dark_pro``."""
|
|
649
|
+
return Theme(
|
|
650
|
+
name="one_dark_pro",
|
|
651
|
+
dark=True,
|
|
652
|
+
bg="#282c34",
|
|
653
|
+
fg="#abb2bf",
|
|
654
|
+
fg_muted="#5c6370",
|
|
655
|
+
editor_bg="#282c34",
|
|
656
|
+
cursor="#528bff",
|
|
657
|
+
sidebar_bg="#21252b",
|
|
658
|
+
activity_bg="#1c2026",
|
|
659
|
+
tabbar_bg="#21252b",
|
|
660
|
+
tab_act_bg="#282c34",
|
|
661
|
+
tab_act_fg="#abb2bf",
|
|
662
|
+
tab_in_fg="#5c6370",
|
|
663
|
+
panel_bg="#21252b",
|
|
664
|
+
floating_bg="#21252b",
|
|
665
|
+
sel_bg="#4a5568",
|
|
666
|
+
sel_fg="#abb2bf",
|
|
667
|
+
input_bg="#3e4451",
|
|
668
|
+
border="#3e4451",
|
|
669
|
+
btn_bg="#3e4451",
|
|
670
|
+
btn_hover="#4b5363",
|
|
671
|
+
btn_fg="#abb2bf",
|
|
672
|
+
btn_primary="#61afef",
|
|
673
|
+
btn_primary_fg="#282c34",
|
|
674
|
+
scroll_bg="#21252b",
|
|
675
|
+
scroll_thumb="#4b5363",
|
|
676
|
+
ok_fg="#98c379",
|
|
677
|
+
warn_fg="#e5c07b",
|
|
678
|
+
err_fg="#e06c75",
|
|
679
|
+
accent="#61afef",
|
|
680
|
+
t_keyword="#c678dd",
|
|
681
|
+
t_string="#98c379",
|
|
682
|
+
t_comment="#5c6370",
|
|
683
|
+
t_number="#d19a66",
|
|
684
|
+
t_func="#61afef",
|
|
685
|
+
t_type="#e06c75",
|
|
686
|
+
t_operator="#56b6c2",
|
|
687
|
+
t_decorator="#e5c07b",
|
|
688
|
+
)
|
|
689
|
+
|
|
690
|
+
def _theme_nord() -> Theme:
|
|
691
|
+
"""Tema ``nord``."""
|
|
692
|
+
return Theme(
|
|
693
|
+
name="nord",
|
|
694
|
+
dark=True,
|
|
695
|
+
bg="#2e3440",
|
|
696
|
+
fg="#d8dee9",
|
|
697
|
+
fg_muted="#4c566a",
|
|
698
|
+
editor_bg="#2e3440",
|
|
699
|
+
cursor="#d8dee9",
|
|
700
|
+
sidebar_bg="#272c36",
|
|
701
|
+
activity_bg="#1e2229",
|
|
702
|
+
tabbar_bg="#272c36",
|
|
703
|
+
tab_act_bg="#2e3440",
|
|
704
|
+
tab_act_fg="#eceff4",
|
|
705
|
+
tab_in_fg="#4c566a",
|
|
706
|
+
panel_bg="#272c36",
|
|
707
|
+
floating_bg="#3b4252",
|
|
708
|
+
sel_bg="#5e81ac",
|
|
709
|
+
sel_fg="#eceff4",
|
|
710
|
+
input_bg="#3b4252",
|
|
711
|
+
border="#434c5e",
|
|
712
|
+
btn_bg="#3b4252",
|
|
713
|
+
btn_hover="#434c5e",
|
|
714
|
+
btn_fg="#d8dee9",
|
|
715
|
+
btn_primary="#5e81ac",
|
|
716
|
+
btn_primary_fg="#eceff4",
|
|
717
|
+
scroll_bg="#272c36",
|
|
718
|
+
scroll_thumb="#434c5e",
|
|
719
|
+
ok_fg="#a3be8c",
|
|
720
|
+
warn_fg="#ebcb8b",
|
|
721
|
+
err_fg="#bf616a",
|
|
722
|
+
accent="#88c0d0",
|
|
723
|
+
t_keyword="#81a1c1",
|
|
724
|
+
t_string="#a3be8c",
|
|
725
|
+
t_comment="#4c566a",
|
|
726
|
+
t_number="#b48ead",
|
|
727
|
+
t_func="#88c0d0",
|
|
728
|
+
t_type="#8fbcbb",
|
|
729
|
+
t_operator="#81a1c1",
|
|
730
|
+
t_decorator="#ebcb8b",
|
|
731
|
+
)
|
|
732
|
+
|
|
733
|
+
def _theme_monokai_pro() -> Theme:
|
|
734
|
+
"""Tema ``monokai_pro``."""
|
|
735
|
+
return Theme(
|
|
736
|
+
name="monokai_pro",
|
|
737
|
+
dark=True,
|
|
738
|
+
bg="#2d2a2e",
|
|
739
|
+
fg="#fcfcfa",
|
|
740
|
+
fg_muted="#727072",
|
|
741
|
+
editor_bg="#2d2a2e",
|
|
742
|
+
cursor="#fcfcfa",
|
|
743
|
+
sidebar_bg="#221f22",
|
|
744
|
+
activity_bg="#19181a",
|
|
745
|
+
tabbar_bg="#221f22",
|
|
746
|
+
tab_act_bg="#2d2a2e",
|
|
747
|
+
tab_act_fg="#fcfcfa",
|
|
748
|
+
tab_in_fg="#727072",
|
|
749
|
+
panel_bg="#221f22",
|
|
750
|
+
floating_bg="#2d2a2e",
|
|
751
|
+
sel_bg="#6d5f7a",
|
|
752
|
+
sel_fg="#fcfcfa",
|
|
753
|
+
input_bg="#403e41",
|
|
754
|
+
border="#5b595c",
|
|
755
|
+
btn_bg="#403e41",
|
|
756
|
+
btn_hover="#5b595c",
|
|
757
|
+
btn_fg="#fcfcfa",
|
|
758
|
+
btn_primary="#ff6188",
|
|
759
|
+
btn_primary_fg="#2d2a2e",
|
|
760
|
+
scroll_bg="#221f22",
|
|
761
|
+
scroll_thumb="#5b595c",
|
|
762
|
+
ok_fg="#a9dc76",
|
|
763
|
+
warn_fg="#ffd866",
|
|
764
|
+
err_fg="#ff6188",
|
|
765
|
+
accent="#ff6188",
|
|
766
|
+
t_keyword="#ff6188",
|
|
767
|
+
t_string="#ffd866",
|
|
768
|
+
t_comment="#727072",
|
|
769
|
+
t_number="#ab9df2",
|
|
770
|
+
t_func="#a9dc76",
|
|
771
|
+
t_type="#78dce8",
|
|
772
|
+
t_operator="#ff6188",
|
|
773
|
+
t_decorator="#fc9867",
|
|
774
|
+
)
|
|
775
|
+
|
|
776
|
+
def _theme_github_dark() -> Theme:
|
|
777
|
+
"""Tema ``github_dark``."""
|
|
778
|
+
return Theme(
|
|
779
|
+
name="github_dark",
|
|
780
|
+
dark=True,
|
|
781
|
+
bg="#0d1117",
|
|
782
|
+
fg="#c9d1d9",
|
|
783
|
+
fg_muted="#8b949e",
|
|
784
|
+
editor_bg="#0d1117",
|
|
785
|
+
cursor="#58a6ff",
|
|
786
|
+
sidebar_bg="#161b22",
|
|
787
|
+
activity_bg="#0d1117",
|
|
788
|
+
tabbar_bg="#161b22",
|
|
789
|
+
tab_act_bg="#0d1117",
|
|
790
|
+
tab_act_fg="#c9d1d9",
|
|
791
|
+
tab_in_fg="#8b949e",
|
|
792
|
+
panel_bg="#161b22",
|
|
793
|
+
floating_bg="#161b22",
|
|
794
|
+
sel_bg="#1f6feb",
|
|
795
|
+
sel_fg="#c9d1d9",
|
|
796
|
+
input_bg="#21262d",
|
|
797
|
+
border="#30363d",
|
|
798
|
+
btn_bg="#21262d",
|
|
799
|
+
btn_hover="#30363d",
|
|
800
|
+
btn_fg="#c9d1d9",
|
|
801
|
+
btn_primary="#238636",
|
|
802
|
+
btn_primary_fg="#ffffff",
|
|
803
|
+
scroll_bg="#0d1117",
|
|
804
|
+
scroll_thumb="#30363d",
|
|
805
|
+
ok_fg="#3fb950",
|
|
806
|
+
warn_fg="#d29922",
|
|
807
|
+
err_fg="#f85149",
|
|
808
|
+
accent="#58a6ff",
|
|
809
|
+
t_keyword="#ff7b72",
|
|
810
|
+
t_string="#a5d6ff",
|
|
811
|
+
t_comment="#8b949e",
|
|
812
|
+
t_number="#79c0ff",
|
|
813
|
+
t_func="#d2a8ff",
|
|
814
|
+
t_type="#ffa657",
|
|
815
|
+
t_operator="#ff7b72",
|
|
816
|
+
t_decorator="#d2a8ff",
|
|
817
|
+
)
|
|
818
|
+
|
|
819
|
+
def _theme_github_light() -> Theme:
|
|
820
|
+
"""Tema ``github_light``."""
|
|
821
|
+
return Theme(
|
|
822
|
+
name="github_light",
|
|
823
|
+
dark=False,
|
|
824
|
+
bg="#ffffff",
|
|
825
|
+
fg="#24292e",
|
|
826
|
+
fg_muted="#6a737d",
|
|
827
|
+
editor_bg="#ffffff",
|
|
828
|
+
cursor="#24292e",
|
|
829
|
+
sidebar_bg="#f6f8fa",
|
|
830
|
+
activity_bg="#ffffff",
|
|
831
|
+
tabbar_bg="#f6f8fa",
|
|
832
|
+
tab_act_bg="#ffffff",
|
|
833
|
+
tab_act_fg="#24292e",
|
|
834
|
+
tab_in_fg="#6a737d",
|
|
835
|
+
panel_bg="#f6f8fa",
|
|
836
|
+
floating_bg="#ffffff",
|
|
837
|
+
sel_bg="#0366d6",
|
|
838
|
+
sel_fg="#ffffff",
|
|
839
|
+
input_bg="#ffffff",
|
|
840
|
+
border="#e1e4e8",
|
|
841
|
+
btn_bg="#eff3f6",
|
|
842
|
+
btn_hover="#e1e4e8",
|
|
843
|
+
btn_fg="#24292e",
|
|
844
|
+
btn_primary="#2ea44f",
|
|
845
|
+
btn_primary_fg="#ffffff",
|
|
846
|
+
scroll_bg="#f6f8fa",
|
|
847
|
+
scroll_thumb="#c1c8cf",
|
|
848
|
+
ok_fg="#2ea44f",
|
|
849
|
+
warn_fg="#b08800",
|
|
850
|
+
err_fg="#cb2431",
|
|
851
|
+
accent="#0366d6",
|
|
852
|
+
t_keyword="#d73a49",
|
|
853
|
+
t_string="#032f62",
|
|
854
|
+
t_comment="#6a737d",
|
|
855
|
+
t_number="#005cc5",
|
|
856
|
+
t_func="#6f42c1",
|
|
857
|
+
t_type="#e36209",
|
|
858
|
+
t_operator="#d73a49",
|
|
859
|
+
t_decorator="#6f42c1",
|
|
860
|
+
)
|
|
861
|
+
|
|
862
|
+
def _theme_palenight() -> Theme:
|
|
863
|
+
"""Tema ``palenight``."""
|
|
864
|
+
return Theme(
|
|
865
|
+
name="palenight",
|
|
866
|
+
dark=True,
|
|
867
|
+
bg="#292d3e",
|
|
868
|
+
fg="#a6accd",
|
|
869
|
+
fg_muted="#676e95",
|
|
870
|
+
editor_bg="#292d3e",
|
|
871
|
+
cursor="#ffcb6b",
|
|
872
|
+
sidebar_bg="#242635",
|
|
873
|
+
activity_bg="#1b1c2a",
|
|
874
|
+
tabbar_bg="#242635",
|
|
875
|
+
tab_act_bg="#292d3e",
|
|
876
|
+
tab_act_fg="#ffffff",
|
|
877
|
+
tab_in_fg="#8891b6",
|
|
878
|
+
panel_bg="#242635",
|
|
879
|
+
floating_bg="#32364a",
|
|
880
|
+
sel_bg="#5c6bc0",
|
|
881
|
+
sel_fg="#ffffff",
|
|
882
|
+
input_bg="#32364a",
|
|
883
|
+
border="#3d425b",
|
|
884
|
+
btn_bg="#3d425b",
|
|
885
|
+
btn_hover="#4d527b",
|
|
886
|
+
btn_fg="#a6accd",
|
|
887
|
+
btn_primary="#82aaff",
|
|
888
|
+
btn_primary_fg="#292d3e",
|
|
889
|
+
scroll_bg="#242635",
|
|
890
|
+
scroll_thumb="#3d425b",
|
|
891
|
+
ok_fg="#c3e88d",
|
|
892
|
+
warn_fg="#ffcb6b",
|
|
893
|
+
err_fg="#f07178",
|
|
894
|
+
accent="#82aaff",
|
|
895
|
+
t_keyword="#c792ea",
|
|
896
|
+
t_string="#c3e88d",
|
|
897
|
+
t_comment="#676e95",
|
|
898
|
+
t_number="#f78c6c",
|
|
899
|
+
t_func="#82aaff",
|
|
900
|
+
t_type="#ffcb6b",
|
|
901
|
+
t_operator="#89ddff",
|
|
902
|
+
t_decorator="#ffcb6b",
|
|
903
|
+
)
|
|
904
|
+
|
|
905
|
+
def _theme_rose_pine() -> Theme:
|
|
906
|
+
"""Tema ``rose_pine``."""
|
|
907
|
+
return Theme(
|
|
908
|
+
name="rose_pine",
|
|
909
|
+
dark=True,
|
|
910
|
+
bg="#191724",
|
|
911
|
+
fg="#e0def4",
|
|
912
|
+
fg_muted="#6e6a86",
|
|
913
|
+
editor_bg="#1f1d2e",
|
|
914
|
+
cursor="#e0def4",
|
|
915
|
+
sidebar_bg="#191724",
|
|
916
|
+
activity_bg="#110f1a",
|
|
917
|
+
tabbar_bg="#191724",
|
|
918
|
+
tab_act_bg="#1f1d2e",
|
|
919
|
+
tab_act_fg="#e0def4",
|
|
920
|
+
tab_in_fg="#6e6a86",
|
|
921
|
+
panel_bg="#191724",
|
|
922
|
+
floating_bg="#26233a",
|
|
923
|
+
sel_bg="#403d52",
|
|
924
|
+
sel_fg="#e0def4",
|
|
925
|
+
input_bg="#26233a",
|
|
926
|
+
border="#403d52",
|
|
927
|
+
btn_bg="#26233a",
|
|
928
|
+
btn_hover="#403d52",
|
|
929
|
+
btn_fg="#e0def4",
|
|
930
|
+
btn_primary="#eb6f92",
|
|
931
|
+
btn_primary_fg="#191724",
|
|
932
|
+
scroll_bg="#191724",
|
|
933
|
+
scroll_thumb="#403d52",
|
|
934
|
+
ok_fg="#31748f",
|
|
935
|
+
warn_fg="#f6c177",
|
|
936
|
+
err_fg="#eb6f92",
|
|
937
|
+
accent="#9ccfd8",
|
|
938
|
+
t_keyword="#c4a7e7",
|
|
939
|
+
t_string="#f6c177",
|
|
940
|
+
t_comment="#6e6a86",
|
|
941
|
+
t_number="#ebbcba",
|
|
942
|
+
t_func="#9ccfd8",
|
|
943
|
+
t_type="#eb6f92",
|
|
944
|
+
t_operator="#31748f",
|
|
945
|
+
t_decorator="#f6c177",
|
|
946
|
+
)
|
|
947
|
+
|
|
948
|
+
def _theme_everforest_dark() -> Theme:
|
|
949
|
+
"""Tema ``everforest_dark``."""
|
|
950
|
+
return Theme(
|
|
951
|
+
name="everforest_dark",
|
|
952
|
+
dark=True,
|
|
953
|
+
bg="#2d353b",
|
|
954
|
+
fg="#d3c6aa",
|
|
955
|
+
fg_muted="#7a8478",
|
|
956
|
+
editor_bg="#272e33",
|
|
957
|
+
cursor="#d3c6aa",
|
|
958
|
+
sidebar_bg="#2d353b",
|
|
959
|
+
activity_bg="#232a2e",
|
|
960
|
+
tabbar_bg="#2d353b",
|
|
961
|
+
tab_act_bg="#272e33",
|
|
962
|
+
tab_act_fg="#d3c6aa",
|
|
963
|
+
tab_in_fg="#7a8478",
|
|
964
|
+
panel_bg="#2d353b",
|
|
965
|
+
floating_bg="#3d484d",
|
|
966
|
+
sel_bg="#3d484d",
|
|
967
|
+
sel_fg="#d3c6aa",
|
|
968
|
+
input_bg="#3d484d",
|
|
969
|
+
border="#475258",
|
|
970
|
+
btn_bg="#3d484d",
|
|
971
|
+
btn_hover="#475258",
|
|
972
|
+
btn_fg="#d3c6aa",
|
|
973
|
+
btn_primary="#a7c080",
|
|
974
|
+
btn_primary_fg="#2d353b",
|
|
975
|
+
scroll_bg="#2d353b",
|
|
976
|
+
scroll_thumb="#475258",
|
|
977
|
+
ok_fg="#a7c080",
|
|
978
|
+
warn_fg="#dbbc7f",
|
|
979
|
+
err_fg="#e67e80",
|
|
980
|
+
accent="#7fbbb3",
|
|
981
|
+
t_keyword="#e67e80",
|
|
982
|
+
t_string="#a7c080",
|
|
983
|
+
t_comment="#7a8478",
|
|
984
|
+
t_number="#d699b6",
|
|
985
|
+
t_func="#7fbbb3",
|
|
986
|
+
t_type="#83c092",
|
|
987
|
+
t_operator="#e69875",
|
|
988
|
+
t_decorator="#dbbc7f",
|
|
989
|
+
)
|
|
990
|
+
|
|
991
|
+
def _theme_ayu_mirage() -> Theme:
|
|
992
|
+
"""Tema ``ayu_mirage``."""
|
|
993
|
+
return Theme(
|
|
994
|
+
name="ayu_mirage",
|
|
995
|
+
dark=True,
|
|
996
|
+
bg="#1f2430",
|
|
997
|
+
fg="#cbccc6",
|
|
998
|
+
fg_muted="#5c6773",
|
|
999
|
+
editor_bg="#1f2430",
|
|
1000
|
+
cursor="#ffcc66",
|
|
1001
|
+
sidebar_bg="#171c28",
|
|
1002
|
+
activity_bg="#0f1420",
|
|
1003
|
+
tabbar_bg="#171c28",
|
|
1004
|
+
tab_act_bg="#1f2430",
|
|
1005
|
+
tab_act_fg="#cbccc6",
|
|
1006
|
+
tab_in_fg="#5c6773",
|
|
1007
|
+
panel_bg="#171c28",
|
|
1008
|
+
floating_bg="#242b38",
|
|
1009
|
+
sel_bg="#4d6997",
|
|
1010
|
+
sel_fg="#cbccc6",
|
|
1011
|
+
input_bg="#242b38",
|
|
1012
|
+
border="#323a4c",
|
|
1013
|
+
btn_bg="#242b38",
|
|
1014
|
+
btn_hover="#323a4c",
|
|
1015
|
+
btn_fg="#cbccc6",
|
|
1016
|
+
btn_primary="#ffcc66",
|
|
1017
|
+
btn_primary_fg="#1f2430",
|
|
1018
|
+
scroll_bg="#171c28",
|
|
1019
|
+
scroll_thumb="#323a4c",
|
|
1020
|
+
ok_fg="#bae67e",
|
|
1021
|
+
warn_fg="#ffcc66",
|
|
1022
|
+
err_fg="#ff3333",
|
|
1023
|
+
accent="#73d0ff",
|
|
1024
|
+
t_keyword="#ffa759",
|
|
1025
|
+
t_string="#bae67e",
|
|
1026
|
+
t_comment="#5c6773",
|
|
1027
|
+
t_number="#d4bfff",
|
|
1028
|
+
t_func="#5ccfe6",
|
|
1029
|
+
t_type="#73d0ff",
|
|
1030
|
+
t_operator="#f29e74",
|
|
1031
|
+
t_decorator="#ffcc66",
|
|
1032
|
+
)
|
|
1033
|
+
|
|
1034
|
+
def _theme_midnight_void() -> Theme:
|
|
1035
|
+
"""Tema ``midnight_void``."""
|
|
1036
|
+
return Theme(
|
|
1037
|
+
name="midnight_void",
|
|
1038
|
+
dark=True,
|
|
1039
|
+
bg="#090909",
|
|
1040
|
+
fg="#e2e8f0",
|
|
1041
|
+
fg_muted="#6b7c93",
|
|
1042
|
+
editor_bg="#050505",
|
|
1043
|
+
cursor="#7c3aed",
|
|
1044
|
+
sidebar_bg="#0f0f0f",
|
|
1045
|
+
activity_bg="#030303",
|
|
1046
|
+
tabbar_bg="#0f0f0f",
|
|
1047
|
+
tab_act_bg="#090909",
|
|
1048
|
+
tab_act_fg="#e2e8f0",
|
|
1049
|
+
tab_in_fg="#475569",
|
|
1050
|
+
panel_bg="#0f0f0f",
|
|
1051
|
+
floating_bg="#141414",
|
|
1052
|
+
sel_bg="#5b21b6",
|
|
1053
|
+
sel_fg="#ffffff",
|
|
1054
|
+
input_bg="#141414",
|
|
1055
|
+
border="#1e293b",
|
|
1056
|
+
btn_bg="#141414",
|
|
1057
|
+
btn_hover="#1e293b",
|
|
1058
|
+
btn_fg="#e2e8f0",
|
|
1059
|
+
btn_primary="#7c3aed",
|
|
1060
|
+
btn_primary_fg="#ffffff",
|
|
1061
|
+
scroll_bg="#0f0f0f",
|
|
1062
|
+
scroll_thumb="#1e293b",
|
|
1063
|
+
ok_fg="#10b981",
|
|
1064
|
+
warn_fg="#f59e0b",
|
|
1065
|
+
err_fg="#ef4444",
|
|
1066
|
+
accent="#7c3aed",
|
|
1067
|
+
t_keyword="#a78bfa",
|
|
1068
|
+
t_string="#34d399",
|
|
1069
|
+
t_comment="#5a6a82",
|
|
1070
|
+
t_number="#fb923c",
|
|
1071
|
+
t_func="#60a5fa",
|
|
1072
|
+
t_type="#f472b6",
|
|
1073
|
+
t_operator="#22d3ee",
|
|
1074
|
+
t_decorator="#fbbf24",
|
|
1075
|
+
)
|
|
1076
|
+
|
|
1077
|
+
def _theme_sepia() -> Theme:
|
|
1078
|
+
"""Tema ``sepia``."""
|
|
1079
|
+
return Theme(
|
|
1080
|
+
name="sepia",
|
|
1081
|
+
dark=False,
|
|
1082
|
+
bg="#f1e7d0",
|
|
1083
|
+
fg="#433422",
|
|
1084
|
+
fg_muted="#7a6550",
|
|
1085
|
+
editor_bg="#f8f0e0",
|
|
1086
|
+
cursor="#433422",
|
|
1087
|
+
sidebar_bg="#e8d8b8",
|
|
1088
|
+
activity_bg="#d6c9a8",
|
|
1089
|
+
tabbar_bg="#e8d8b8",
|
|
1090
|
+
tab_act_bg="#f8f0e0",
|
|
1091
|
+
tab_act_fg="#433422",
|
|
1092
|
+
tab_in_fg="#9e8a6e",
|
|
1093
|
+
panel_bg="#e8d8b8",
|
|
1094
|
+
floating_bg="#f1e7d0",
|
|
1095
|
+
sel_bg="#c8b99a",
|
|
1096
|
+
sel_fg="#433422",
|
|
1097
|
+
input_bg="#f1e7d0",
|
|
1098
|
+
border="#c8b99a",
|
|
1099
|
+
btn_bg="#dcc9a8",
|
|
1100
|
+
btn_hover="#c8b99a",
|
|
1101
|
+
btn_fg="#433422",
|
|
1102
|
+
btn_primary="#7d5a1e",
|
|
1103
|
+
btn_primary_fg="#f8f0e0",
|
|
1104
|
+
scroll_bg="#e8d8b8",
|
|
1105
|
+
scroll_thumb="#c8b99a",
|
|
1106
|
+
ok_fg="#5a7a3a",
|
|
1107
|
+
warn_fg="#8a6a1e",
|
|
1108
|
+
err_fg="#8a1e1e",
|
|
1109
|
+
accent="#7d5a1e",
|
|
1110
|
+
t_keyword="#7d1e1e",
|
|
1111
|
+
t_string="#3a6a3a",
|
|
1112
|
+
t_comment="#9e8a6e",
|
|
1113
|
+
t_number="#6a3a7d",
|
|
1114
|
+
t_func="#1e4a7d",
|
|
1115
|
+
t_type="#7d4a1e",
|
|
1116
|
+
t_operator="#433422",
|
|
1117
|
+
t_decorator="#8a6a1e",
|
|
1118
|
+
)
|
|
1119
|
+
|
|
1120
|
+
def _theme_high_contrast() -> Theme:
|
|
1121
|
+
"""Tema ``high_contrast``."""
|
|
1122
|
+
return Theme(
|
|
1123
|
+
name="high_contrast",
|
|
1124
|
+
dark=True,
|
|
1125
|
+
bg="#000000",
|
|
1126
|
+
fg="#ffffff",
|
|
1127
|
+
fg_muted="#aaaaaa",
|
|
1128
|
+
editor_bg="#000000",
|
|
1129
|
+
cursor="#ffff00",
|
|
1130
|
+
sidebar_bg="#0a0a0a",
|
|
1131
|
+
activity_bg="#000000",
|
|
1132
|
+
tabbar_bg="#111111",
|
|
1133
|
+
tab_act_bg="#000000",
|
|
1134
|
+
tab_act_fg="#ffffff",
|
|
1135
|
+
tab_in_fg="#aaaaaa",
|
|
1136
|
+
panel_bg="#0a0a0a",
|
|
1137
|
+
floating_bg="#111111",
|
|
1138
|
+
sel_bg="#3355ff",
|
|
1139
|
+
sel_fg="#ffffff",
|
|
1140
|
+
input_bg="#111111",
|
|
1141
|
+
border="#555555",
|
|
1142
|
+
btn_bg="#222222",
|
|
1143
|
+
btn_hover="#333333",
|
|
1144
|
+
btn_fg="#ffffff",
|
|
1145
|
+
btn_primary="#ffff00",
|
|
1146
|
+
btn_primary_fg="#000000",
|
|
1147
|
+
scroll_bg="#000000",
|
|
1148
|
+
scroll_thumb="#555555",
|
|
1149
|
+
ok_fg="#00ff00",
|
|
1150
|
+
warn_fg="#ffff00",
|
|
1151
|
+
err_fg="#ff4444",
|
|
1152
|
+
accent="#00ffff",
|
|
1153
|
+
t_keyword="#ffff00",
|
|
1154
|
+
t_string="#00ff00",
|
|
1155
|
+
t_comment="#aaaaaa",
|
|
1156
|
+
t_number="#ff8800",
|
|
1157
|
+
t_func="#00ffff",
|
|
1158
|
+
t_type="#ff00ff",
|
|
1159
|
+
t_operator="#ffffff",
|
|
1160
|
+
t_decorator="#ffaa00",
|
|
1161
|
+
)
|
|
1162
|
+
|
|
1163
|
+
|
|
1164
|
+
_BUILTIN_THEMES = (
|
|
1165
|
+
_theme_catppuccin_mocha,
|
|
1166
|
+
_theme_fluent_dark,
|
|
1167
|
+
_theme_fluent_light,
|
|
1168
|
+
_theme_tokyo_night,
|
|
1169
|
+
_theme_dracula,
|
|
1170
|
+
_theme_gruvbox_dark,
|
|
1171
|
+
_theme_gruvbox_light,
|
|
1172
|
+
_theme_solarized_dark,
|
|
1173
|
+
_theme_solarized_light,
|
|
1174
|
+
_theme_one_dark_pro,
|
|
1175
|
+
_theme_nord,
|
|
1176
|
+
_theme_monokai_pro,
|
|
1177
|
+
_theme_github_dark,
|
|
1178
|
+
_theme_github_light,
|
|
1179
|
+
_theme_palenight,
|
|
1180
|
+
_theme_rose_pine,
|
|
1181
|
+
_theme_everforest_dark,
|
|
1182
|
+
_theme_ayu_mirage,
|
|
1183
|
+
_theme_midnight_void,
|
|
1184
|
+
_theme_sepia,
|
|
1185
|
+
_theme_high_contrast,
|
|
1186
|
+
)
|
|
1187
|
+
|
|
1188
|
+
|
|
1189
|
+
def _define_themes() -> None:
|
|
1190
|
+
"""Registra os temas embutidos e aplica o reforço holográfico.
|
|
1191
|
+
|
|
1192
|
+
Chame esta função uma única vez durante a inicialização (antes de criar
|
|
1193
|
+
qualquer widget). A função é idempotente - chamadas subsequentes são
|
|
1194
|
+
ignoradas se ``THEMES`` já estiver populado.
|
|
1195
|
+
|
|
1196
|
+
Notas para contribuidores
|
|
1197
|
+
* Prefira definir **todas** as cores de syntax (``t_*``) para garantir
|
|
1198
|
+
contraste adequado em cada tema.
|
|
1199
|
+
* Temas claros devem ter ``dark=False`` e bg/fg invertidos.
|
|
1200
|
+
* Para um tema novo, crie ``_theme_<nome>()`` e acrescente-o a
|
|
1201
|
+
``_BUILTIN_THEMES``: a ordem dali é a do menu View -> Theme.
|
|
1202
|
+
"""
|
|
1203
|
+
if THEMES:
|
|
1204
|
+
return
|
|
1205
|
+
|
|
1206
|
+
for build in _BUILTIN_THEMES:
|
|
1207
|
+
_add(build())
|
|
1208
|
+
_apply_holographic_boost_all()
|
|
1209
|
+
|
|
1210
|
+
|
|
1211
|
+
def _add(theme: Theme) -> None:
|
|
1212
|
+
"""Registra um tema no dicionário global e na lista de ordem."""
|
|
1213
|
+
THEMES[theme.name] = theme
|
|
1214
|
+
if theme.name not in THEME_ORDER:
|
|
1215
|
+
THEME_ORDER.append(theme.name)
|
|
1216
|
+
|
|
1217
|
+
|
|
1218
|
+
_HOLO_EXEMPT_THEMES = frozenset({"high_contrast"})
|
|
1219
|
+
|
|
1220
|
+
_HOLO_SURFACE_FIELDS = (
|
|
1221
|
+
"bg",
|
|
1222
|
+
"editor_bg",
|
|
1223
|
+
"sidebar_bg",
|
|
1224
|
+
"activity_bg",
|
|
1225
|
+
"tabbar_bg",
|
|
1226
|
+
"tab_act_bg",
|
|
1227
|
+
"panel_bg",
|
|
1228
|
+
"floating_bg",
|
|
1229
|
+
"sel_bg",
|
|
1230
|
+
"input_bg",
|
|
1231
|
+
"scroll_bg",
|
|
1232
|
+
"border",
|
|
1233
|
+
"btn_bg",
|
|
1234
|
+
"btn_hover",
|
|
1235
|
+
)
|
|
1236
|
+
|
|
1237
|
+
_HOLO_ACCENT_FIELDS = (
|
|
1238
|
+
"accent",
|
|
1239
|
+
"btn_primary",
|
|
1240
|
+
"cursor",
|
|
1241
|
+
"ok_fg",
|
|
1242
|
+
"warn_fg",
|
|
1243
|
+
"err_fg",
|
|
1244
|
+
)
|
|
1245
|
+
|
|
1246
|
+
|
|
1247
|
+
def _apply_holographic_boost(t: Theme) -> None:
|
|
1248
|
+
"""Aplica o boost holográfico 8K a um tema, in-place.
|
|
1249
|
+
|
|
1250
|
+
Idempotente apenas na primeira chamada por instância: como altera
|
|
1251
|
+
valores já definidos (não é um "fill" de campos vazios), não deve
|
|
1252
|
+
ser chamada mais de uma vez sobre o mesmo objeto Theme, ou o boost
|
|
1253
|
+
seria acumulado. ``_define_themes()`` garante isso chamando uma vez
|
|
1254
|
+
por tema, imediatamente após o registro via ``_add()``.
|
|
1255
|
+
"""
|
|
1256
|
+
from src.theme.utils import hex_glow, hex_vibrance
|
|
1257
|
+
|
|
1258
|
+
if t.name in _HOLO_EXEMPT_THEMES:
|
|
1259
|
+
return
|
|
1260
|
+
|
|
1261
|
+
surface_sat = 0.06
|
|
1262
|
+
surface_light = 0.015 if t.dark else -0.01
|
|
1263
|
+
for attr in _HOLO_SURFACE_FIELDS:
|
|
1264
|
+
val = getattr(t, attr, None)
|
|
1265
|
+
if val:
|
|
1266
|
+
setattr(t, attr, hex_vibrance(val, surface_sat, surface_light))
|
|
1267
|
+
|
|
1268
|
+
for attr in _HOLO_ACCENT_FIELDS:
|
|
1269
|
+
val = getattr(t, attr, None)
|
|
1270
|
+
if val:
|
|
1271
|
+
setattr(t, attr, hex_vibrance(
|
|
1272
|
+
val, 0.10, 0.04 if t.dark else -0.02))
|
|
1273
|
+
|
|
1274
|
+
if t.btn_primary:
|
|
1275
|
+
t.tab_act_border = hex_glow(t.btn_primary, 0.4)
|
|
1276
|
+
|
|
1277
|
+
|
|
1278
|
+
def _apply_holographic_boost_all() -> None:
|
|
1279
|
+
"""Aplica o boost holográfico a todos os temas já registrados em THEMES."""
|
|
1280
|
+
for theme in THEMES.values():
|
|
1281
|
+
_apply_holographic_boost(theme)
|