Skip to content

Commit b6cdae3

Browse files
committed
custom theme picker for codesh
Signed-off-by: Andy Miller <rhuk@mac.com>
1 parent ca69528 commit b6cdae3

File tree

12 files changed

+5069
-84
lines changed

12 files changed

+5069
-84
lines changed

admin/css/codeshtheme-field.css

Lines changed: 439 additions & 0 deletions
Large diffs are not rendered by default.

admin/css/theme-editor.css

Lines changed: 619 additions & 0 deletions
Large diffs are not rendered by default.

admin/js/codeshtheme-field.js

Lines changed: 606 additions & 0 deletions
Large diffs are not rendered by default.

admin/js/theme-editor.js

Lines changed: 848 additions & 0 deletions
Large diffs are not rendered by default.

admin/pages/codesh-themes.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
title: Theme Editor
3+
expires: 0
4+
5+
access:
6+
admin.plugins: true
7+
admin.super: true
8+
---
9+

admin/templates/codesh-themes.html.twig

Lines changed: 335 additions & 0 deletions
Large diffs are not rendered by default.

blueprints.yaml

Lines changed: 27 additions & 84 deletions
Original file line numberDiff line numberDiff line change
@@ -21,122 +21,65 @@ dependencies:
2121
form:
2222
validation: loose
2323
fields:
24+
2425
enabled:
2526
type: toggle
26-
label: Plugin Status
27+
label: PLUGIN_ADMIN.PLUGIN_STATUS
2728
highlight: 1
2829
default: 1
2930
options:
30-
1: Enabled
31-
0: Disabled
31+
1: PLUGIN_ADMIN.ENABLED
32+
0: PLUGIN_ADMIN.DISABLED
3233
validate:
3334
type: bool
3435

3536
active:
3637
type: toggle
37-
label: Active
38+
label: PLUGIN_CODESH.ACTIVE
3839
highlight: 1
3940
default: 1
4041
options:
41-
1: Yes
42-
0: No
42+
1: PLUGIN_ADMIN.YES
43+
0: PLUGIN_ADMIN.NO
4344
validate:
4445
type: bool
4546

4647
process_markdown:
4748
type: toggle
48-
label: Process Markdown Code Blocks
49-
help: Automatically highlight fenced code blocks in markdown (```language)
49+
label: PLUGIN_CODESH.PROCESS_MARKDOWN
50+
help: PLUGIN_CODESH.PROCESS_MARKDOWN_HELP
5051
highlight: 1
5152
default: 1
5253
options:
53-
1: Yes
54-
0: No
54+
1: PLUGIN_ADMIN.YES
55+
0: PLUGIN_ADMIN.NO
5556
validate:
5657
type: bool
5758

5859
theme_dark:
59-
type: select
60-
label: Dark Theme
61-
help: Syntax highlighting theme for dark mode
62-
default: github-dark
63-
options:
64-
andromeeda: Andromeeda
65-
aurora-x: Aurora X
66-
ayu-dark: Ayu Dark
67-
catppuccin-frappe: Catppuccin Frappé
68-
catppuccin-macchiato: Catppuccin Macchiato
69-
catppuccin-mocha: Catppuccin Mocha
70-
dark-plus: Dark+
71-
dracula: Dracula
72-
dracula-soft: Dracula Soft
73-
everforest-dark: Everforest Dark
74-
github-dark: GitHub Dark
75-
github-dark-default: GitHub Dark Default
76-
github-dark-dimmed: GitHub Dark Dimmed
77-
github-dark-high-contrast: GitHub Dark High Contrast
78-
gruvbox-dark-hard: Gruvbox Dark Hard
79-
gruvbox-dark-medium: Gruvbox Dark Medium
80-
gruvbox-dark-soft: Gruvbox Dark Soft
81-
houston: Houston
82-
kanagawa-dragon: Kanagawa Dragon
83-
kanagawa-wave: Kanagawa Wave
84-
laserwave: Laserwave
85-
material-theme: Material Theme
86-
material-theme-darker: Material Theme Darker
87-
material-theme-ocean: Material Theme Ocean
88-
material-theme-palenight: Material Theme Palenight
89-
min-dark: Min Dark
90-
monokai: Monokai
91-
night-owl: Night Owl
92-
nord: Nord
93-
one-dark-pro: One Dark Pro
94-
plastic: Plastic
95-
poimandres: Poimandres
96-
red: Red
97-
rose-pine: Rosé Pine
98-
rose-pine-moon: Rosé Pine Moon
99-
slack-dark: Slack Dark
100-
solarized-dark: Solarized Dark
101-
synthwave-84: Synthwave '84
102-
tokyo-night: Tokyo Night
103-
vesper: Vesper
104-
vitesse-black: Vitesse Black
105-
vitesse-dark: Vitesse Dark
60+
type: codeshtheme
61+
label: PLUGIN_CODESH.DARK_THEME
62+
help: PLUGIN_CODESH.DARK_THEME_HELP
63+
variant: dark
64+
default: helios-dark
65+
placeholder: Select dark theme...
10666

10767
theme_light:
108-
type: select
109-
label: Light Theme
110-
help: Syntax highlighting theme for light mode
111-
default: github-light
112-
options:
113-
catppuccin-latte: Catppuccin Latte
114-
everforest-light: Everforest Light
115-
github-light: GitHub Light
116-
github-light-default: GitHub Light Default
117-
github-light-high-contrast: GitHub Light High Contrast
118-
gruvbox-light-hard: Gruvbox Light Hard
119-
gruvbox-light-medium: Gruvbox Light Medium
120-
gruvbox-light-soft: Gruvbox Light Soft
121-
kanagawa-lotus: Kanagawa Lotus
122-
light-plus: Light+
123-
material-theme-lighter: Material Theme Lighter
124-
min-light: Min Light
125-
one-light: One Light
126-
rose-pine-dawn: Rosé Pine Dawn
127-
slack-ochin: Slack Ochin
128-
snazzy-light: Snazzy Light
129-
solarized-light: Solarized Light
130-
vitesse-light: Vitesse Light
68+
type: codeshtheme
69+
label: PLUGIN_CODESH.LIGHT_THEME
70+
help: PLUGIN_CODESH.LIGHT_THEME_HELP
71+
variant: light
72+
default: helios-light
73+
placeholder: Select light theme...
13174

13275
show_line_numbers:
13376
type: toggle
134-
label: Show Line Numbers (Default)
135-
help: Default setting for showing line numbers. Can be overridden per code block.
77+
label: PLUGIN_CODESH.SHOW_LINE_NUMBERS
78+
help: PLUGIN_CODESH.SHOW_LINE_NUMBERS_HELP
13679
highlight: 0
13780
default: 0
13881
options:
139-
1: Yes
140-
0: No
82+
1: PLUGIN_ADMIN.YES
83+
0: PLUGIN_ADMIN.NO
14184
validate:
14285
type: bool

0 commit comments

Comments
 (0)