@fresh-editor/fresh-editor 0.3.2 → 0.3.4
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.
- package/CHANGELOG.md +84 -0
- package/package.json +1 -1
- package/plugins/config-schema.json +9 -1
- package/plugins/diagnostics_panel.ts +4 -0
- package/plugins/find_references.ts +4 -0
- package/plugins/git_explorer.ts +9 -1
- package/plugins/lib/finder.ts +81 -10
- package/plugins/lib/fresh.d.ts +40 -4
- package/plugins/live_grep.i18n.json +42 -14
- package/plugins/live_grep.ts +491 -41
- package/plugins/markdown_compose.ts +17 -3
- package/plugins/schemas/theme.schema.json +462 -12
- package/plugins/search_replace.ts +5 -0
- package/plugins/theme_editor.i18n.json +112 -0
- package/plugins/theme_editor.ts +58 -50
- package/themes/dark.json +2 -0
- package/themes/high-contrast.json +2 -0
- package/themes/light.json +2 -0
- package/themes/nord.json +5 -0
- package/themes/nostalgia.json +2 -0
- package/themes/solarized-dark.json +5 -0
- package/themes/terminal.json +128 -0
|
@@ -119,6 +119,8 @@
|
|
|
119
119
|
"field.inactive_cursor_desc": "kurzor barva in unfocused splits",
|
|
120
120
|
"field.selection_bg": "výběr pozadí",
|
|
121
121
|
"field.selection_bg_desc": "Selected text pozadí",
|
|
122
|
+
"field.selection_modifier": "Modifikátor výběru",
|
|
123
|
+
"field.selection_modifier_desc": "Atributy textu nad pozadím výběru (např. reversed)",
|
|
122
124
|
"field.current_line_bg": "aktuální řádek pozadí",
|
|
123
125
|
"field.current_line_bg_desc": "pozadí of the řádek containing kurzor",
|
|
124
126
|
"field.line_number_fg": "řádek číslo popředí",
|
|
@@ -187,6 +189,10 @@
|
|
|
187
189
|
"field.status_lsp_on_fg_desc": "Popředí indikátoru LSP, když server běží",
|
|
188
190
|
"field.status_lsp_on_bg": "Status Bar LSP zapnuto pozadí",
|
|
189
191
|
"field.status_lsp_on_bg_desc": "Pozadí indikátoru LSP, když server běží",
|
|
192
|
+
"field.status_lsp_actionable_fg": "Status Bar LSP – nutná akce: popředí",
|
|
193
|
+
"field.status_lsp_actionable_fg_desc": "Popředí indikátoru LSP, když jsou k dispozici akce (server nakonfigurován, ale neběží)",
|
|
194
|
+
"field.status_lsp_actionable_bg": "Status Bar LSP – nutná akce: pozadí",
|
|
195
|
+
"field.status_lsp_actionable_bg_desc": "Pozadí indikátoru LSP, když jsou k dispozici akce",
|
|
190
196
|
"field.prompt_fg": "Prompt popředí",
|
|
191
197
|
"field.prompt_fg_desc": "Command prompt text barva",
|
|
192
198
|
"field.prompt_bg": "Prompt pozadí",
|
|
@@ -237,6 +243,8 @@
|
|
|
237
243
|
"field.compose_margin_bg_desc": "Compose mode margin pozadí",
|
|
238
244
|
"field.semantic_highlight_bg": "Semantic zvýraznění pozadí",
|
|
239
245
|
"field.semantic_highlight_bg_desc": "Word under kurzor zvýraznění",
|
|
246
|
+
"field.semantic_highlight_modifier": "Modifikátor sémantického zvýraznění",
|
|
247
|
+
"field.semantic_highlight_modifier_desc": "Atributy textu nad sémantickým zvýrazněním (např. bold, underlined)",
|
|
240
248
|
"field.terminal_bg": "Terminal pozadí",
|
|
241
249
|
"field.terminal_bg_desc": "Embedded terminal pozadí (use Default for transparency)",
|
|
242
250
|
"field.terminal_fg": "Terminal popředí",
|
|
@@ -430,6 +438,8 @@
|
|
|
430
438
|
"field.inactive_cursor_desc": "Cursorfarbe in unfokussierten Splits",
|
|
431
439
|
"field.selection_bg": "Auswahl-Hintergrund",
|
|
432
440
|
"field.selection_bg_desc": "Hintergrund des ausgewaehlten Texts",
|
|
441
|
+
"field.selection_modifier": "Auswahl-Modifikator",
|
|
442
|
+
"field.selection_modifier_desc": "Textattribute ueber dem Auswahl-Hintergrund (z. B. reversed)",
|
|
433
443
|
"field.current_line_bg": "Aktuelle Zeile Hintergrund",
|
|
434
444
|
"field.current_line_bg_desc": "Hintergrund der Zeile mit Cursor",
|
|
435
445
|
"field.line_number_fg": "Zeilennummer Vordergrund",
|
|
@@ -492,6 +502,10 @@
|
|
|
492
502
|
"field.status_lsp_on_fg_desc": "Vordergrund der LSP-Anzeige, wenn ein Server läuft",
|
|
493
503
|
"field.status_lsp_on_bg": "Statusleiste LSP-An Hintergrund",
|
|
494
504
|
"field.status_lsp_on_bg_desc": "Hintergrund der LSP-Anzeige, wenn ein Server läuft",
|
|
505
|
+
"field.status_lsp_actionable_fg": "Statusleiste LSP-Aktion erforderlich Vordergrund",
|
|
506
|
+
"field.status_lsp_actionable_fg_desc": "Vordergrund der LSP-Anzeige, wenn Aktionen verfügbar sind (Server konfiguriert, läuft aber nicht)",
|
|
507
|
+
"field.status_lsp_actionable_bg": "Statusleiste LSP-Aktion erforderlich Hintergrund",
|
|
508
|
+
"field.status_lsp_actionable_bg_desc": "Hintergrund der LSP-Anzeige, wenn Aktionen verfügbar sind",
|
|
495
509
|
"field.prompt_fg": "Eingabezeile Vordergrund",
|
|
496
510
|
"field.prompt_fg_desc": "Textfarbe der Befehlseingabe",
|
|
497
511
|
"field.prompt_bg": "Eingabezeile Hintergrund",
|
|
@@ -542,6 +556,8 @@
|
|
|
542
556
|
"field.compose_margin_bg_desc": "Hintergrund des Rands im Verfassen-Modus",
|
|
543
557
|
"field.semantic_highlight_bg": "Semantische Hervorhebung Hintergrund",
|
|
544
558
|
"field.semantic_highlight_bg_desc": "Hervorhebung des Worts unter dem Cursor",
|
|
559
|
+
"field.semantic_highlight_modifier": "Semantische Hervorhebung Modifikator",
|
|
560
|
+
"field.semantic_highlight_modifier_desc": "Textattribute ueber der semantischen Hervorhebung (z. B. bold, underlined)",
|
|
545
561
|
"field.terminal_bg": "Terminal Hintergrund",
|
|
546
562
|
"field.terminal_bg_desc": "Hintergrund des integrierten Terminals (Default fuer Transparenz)",
|
|
547
563
|
"field.terminal_fg": "Terminal Vordergrund",
|
|
@@ -789,6 +805,8 @@
|
|
|
789
805
|
"field.inactive_cursor_desc": "Cursor color in unfocused splits",
|
|
790
806
|
"field.selection_bg": "Selection Background",
|
|
791
807
|
"field.selection_bg_desc": "Selected text background",
|
|
808
|
+
"field.selection_modifier": "Selection Modifier",
|
|
809
|
+
"field.selection_modifier_desc": "Text attributes layered on top of the selection background (e.g. reversed)",
|
|
792
810
|
"field.current_line_bg": "Current Line Background",
|
|
793
811
|
"field.current_line_bg_desc": "Background of the line containing cursor",
|
|
794
812
|
"field.line_number_fg": "Line Number Foreground",
|
|
@@ -861,6 +879,10 @@
|
|
|
861
879
|
"field.status_lsp_on_fg_desc": "Foreground for the LSP indicator when a server is running",
|
|
862
880
|
"field.status_lsp_on_bg": "Status Bar LSP-On Background",
|
|
863
881
|
"field.status_lsp_on_bg_desc": "Background for the LSP indicator when a server is running",
|
|
882
|
+
"field.status_lsp_actionable_fg": "Status Bar LSP-Actionable Foreground",
|
|
883
|
+
"field.status_lsp_actionable_fg_desc": "Foreground for the LSP indicator when options are available (configured but not running)",
|
|
884
|
+
"field.status_lsp_actionable_bg": "Status Bar LSP-Actionable Background",
|
|
885
|
+
"field.status_lsp_actionable_bg_desc": "Background for the LSP indicator when options are available",
|
|
864
886
|
"field.prompt_fg": "Prompt Foreground",
|
|
865
887
|
"field.prompt_fg_desc": "Command prompt text color",
|
|
866
888
|
"field.prompt_bg": "Prompt Background",
|
|
@@ -911,6 +933,8 @@
|
|
|
911
933
|
"field.compose_margin_bg_desc": "Compose mode margin background",
|
|
912
934
|
"field.semantic_highlight_bg": "Semantic Highlight Background",
|
|
913
935
|
"field.semantic_highlight_bg_desc": "Word under cursor highlight",
|
|
936
|
+
"field.semantic_highlight_modifier": "Semantic Highlight Modifier",
|
|
937
|
+
"field.semantic_highlight_modifier_desc": "Text attributes layered on top of the semantic highlight (e.g. bold, underlined)",
|
|
914
938
|
"field.terminal_bg": "Terminal Background",
|
|
915
939
|
"field.terminal_bg_desc": "Embedded terminal background (use Default for transparency)",
|
|
916
940
|
"field.terminal_fg": "Terminal Foreground",
|
|
@@ -1100,6 +1124,8 @@
|
|
|
1100
1124
|
"field.inactive_cursor_desc": "Color del cursor en divisiones sin foco",
|
|
1101
1125
|
"field.selection_bg": "Fondo de seleccion",
|
|
1102
1126
|
"field.selection_bg_desc": "Fondo del texto seleccionado",
|
|
1127
|
+
"field.selection_modifier": "Modificador de seleccion",
|
|
1128
|
+
"field.selection_modifier_desc": "Atributos de texto sobre el fondo de seleccion (p. ej. reversed)",
|
|
1103
1129
|
"field.current_line_bg": "Fondo de linea actual",
|
|
1104
1130
|
"field.current_line_bg_desc": "Fondo de la linea que contiene el cursor",
|
|
1105
1131
|
"field.line_number_fg": "Primer plano de numero de linea",
|
|
@@ -1162,6 +1188,10 @@
|
|
|
1162
1188
|
"field.status_lsp_on_fg_desc": "Color del indicador LSP cuando hay un servidor en ejecución",
|
|
1163
1189
|
"field.status_lsp_on_bg": "Fondo de LSP activo en barra de estado",
|
|
1164
1190
|
"field.status_lsp_on_bg_desc": "Color de fondo del indicador LSP cuando hay un servidor en ejecución",
|
|
1191
|
+
"field.status_lsp_actionable_fg": "Primer plano del LSP accionable en barra de estado",
|
|
1192
|
+
"field.status_lsp_actionable_fg_desc": "Color del indicador LSP cuando hay opciones disponibles (configurado pero no en ejecución)",
|
|
1193
|
+
"field.status_lsp_actionable_bg": "Fondo del LSP accionable en barra de estado",
|
|
1194
|
+
"field.status_lsp_actionable_bg_desc": "Fondo del indicador LSP cuando hay opciones disponibles",
|
|
1165
1195
|
"field.prompt_fg": "Primer plano de prompt",
|
|
1166
1196
|
"field.prompt_fg_desc": "Color de texto del prompt de comandos",
|
|
1167
1197
|
"field.prompt_bg": "Fondo de prompt",
|
|
@@ -1212,6 +1242,8 @@
|
|
|
1212
1242
|
"field.compose_margin_bg_desc": "Fondo del margen en modo composicion",
|
|
1213
1243
|
"field.semantic_highlight_bg": "Fondo de resaltado semantico",
|
|
1214
1244
|
"field.semantic_highlight_bg_desc": "Resaltado de palabra bajo el cursor",
|
|
1245
|
+
"field.semantic_highlight_modifier": "Modificador de resaltado semantico",
|
|
1246
|
+
"field.semantic_highlight_modifier_desc": "Atributos de texto sobre el resaltado semantico (p. ej. bold, underlined)",
|
|
1215
1247
|
"field.terminal_bg": "Fondo de terminal",
|
|
1216
1248
|
"field.terminal_bg_desc": "Fondo de terminal integrada (use Default para transparencia)",
|
|
1217
1249
|
"field.terminal_fg": "Primer plano de terminal",
|
|
@@ -1435,6 +1467,8 @@
|
|
|
1435
1467
|
"field.inactive_cursor_desc": "Couleur du curseur dans les panneaux non focuses",
|
|
1436
1468
|
"field.selection_bg": "Arriere-plan de selection",
|
|
1437
1469
|
"field.selection_bg_desc": "Arriere-plan du texte selectionne",
|
|
1470
|
+
"field.selection_modifier": "Modificateur de selection",
|
|
1471
|
+
"field.selection_modifier_desc": "Attributs de texte sur l'arriere-plan de selection (par ex. reversed)",
|
|
1438
1472
|
"field.current_line_bg": "Arriere-plan de ligne courante",
|
|
1439
1473
|
"field.current_line_bg_desc": "Arriere-plan de la ligne contenant le curseur",
|
|
1440
1474
|
"field.line_number_fg": "Premier plan des numeros de ligne",
|
|
@@ -1497,6 +1531,10 @@
|
|
|
1497
1531
|
"field.status_lsp_on_fg_desc": "Couleur de l'indicateur LSP quand un serveur fonctionne",
|
|
1498
1532
|
"field.status_lsp_on_bg": "Arriere-plan LSP actif barre d'etat",
|
|
1499
1533
|
"field.status_lsp_on_bg_desc": "Couleur de fond de l'indicateur LSP quand un serveur fonctionne",
|
|
1534
|
+
"field.status_lsp_actionable_fg": "Premier plan LSP actionnable barre d'etat",
|
|
1535
|
+
"field.status_lsp_actionable_fg_desc": "Couleur de l'indicateur LSP quand des options sont disponibles (configuré mais non lancé)",
|
|
1536
|
+
"field.status_lsp_actionable_bg": "Arriere-plan LSP actionnable barre d'etat",
|
|
1537
|
+
"field.status_lsp_actionable_bg_desc": "Arrière-plan de l'indicateur LSP quand des options sont disponibles",
|
|
1500
1538
|
"field.prompt_fg": "Premier plan invite",
|
|
1501
1539
|
"field.prompt_fg_desc": "Couleur du texte de l'invite de commande",
|
|
1502
1540
|
"field.prompt_bg": "Arriere-plan invite",
|
|
@@ -1547,6 +1585,8 @@
|
|
|
1547
1585
|
"field.compose_margin_bg_desc": "Arriere-plan de la marge en mode composition",
|
|
1548
1586
|
"field.semantic_highlight_bg": "Arriere-plan surlignage semantique",
|
|
1549
1587
|
"field.semantic_highlight_bg_desc": "Surlignage du mot sous le curseur",
|
|
1588
|
+
"field.semantic_highlight_modifier": "Modificateur de surlignage semantique",
|
|
1589
|
+
"field.semantic_highlight_modifier_desc": "Attributs de texte sur le surlignage semantique (par ex. bold, underlined)",
|
|
1550
1590
|
"field.terminal_bg": "Arriere-plan terminal",
|
|
1551
1591
|
"field.terminal_bg_desc": "Arriere-plan du terminal integre (utilisez Default pour la transparence)",
|
|
1552
1592
|
"field.terminal_fg": "Premier plan terminal",
|
|
@@ -1770,6 +1810,8 @@
|
|
|
1770
1810
|
"field.inactive_cursor_desc": "フォーカスのない分割でのカーソル色",
|
|
1771
1811
|
"field.selection_bg": "選択背景",
|
|
1772
1812
|
"field.selection_bg_desc": "選択テキストの背景",
|
|
1813
|
+
"field.selection_modifier": "選択修飾子",
|
|
1814
|
+
"field.selection_modifier_desc": "選択背景の上に重ねるテキスト属性 (例: reversed)",
|
|
1773
1815
|
"field.current_line_bg": "現在行の背景",
|
|
1774
1816
|
"field.current_line_bg_desc": "カーソルがある行の背景",
|
|
1775
1817
|
"field.line_number_fg": "行番号前景",
|
|
@@ -1832,6 +1874,10 @@
|
|
|
1832
1874
|
"field.status_lsp_on_fg_desc": "サーバー実行中の LSP インジケーターのテキスト色",
|
|
1833
1875
|
"field.status_lsp_on_bg": "ステータスバー LSP オン背景",
|
|
1834
1876
|
"field.status_lsp_on_bg_desc": "サーバー実行中の LSP インジケーターの背景色",
|
|
1877
|
+
"field.status_lsp_actionable_fg": "ステータスバー LSP アクション可能 前景色",
|
|
1878
|
+
"field.status_lsp_actionable_fg_desc": "LSP インジケーターの前景色(設定済みだが未起動など、操作可能な状態)",
|
|
1879
|
+
"field.status_lsp_actionable_bg": "ステータスバー LSP アクション可能 背景色",
|
|
1880
|
+
"field.status_lsp_actionable_bg_desc": "LSP インジケーターの背景色(操作可能な状態)",
|
|
1835
1881
|
"field.prompt_fg": "プロンプト前景",
|
|
1836
1882
|
"field.prompt_fg_desc": "コマンドプロンプトのテキスト色",
|
|
1837
1883
|
"field.prompt_bg": "プロンプト背景",
|
|
@@ -1882,6 +1928,8 @@
|
|
|
1882
1928
|
"field.compose_margin_bg_desc": "作成モードのマージン背景",
|
|
1883
1929
|
"field.semantic_highlight_bg": "セマンティックハイライト背景",
|
|
1884
1930
|
"field.semantic_highlight_bg_desc": "カーソル下の単語のハイライト",
|
|
1931
|
+
"field.semantic_highlight_modifier": "セマンティックハイライト修飾子",
|
|
1932
|
+
"field.semantic_highlight_modifier_desc": "セマンティックハイライトの上に重ねるテキスト属性 (例: bold, underlined)",
|
|
1885
1933
|
"field.terminal_bg": "ターミナル背景",
|
|
1886
1934
|
"field.terminal_bg_desc": "組み込みターミナルの背景 (透過にはDefaultを使用)",
|
|
1887
1935
|
"field.terminal_fg": "ターミナル前景",
|
|
@@ -2129,6 +2177,8 @@
|
|
|
2129
2177
|
"field.inactive_cursor_desc": "커서 색상 in unfocused splits",
|
|
2130
2178
|
"field.selection_bg": "선택 배경",
|
|
2131
2179
|
"field.selection_bg_desc": "Selected 텍스트 배경",
|
|
2180
|
+
"field.selection_modifier": "선택 수정자",
|
|
2181
|
+
"field.selection_modifier_desc": "선택 배경 위에 적용되는 텍스트 속성 (예: reversed)",
|
|
2132
2182
|
"field.current_line_bg": "현재 줄 배경",
|
|
2133
2183
|
"field.current_line_bg_desc": "배경 of the 줄 containing 커서",
|
|
2134
2184
|
"field.line_number_fg": "줄 숫자 전경",
|
|
@@ -2197,6 +2247,10 @@
|
|
|
2197
2247
|
"field.status_lsp_on_fg_desc": "서버 실행 중인 LSP 표시기의 텍스트 색상",
|
|
2198
2248
|
"field.status_lsp_on_bg": "Status Bar LSP 켜짐 배경",
|
|
2199
2249
|
"field.status_lsp_on_bg_desc": "서버 실행 중인 LSP 표시기의 배경 색상",
|
|
2250
|
+
"field.status_lsp_actionable_fg": "상태 표시줄 LSP 작업 가능 전경",
|
|
2251
|
+
"field.status_lsp_actionable_fg_desc": "LSP 표시기에 작업 가능한 옵션이 있을 때 전경색 (구성됨, 실행 중 아님)",
|
|
2252
|
+
"field.status_lsp_actionable_bg": "상태 표시줄 LSP 작업 가능 배경",
|
|
2253
|
+
"field.status_lsp_actionable_bg_desc": "LSP 표시기에 작업 가능한 옵션이 있을 때 배경색",
|
|
2200
2254
|
"field.prompt_fg": "Prompt 전경",
|
|
2201
2255
|
"field.prompt_fg_desc": "Command prompt 텍스트 색상",
|
|
2202
2256
|
"field.prompt_bg": "Prompt 배경",
|
|
@@ -2247,6 +2301,8 @@
|
|
|
2247
2301
|
"field.compose_margin_bg_desc": "Compose mode margin 배경",
|
|
2248
2302
|
"field.semantic_highlight_bg": "Semantic 강조 배경",
|
|
2249
2303
|
"field.semantic_highlight_bg_desc": "Word under 커서 강조",
|
|
2304
|
+
"field.semantic_highlight_modifier": "Semantic 강조 수정자",
|
|
2305
|
+
"field.semantic_highlight_modifier_desc": "Semantic 강조 위에 적용되는 텍스트 속성 (예: bold, underlined)",
|
|
2250
2306
|
"field.terminal_bg": "Terminal 배경",
|
|
2251
2307
|
"field.terminal_bg_desc": "Embedded terminal 배경 (use Default for transparency)",
|
|
2252
2308
|
"field.terminal_fg": "Terminal 전경",
|
|
@@ -2464,6 +2520,8 @@
|
|
|
2464
2520
|
"field.inactive_cursor_desc": "cursor cor in unfocused splits",
|
|
2465
2521
|
"field.selection_bg": "seleção fundo",
|
|
2466
2522
|
"field.selection_bg_desc": "Selected texto fundo",
|
|
2523
|
+
"field.selection_modifier": "Modificador de seleção",
|
|
2524
|
+
"field.selection_modifier_desc": "Atributos de texto sobre o fundo de seleção (ex. reversed)",
|
|
2467
2525
|
"field.current_line_bg": "atual linha fundo",
|
|
2468
2526
|
"field.current_line_bg_desc": "fundo of the linha containing cursor",
|
|
2469
2527
|
"field.line_number_fg": "linha número primeiro plano",
|
|
@@ -2532,6 +2590,10 @@
|
|
|
2532
2590
|
"field.status_lsp_on_fg_desc": "Cor do indicador LSP quando um servidor esta em execucao",
|
|
2533
2591
|
"field.status_lsp_on_bg": "Status Bar LSP ligado fundo",
|
|
2534
2592
|
"field.status_lsp_on_bg_desc": "Cor de fundo do indicador LSP quando um servidor esta em execucao",
|
|
2593
|
+
"field.status_lsp_actionable_fg": "Primeiro plano do LSP acionável na barra de status",
|
|
2594
|
+
"field.status_lsp_actionable_fg_desc": "Cor do indicador LSP quando há opções disponíveis (configurado mas não em execução)",
|
|
2595
|
+
"field.status_lsp_actionable_bg": "Fundo do LSP acionável na barra de status",
|
|
2596
|
+
"field.status_lsp_actionable_bg_desc": "Fundo do indicador LSP quando há opções disponíveis",
|
|
2535
2597
|
"field.prompt_fg": "Prompt primeiro plano",
|
|
2536
2598
|
"field.prompt_fg_desc": "Command prompt texto cor",
|
|
2537
2599
|
"field.prompt_bg": "Prompt fundo",
|
|
@@ -2582,6 +2644,8 @@
|
|
|
2582
2644
|
"field.compose_margin_bg_desc": "Compose mode margin fundo",
|
|
2583
2645
|
"field.semantic_highlight_bg": "Semantic destaque fundo",
|
|
2584
2646
|
"field.semantic_highlight_bg_desc": "Word under cursor destaque",
|
|
2647
|
+
"field.semantic_highlight_modifier": "Semantic destaque modificador",
|
|
2648
|
+
"field.semantic_highlight_modifier_desc": "Atributos de texto sobre o destaque semântico (ex. bold, underlined)",
|
|
2585
2649
|
"field.terminal_bg": "Terminal fundo",
|
|
2586
2650
|
"field.terminal_bg_desc": "Embedded terminal fundo (use Default for transparency)",
|
|
2587
2651
|
"field.terminal_fg": "Terminal primeiro plano",
|
|
@@ -2799,6 +2863,8 @@
|
|
|
2799
2863
|
"field.inactive_cursor_desc": "курсор цвет in unfocused splits",
|
|
2800
2864
|
"field.selection_bg": "выделение фон",
|
|
2801
2865
|
"field.selection_bg_desc": "Selected текст фон",
|
|
2866
|
+
"field.selection_modifier": "Модификатор выделения",
|
|
2867
|
+
"field.selection_modifier_desc": "Текстовые атрибуты поверх фона выделения (напр. reversed)",
|
|
2802
2868
|
"field.current_line_bg": "текущий строка фон",
|
|
2803
2869
|
"field.current_line_bg_desc": "фон of the строка containing курсор",
|
|
2804
2870
|
"field.line_number_fg": "строка число передний план",
|
|
@@ -2867,6 +2933,10 @@
|
|
|
2867
2933
|
"field.status_lsp_on_fg_desc": "Цвет индикатора LSP, когда сервер запущен",
|
|
2868
2934
|
"field.status_lsp_on_bg": "Status Bar LSP включен фон",
|
|
2869
2935
|
"field.status_lsp_on_bg_desc": "Цвет фона индикатора LSP, когда сервер запущен",
|
|
2936
|
+
"field.status_lsp_actionable_fg": "Цвет текста индикатора LSP при доступных действиях",
|
|
2937
|
+
"field.status_lsp_actionable_fg_desc": "Цвет индикатора LSP, когда доступны действия (настроен, но не запущен)",
|
|
2938
|
+
"field.status_lsp_actionable_bg": "Фон индикатора LSP при доступных действиях",
|
|
2939
|
+
"field.status_lsp_actionable_bg_desc": "Фон индикатора LSP, когда доступны действия",
|
|
2870
2940
|
"field.prompt_fg": "Prompt передний план",
|
|
2871
2941
|
"field.prompt_fg_desc": "Command prompt текст цвет",
|
|
2872
2942
|
"field.prompt_bg": "Prompt фон",
|
|
@@ -2917,6 +2987,8 @@
|
|
|
2917
2987
|
"field.compose_margin_bg_desc": "Compose mode margin фон",
|
|
2918
2988
|
"field.semantic_highlight_bg": "Semantic подсветка фон",
|
|
2919
2989
|
"field.semantic_highlight_bg_desc": "Word under курсор подсветка",
|
|
2990
|
+
"field.semantic_highlight_modifier": "Модификатор семантической подсветки",
|
|
2991
|
+
"field.semantic_highlight_modifier_desc": "Текстовые атрибуты поверх семантической подсветки (напр. bold, underlined)",
|
|
2920
2992
|
"field.terminal_bg": "Terminal фон",
|
|
2921
2993
|
"field.terminal_bg_desc": "Embedded terminal фон (use Default for transparency)",
|
|
2922
2994
|
"field.terminal_fg": "Terminal передний план",
|
|
@@ -3134,6 +3206,8 @@
|
|
|
3134
3206
|
"field.inactive_cursor_desc": "เคอร์เซอร์ สี in unfocused splits",
|
|
3135
3207
|
"field.selection_bg": "การเลือก พื้นหลัง",
|
|
3136
3208
|
"field.selection_bg_desc": "Selected ข้อความ พื้นหลัง",
|
|
3209
|
+
"field.selection_modifier": "ตัวปรับการเลือก",
|
|
3210
|
+
"field.selection_modifier_desc": "คุณสมบัติข้อความบนพื้นหลังการเลือก (เช่น reversed)",
|
|
3137
3211
|
"field.current_line_bg": "ปัจจุบัน บรรทัด พื้นหลัง",
|
|
3138
3212
|
"field.current_line_bg_desc": "พื้นหลัง of the บรรทัด containing เคอร์เซอร์",
|
|
3139
3213
|
"field.line_number_fg": "บรรทัด ตัวเลข พื้นหน้า",
|
|
@@ -3202,6 +3276,10 @@
|
|
|
3202
3276
|
"field.status_lsp_on_fg_desc": "สี ตัวบ่งชี้ LSP เมื่อเซิร์ฟเวอร์ทำงาน",
|
|
3203
3277
|
"field.status_lsp_on_bg": "Status Bar LSP เปิด พื้นหลัง",
|
|
3204
3278
|
"field.status_lsp_on_bg_desc": "สี พื้นหลังตัวบ่งชี้ LSP เมื่อเซิร์ฟเวอร์ทำงาน",
|
|
3279
|
+
"field.status_lsp_actionable_fg": "สีตัวอักษร LSP ในแถบสถานะ (มีตัวเลือก)",
|
|
3280
|
+
"field.status_lsp_actionable_fg_desc": "สีของตัวบ่งชี้ LSP เมื่อมีตัวเลือก (กำหนดค่าไว้แต่ไม่ได้รัน)",
|
|
3281
|
+
"field.status_lsp_actionable_bg": "สีพื้นหลัง LSP ในแถบสถานะ (มีตัวเลือก)",
|
|
3282
|
+
"field.status_lsp_actionable_bg_desc": "สีพื้นหลังของตัวบ่งชี้ LSP เมื่อมีตัวเลือก",
|
|
3205
3283
|
"field.prompt_fg": "Prompt พื้นหน้า",
|
|
3206
3284
|
"field.prompt_fg_desc": "Command prompt ข้อความ สี",
|
|
3207
3285
|
"field.prompt_bg": "Prompt พื้นหลัง",
|
|
@@ -3252,6 +3330,8 @@
|
|
|
3252
3330
|
"field.compose_margin_bg_desc": "Compose mode margin พื้นหลัง",
|
|
3253
3331
|
"field.semantic_highlight_bg": "Semantic ไฮไลท์ พื้นหลัง",
|
|
3254
3332
|
"field.semantic_highlight_bg_desc": "Word under เคอร์เซอร์ ไฮไลท์",
|
|
3333
|
+
"field.semantic_highlight_modifier": "ตัวปรับไฮไลท์ความหมาย",
|
|
3334
|
+
"field.semantic_highlight_modifier_desc": "คุณสมบัติข้อความบนการไฮไลท์ความหมาย (เช่น bold, underlined)",
|
|
3255
3335
|
"field.terminal_bg": "Terminal พื้นหลัง",
|
|
3256
3336
|
"field.terminal_bg_desc": "Embedded terminal พื้นหลัง (use Default for transparency)",
|
|
3257
3337
|
"field.terminal_fg": "Terminal พื้นหน้า",
|
|
@@ -3469,6 +3549,8 @@
|
|
|
3469
3549
|
"field.inactive_cursor_desc": "курсор колір in unfocused splits",
|
|
3470
3550
|
"field.selection_bg": "виділення фон",
|
|
3471
3551
|
"field.selection_bg_desc": "Selected текст фон",
|
|
3552
|
+
"field.selection_modifier": "Модифікатор виділення",
|
|
3553
|
+
"field.selection_modifier_desc": "Текстові атрибути поверх тла виділення (напр. reversed)",
|
|
3472
3554
|
"field.current_line_bg": "поточний рядок фон",
|
|
3473
3555
|
"field.current_line_bg_desc": "фон of the рядок containing курсор",
|
|
3474
3556
|
"field.line_number_fg": "рядок число передній план",
|
|
@@ -3537,6 +3619,10 @@
|
|
|
3537
3619
|
"field.status_lsp_on_fg_desc": "Колір індикатора LSP, коли сервер запущено",
|
|
3538
3620
|
"field.status_lsp_on_bg": "Status Bar LSP увімкнено фон",
|
|
3539
3621
|
"field.status_lsp_on_bg_desc": "Колір фону індикатора LSP, коли сервер запущено",
|
|
3622
|
+
"field.status_lsp_actionable_fg": "Колір тексту індикатора LSP при доступних діях",
|
|
3623
|
+
"field.status_lsp_actionable_fg_desc": "Колір індикатора LSP, коли доступні дії (налаштовано, але не запущено)",
|
|
3624
|
+
"field.status_lsp_actionable_bg": "Тло індикатора LSP при доступних діях",
|
|
3625
|
+
"field.status_lsp_actionable_bg_desc": "Тло індикатора LSP, коли доступні дії",
|
|
3540
3626
|
"field.prompt_fg": "Prompt передній план",
|
|
3541
3627
|
"field.prompt_fg_desc": "Command prompt текст колір",
|
|
3542
3628
|
"field.prompt_bg": "Prompt фон",
|
|
@@ -3587,6 +3673,8 @@
|
|
|
3587
3673
|
"field.compose_margin_bg_desc": "Compose mode margin фон",
|
|
3588
3674
|
"field.semantic_highlight_bg": "Semantic підсвітка фон",
|
|
3589
3675
|
"field.semantic_highlight_bg_desc": "Word under курсор підсвітка",
|
|
3676
|
+
"field.semantic_highlight_modifier": "Модифікатор семантичної підсвітки",
|
|
3677
|
+
"field.semantic_highlight_modifier_desc": "Текстові атрибути поверх семантичної підсвітки (напр. bold, underlined)",
|
|
3590
3678
|
"field.terminal_bg": "Terminal фон",
|
|
3591
3679
|
"field.terminal_bg_desc": "Embedded terminal фон (use Default for transparency)",
|
|
3592
3680
|
"field.terminal_fg": "Terminal передній план",
|
|
@@ -3804,6 +3892,8 @@
|
|
|
3804
3892
|
"field.inactive_cursor_desc": "Màu con trỏ trong các ô không có tiêu điểm",
|
|
3805
3893
|
"field.selection_bg": "Nền lựa chọn",
|
|
3806
3894
|
"field.selection_bg_desc": "Nền văn bản đã chọn",
|
|
3895
|
+
"field.selection_modifier": "Bộ điều chỉnh lựa chọn",
|
|
3896
|
+
"field.selection_modifier_desc": "Thuộc tính văn bản phủ trên nền lựa chọn (ví dụ reversed)",
|
|
3807
3897
|
"field.current_line_bg": "Nền dòng hiện tại",
|
|
3808
3898
|
"field.current_line_bg_desc": "Nền của dòng chứa con trỏ",
|
|
3809
3899
|
"field.line_number_fg": "Tiền cảnh số dòng",
|
|
@@ -3872,6 +3962,10 @@
|
|
|
3872
3962
|
"field.status_lsp_on_fg_desc": "Màu chỉ báo LSP khi máy chủ đang chạy",
|
|
3873
3963
|
"field.status_lsp_on_bg": "Nền LSP đang bật thanh trạng thái",
|
|
3874
3964
|
"field.status_lsp_on_bg_desc": "Màu nền chỉ báo LSP khi máy chủ đang chạy",
|
|
3965
|
+
"field.status_lsp_actionable_fg": "Màu chữ LSP có thể thao tác trên thanh trạng thái",
|
|
3966
|
+
"field.status_lsp_actionable_fg_desc": "Màu của chỉ báo LSP khi có các tùy chọn sẵn sàng (đã cấu hình nhưng chưa chạy)",
|
|
3967
|
+
"field.status_lsp_actionable_bg": "Màu nền LSP có thể thao tác trên thanh trạng thái",
|
|
3968
|
+
"field.status_lsp_actionable_bg_desc": "Màu nền của chỉ báo LSP khi có các tùy chọn sẵn sàng",
|
|
3875
3969
|
"field.prompt_fg": "Tiền cảnh dấu nhắc",
|
|
3876
3970
|
"field.prompt_fg_desc": "Màu văn bản dấu nhắc lệnh",
|
|
3877
3971
|
"field.prompt_bg": "Nền dấu nhắc",
|
|
@@ -3922,6 +4016,8 @@
|
|
|
3922
4016
|
"field.compose_margin_bg_desc": "Nền lề chế độ soạn thảo",
|
|
3923
4017
|
"field.semantic_highlight_bg": "Nền đánh dấu ngữ nghĩa",
|
|
3924
4018
|
"field.semantic_highlight_bg_desc": "Đánh dấu từ dưới con trỏ",
|
|
4019
|
+
"field.semantic_highlight_modifier": "Bộ điều chỉnh đánh dấu ngữ nghĩa",
|
|
4020
|
+
"field.semantic_highlight_modifier_desc": "Thuộc tính văn bản phủ trên đánh dấu ngữ nghĩa (ví dụ bold, underlined)",
|
|
3925
4021
|
"field.terminal_bg": "Nền terminal",
|
|
3926
4022
|
"field.terminal_bg_desc": "Nền terminal nhúng (dùng Mặc định cho trong suốt)",
|
|
3927
4023
|
"field.terminal_fg": "Tiền cảnh terminal",
|
|
@@ -4115,6 +4211,8 @@
|
|
|
4115
4211
|
"field.inactive_cursor_desc": "非焦点分割中的光标颜色",
|
|
4116
4212
|
"field.selection_bg": "选择背景",
|
|
4117
4213
|
"field.selection_bg_desc": "选中文本的背景",
|
|
4214
|
+
"field.selection_modifier": "选择修饰符",
|
|
4215
|
+
"field.selection_modifier_desc": "选择背景上方的文本属性(例如 reversed)",
|
|
4118
4216
|
"field.current_line_bg": "当前行背景",
|
|
4119
4217
|
"field.current_line_bg_desc": "光标所在行的背景",
|
|
4120
4218
|
"field.line_number_fg": "行号前景",
|
|
@@ -4177,6 +4275,10 @@
|
|
|
4177
4275
|
"field.status_lsp_on_fg_desc": "服务器运行时 LSP 指示器的文本颜色",
|
|
4178
4276
|
"field.status_lsp_on_bg": "状态栏 LSP 已开启背景",
|
|
4179
4277
|
"field.status_lsp_on_bg_desc": "服务器运行时 LSP 指示器的背景颜色",
|
|
4278
|
+
"field.status_lsp_actionable_fg": "状态栏 LSP 可操作 前景色",
|
|
4279
|
+
"field.status_lsp_actionable_fg_desc": "LSP 指示器在有可用操作时的前景色(已配置但未运行)",
|
|
4280
|
+
"field.status_lsp_actionable_bg": "状态栏 LSP 可操作 背景色",
|
|
4281
|
+
"field.status_lsp_actionable_bg_desc": "LSP 指示器在有可用操作时的背景色",
|
|
4180
4282
|
"field.prompt_fg": "提示符前景",
|
|
4181
4283
|
"field.prompt_fg_desc": "命令提示符文本颜色",
|
|
4182
4284
|
"field.prompt_bg": "提示符背景",
|
|
@@ -4227,6 +4329,8 @@
|
|
|
4227
4329
|
"field.compose_margin_bg_desc": "撰写模式边距背景",
|
|
4228
4330
|
"field.semantic_highlight_bg": "语义高亮背景",
|
|
4229
4331
|
"field.semantic_highlight_bg_desc": "光标下单词的高亮",
|
|
4332
|
+
"field.semantic_highlight_modifier": "语义高亮修饰符",
|
|
4333
|
+
"field.semantic_highlight_modifier_desc": "语义高亮上方的文本属性(例如 bold、underlined)",
|
|
4230
4334
|
"field.terminal_bg": "终端背景",
|
|
4231
4335
|
"field.terminal_bg_desc": "内置终端背景 (使用 Default 实现透明)",
|
|
4232
4336
|
"field.terminal_fg": "终端前景",
|
|
@@ -4450,6 +4554,8 @@
|
|
|
4450
4554
|
"field.inactive_cursor_desc": "Colore del cursore nei pannelli non focalizzati",
|
|
4451
4555
|
"field.selection_bg": "Sfondo selezione",
|
|
4452
4556
|
"field.selection_bg_desc": "Sfondo del testo selezionato",
|
|
4557
|
+
"field.selection_modifier": "Modificatore selezione",
|
|
4558
|
+
"field.selection_modifier_desc": "Attributi di testo sopra lo sfondo della selezione (es. reversed)",
|
|
4453
4559
|
"field.current_line_bg": "Sfondo riga corrente",
|
|
4454
4560
|
"field.current_line_bg_desc": "Sfondo della riga contenente il cursore",
|
|
4455
4561
|
"field.line_number_fg": "Primo piano numero riga",
|
|
@@ -4518,6 +4624,10 @@
|
|
|
4518
4624
|
"field.status_lsp_on_fg_desc": "Colore dell'indicatore LSP quando un server e in esecuzione",
|
|
4519
4625
|
"field.status_lsp_on_bg": "Sfondo LSP attivo barra di stato",
|
|
4520
4626
|
"field.status_lsp_on_bg_desc": "Colore di sfondo dell'indicatore LSP quando un server e in esecuzione",
|
|
4627
|
+
"field.status_lsp_actionable_fg": "Primo piano LSP azionabile barra di stato",
|
|
4628
|
+
"field.status_lsp_actionable_fg_desc": "Colore dell'indicatore LSP quando sono disponibili opzioni (configurato ma non in esecuzione)",
|
|
4629
|
+
"field.status_lsp_actionable_bg": "Sfondo LSP azionabile barra di stato",
|
|
4630
|
+
"field.status_lsp_actionable_bg_desc": "Sfondo dell'indicatore LSP quando sono disponibili opzioni",
|
|
4521
4631
|
"field.prompt_fg": "Primo piano prompt",
|
|
4522
4632
|
"field.prompt_fg_desc": "Colore del testo del prompt dei comandi",
|
|
4523
4633
|
"field.prompt_bg": "Sfondo prompt",
|
|
@@ -4568,6 +4678,8 @@
|
|
|
4568
4678
|
"field.compose_margin_bg_desc": "Sfondo del margine in modalità composizione",
|
|
4569
4679
|
"field.semantic_highlight_bg": "Sfondo evidenziazione semantica",
|
|
4570
4680
|
"field.semantic_highlight_bg_desc": "Evidenziazione della parola sotto il cursore",
|
|
4681
|
+
"field.semantic_highlight_modifier": "Modificatore evidenziazione semantica",
|
|
4682
|
+
"field.semantic_highlight_modifier_desc": "Attributi di testo sopra l'evidenziazione semantica (es. bold, underlined)",
|
|
4571
4683
|
"field.terminal_bg": "Sfondo terminale",
|
|
4572
4684
|
"field.terminal_bg_desc": "Sfondo del terminale integrato (usa Default per la trasparenza)",
|
|
4573
4685
|
"field.terminal_fg": "Primo piano terminale",
|
package/plugins/theme_editor.ts
CHANGED
|
@@ -224,6 +224,30 @@ interface ThemeField {
|
|
|
224
224
|
*/
|
|
225
225
|
let cachedThemeSections: ThemeSection[] | null = null;
|
|
226
226
|
|
|
227
|
+
/**
|
|
228
|
+
* Whether a property schema entry refers to `ColorDef` — directly via
|
|
229
|
+
* `$ref` or wrapped inside an `anyOf` (the schema generator wraps
|
|
230
|
+
* `Option<ColorDef>` as `anyOf: [{$ref: ColorDef}, {type: null}]`).
|
|
231
|
+
* Returns false for unrelated $refs such as `ModifierDef`.
|
|
232
|
+
*/
|
|
233
|
+
function fieldRefersToColorDef(fieldObj: Record<string, unknown>): boolean {
|
|
234
|
+
const refStr = fieldObj["$ref"];
|
|
235
|
+
if (typeof refStr === "string" && refStr.endsWith("/ColorDef")) {
|
|
236
|
+
return true;
|
|
237
|
+
}
|
|
238
|
+
const anyOf = fieldObj["anyOf"];
|
|
239
|
+
if (Array.isArray(anyOf)) {
|
|
240
|
+
for (const variant of anyOf) {
|
|
241
|
+
if (variant && typeof variant === "object") {
|
|
242
|
+
const v = variant as Record<string, unknown>;
|
|
243
|
+
const r = v["$ref"];
|
|
244
|
+
if (typeof r === "string" && r.endsWith("/ColorDef")) return true;
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
return false;
|
|
249
|
+
}
|
|
250
|
+
|
|
227
251
|
/**
|
|
228
252
|
* Load theme sections from the Rust API.
|
|
229
253
|
* Parses the raw JSON Schema and resolves $ref references.
|
|
@@ -258,8 +282,12 @@ function loadThemeSections(): ThemeSection[] {
|
|
|
258
282
|
const sectionOrder = ["editor", "ui", "search", "diagnostic", "syntax"];
|
|
259
283
|
|
|
260
284
|
for (const [sectionName, sectionSchema] of Object.entries(properties)) {
|
|
261
|
-
// Skip
|
|
262
|
-
|
|
285
|
+
// Skip top-level fields that aren't color sections: `name` is the
|
|
286
|
+
// theme's identity and `extends` is the inheritance pointer (a string,
|
|
287
|
+
// not a section). Without this check, the plugin would emit
|
|
288
|
+
// `"extends": {}` when serializing back out, which fails to round-trip
|
|
289
|
+
// as a `ThemeFile`.
|
|
290
|
+
if (sectionName === "name" || sectionName === "extends") continue;
|
|
263
291
|
|
|
264
292
|
const sectionObj = sectionSchema as Record<string, unknown>;
|
|
265
293
|
const sectionDesc = (sectionObj.description as string) || "";
|
|
@@ -276,6 +304,14 @@ function loadThemeSections(): ThemeSection[] {
|
|
|
276
304
|
const fieldObj = fieldSchema as Record<string, unknown>;
|
|
277
305
|
const fieldDesc = (fieldObj.description as string) || "";
|
|
278
306
|
|
|
307
|
+
// Skip non-color fields (e.g. `selection_modifier`, which is a
|
|
308
|
+
// string array of SGR text-attribute names). The theme editor only
|
|
309
|
+
// knows how to format and edit `ColorDef` values; if it tried to
|
|
310
|
+
// hand a modifier-array to `formatColorValue` it would treat the
|
|
311
|
+
// array as an RGB tuple and crash inside `rgbToHex` when the second
|
|
312
|
+
// element turns out to be undefined.
|
|
313
|
+
if (!fieldRefersToColorDef(fieldObj)) continue;
|
|
314
|
+
|
|
279
315
|
// Generate i18n keys from field names
|
|
280
316
|
const i18nName = `field.${fieldName}`;
|
|
281
317
|
const i18nDesc = `field.${fieldName}_desc`;
|
|
@@ -685,59 +721,31 @@ function setNestedValue(obj: Record<string, unknown>, path: string, value: unkno
|
|
|
685
721
|
}
|
|
686
722
|
|
|
687
723
|
/**
|
|
688
|
-
*
|
|
724
|
+
* Load theme registry and populate state.themeRegistry + state.builtinKeys.
|
|
725
|
+
*
|
|
726
|
+
* Themes come pre-merged from the Rust registry (builtins + user dir +
|
|
727
|
+
* packages + bundles), keyed by canonical registry key with `_key`/`_pack`
|
|
728
|
+
* metadata baked in — same data the native `select_theme` prompt sees.
|
|
689
729
|
*/
|
|
690
|
-
function
|
|
691
|
-
const
|
|
692
|
-
const candidates = [
|
|
693
|
-
editor.pathJoin(cwd, "themes"),
|
|
694
|
-
];
|
|
730
|
+
async function loadThemeRegistry(): Promise<void> {
|
|
731
|
+
const themes = editor.getAllThemes() as Record<string, Record<string, unknown>>;
|
|
695
732
|
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
return path;
|
|
699
|
-
}
|
|
700
|
-
}
|
|
733
|
+
state.themeRegistry = new Map();
|
|
734
|
+
state.builtinKeys = new Set();
|
|
701
735
|
|
|
702
|
-
|
|
703
|
-
|
|
736
|
+
for (const [key, data] of Object.entries(themes)) {
|
|
737
|
+
const name = (data?.name as string) || key;
|
|
738
|
+
const pack = (data?._pack as string) || "";
|
|
704
739
|
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
*
|
|
711
|
-
* The registry is keyed by unique keys (repo URLs, file:// paths, or bare
|
|
712
|
-
* names for builtins). Each value contains a `name` field (display name)
|
|
713
|
-
* and `_key`/`_pack` metadata.
|
|
714
|
-
*/
|
|
715
|
-
/**
|
|
716
|
-
* Load theme registry and populate state.themeRegistry + state.builtinKeys.
|
|
717
|
-
*/
|
|
718
|
-
async function loadThemeRegistry(): Promise<void> {
|
|
719
|
-
try {
|
|
720
|
-
editor.debug("[theme_editor] loadThemeRegistry: calling editor.getBuiltinThemes()");
|
|
721
|
-
const rawThemes = editor.getBuiltinThemes();
|
|
722
|
-
const themes = typeof rawThemes === "string"
|
|
723
|
-
? JSON.parse(rawThemes) as Record<string, Record<string, unknown>>
|
|
724
|
-
: rawThemes as Record<string, Record<string, unknown>>;
|
|
725
|
-
state.themeRegistry = new Map();
|
|
726
|
-
state.builtinKeys = new Set();
|
|
727
|
-
for (const [key, data] of Object.entries(themes)) {
|
|
728
|
-
const name = (data?.name as string) || key;
|
|
729
|
-
const pack = (data?._pack as string) || "";
|
|
730
|
-
state.themeRegistry.set(key, {name, pack});
|
|
731
|
-
// Builtin themes have an empty pack; user themes start with "user"
|
|
732
|
-
if (!pack || (!pack.startsWith("user") && !pack.startsWith("pkg"))) {
|
|
733
|
-
state.builtinKeys.add(key);
|
|
734
|
-
}
|
|
740
|
+
state.themeRegistry.set(key, { name, pack });
|
|
741
|
+
|
|
742
|
+
// Builtin themes have an empty pack; user themes start with "user"
|
|
743
|
+
if (!pack || (!pack.startsWith("user") && !pack.startsWith("pkg"))) {
|
|
744
|
+
state.builtinKeys.add(key);
|
|
735
745
|
}
|
|
736
|
-
editor.debug(`[theme_editor] loadThemeRegistry: loaded ${state.themeRegistry.size} themes (${state.builtinKeys.size} builtin)`);
|
|
737
|
-
} catch (e) {
|
|
738
|
-
editor.debug(`[theme_editor] Failed to load theme registry: ${e}`);
|
|
739
|
-
throw e;
|
|
740
746
|
}
|
|
747
|
+
|
|
748
|
+
editor.debug(`[theme_editor] loadThemeRegistry: loaded ${state.themeRegistry.size} themes (${state.builtinKeys.size} builtin)`);
|
|
741
749
|
}
|
|
742
750
|
|
|
743
751
|
/**
|
|
@@ -2592,7 +2600,7 @@ async function open_theme_editor() : Promise<void> {
|
|
|
2592
2600
|
state.sourceSplitId = editor.getActiveSplitId();
|
|
2593
2601
|
state.sourceBufferId = editor.getActiveBufferId();
|
|
2594
2602
|
|
|
2595
|
-
editor.debug("[theme_editor] loading
|
|
2603
|
+
editor.debug("[theme_editor] loading themes...");
|
|
2596
2604
|
// Load available themes
|
|
2597
2605
|
await loadThemeRegistry();
|
|
2598
2606
|
editor.debug(`[theme_editor] loaded ${state.themeRegistry.size} themes (${state.builtinKeys.size} builtin)`);
|
package/themes/dark.json
CHANGED
|
@@ -50,6 +50,8 @@
|
|
|
50
50
|
"popup_bg": [30, 30, 30],
|
|
51
51
|
"popup_selection_bg": [58, 79, 120],
|
|
52
52
|
"popup_text_fg": "White",
|
|
53
|
+
"settings_selected_bg": [58, 79, 120],
|
|
54
|
+
"settings_selected_fg": [255, 255, 255],
|
|
53
55
|
"suggestion_bg": [30, 30, 30],
|
|
54
56
|
"suggestion_selected_bg": [58, 79, 120],
|
|
55
57
|
"help_bg": "Black",
|
|
@@ -50,6 +50,8 @@
|
|
|
50
50
|
"popup_bg": [0, 0, 0],
|
|
51
51
|
"popup_selection_bg": [0, 100, 200],
|
|
52
52
|
"popup_text_fg": [255, 255, 255],
|
|
53
|
+
"settings_selected_bg": [0, 100, 200],
|
|
54
|
+
"settings_selected_fg": [255, 255, 255],
|
|
53
55
|
"suggestion_bg": [0, 0, 0],
|
|
54
56
|
"suggestion_selected_bg": [0, 100, 200],
|
|
55
57
|
"help_bg": [0, 0, 0],
|
package/themes/light.json
CHANGED
|
@@ -50,6 +50,8 @@
|
|
|
50
50
|
"popup_bg": [232, 238, 245],
|
|
51
51
|
"popup_selection_bg": [209, 226, 243],
|
|
52
52
|
"popup_text_fg": [30, 30, 30],
|
|
53
|
+
"settings_selected_bg": [173, 214, 255],
|
|
54
|
+
"settings_selected_fg": [0, 0, 0],
|
|
53
55
|
"suggestion_bg": [232, 238, 245],
|
|
54
56
|
"popup_selection_fg": [0, 0, 0],
|
|
55
57
|
"suggestion_selected_bg": [209, 226, 243],
|
package/themes/nord.json
CHANGED
|
@@ -29,6 +29,11 @@
|
|
|
29
29
|
"popup_selection_bg": [94, 129, 172],
|
|
30
30
|
"popup_selection_fg": [236, 239, 244],
|
|
31
31
|
"popup_text_fg": [216, 222, 233],
|
|
32
|
+
"menu_fg": [216, 222, 233],
|
|
33
|
+
"menu_highlight_bg": [94, 129, 172],
|
|
34
|
+
"menu_highlight_fg": [236, 239, 244],
|
|
35
|
+
"menu_hover_bg": [67, 76, 94],
|
|
36
|
+
"menu_hover_fg": [216, 222, 233],
|
|
32
37
|
"suggestion_bg": [59, 66, 82],
|
|
33
38
|
"suggestion_selected_bg": [94, 129, 172],
|
|
34
39
|
"help_bg": [46, 52, 64],
|
package/themes/nostalgia.json
CHANGED
|
@@ -48,6 +48,8 @@
|
|
|
48
48
|
"popup_bg": [0, 0, 170],
|
|
49
49
|
"popup_selection_bg": [0, 170, 0],
|
|
50
50
|
"popup_text_fg": [255, 255, 85],
|
|
51
|
+
"settings_selected_bg": [170, 0, 170],
|
|
52
|
+
"settings_selected_fg": [255, 255, 255],
|
|
51
53
|
"suggestion_bg": [0, 0, 170],
|
|
52
54
|
"suggestion_selected_bg": [0, 170, 0],
|
|
53
55
|
"help_bg": [0, 0, 170],
|
|
@@ -29,6 +29,11 @@
|
|
|
29
29
|
"popup_selection_bg": [38, 139, 210],
|
|
30
30
|
"popup_selection_fg": [253, 246, 227],
|
|
31
31
|
"popup_text_fg": [147, 161, 161],
|
|
32
|
+
"menu_fg": [147, 161, 161],
|
|
33
|
+
"menu_highlight_bg": [38, 139, 210],
|
|
34
|
+
"menu_highlight_fg": [253, 246, 227],
|
|
35
|
+
"menu_hover_bg": [88, 110, 117],
|
|
36
|
+
"menu_hover_fg": [253, 246, 227],
|
|
32
37
|
"suggestion_bg": [7, 54, 66],
|
|
33
38
|
"suggestion_selected_bg": [38, 139, 210],
|
|
34
39
|
"help_bg": [0, 43, 54],
|