Skip to content

Commit f4f004f

Browse files
authored
improv: Added new text editor semantic highlighting themes. (#422)
* improv: Added new text editor semantic highlighting themes. Current themes use the same colors for all identifier types. These two new themes are just examples of what the new feature makes possible. One aims to simulate CLion Darcula theme and the other is an extension of the original dark theme. * fix: corrected entries to readme file * fix: corrected base for the theme Made sure readme looks correctly on fork and links go to files.
1 parent 5c6cb9d commit f4f004f

File tree

3 files changed

+730
-0
lines changed

3 files changed

+730
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,8 @@ Everything will immediately show up in ImHex's Content Store and gets bundled wi
293293
| Catppuccin Frappe | [`themes/catppuccin-frappe.json`](themes/catppuccin-frappe.json) | Catppuccin Frappe Flavor (Dark Theme) |
294294
| Catppuccin Macchiato | [`themes/catppuccin-macchiato.json`](themes/catppuccin-macchiato.json) | Catppuccin Macchiato Flavor (Dark Theme) |
295295
| Catppuccin Mocha | [`themes/catppuccin-mocha.json`](themes/catppuccin-mocha.json) | Catppuccin Mocha Flavor (Dark Theme) |
296+
| Theme Lion | [`themes/theme_lion.json`](themes/theme_lion.json) | Semantic CLion inspired theme (Dark Theme) |
297+
| Retina Dark | [`themes/retina_dark.json`](themes/retina_dark.json) | Semantic theme based on Dark Theme |
296298

297299
### Disassemblers
298300

themes/retina_dark.json

Lines changed: 364 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,364 @@
1+
{
2+
"base": "Dark",
3+
"colors": {
4+
"imgui": {
5+
"border": "#6D6D7F7F",
6+
"border-shadow": "#00000000",
7+
"button": "#4296F966",
8+
"button-active": "#0F87F9FF",
9+
"button-hovered": "#4296F9FF",
10+
"check-mark": "#4296F9FF",
11+
"child-background": "#00000000",
12+
"docking-empty-background": "#0F0F0FEF",
13+
"docking-preview": "#4296F9B2",
14+
"drag-drop-target": "#FFFF00E5",
15+
"frame-background": "#28497A89",
16+
"frame-background-active": "#4296F9AA",
17+
"frame-background-hovered": "#4296F966",
18+
"header": "#4296F94F",
19+
"header-active": "#4296F9FF",
20+
"header-hovered": "#4296F9CC",
21+
"menu-bar-background": "#232323FF",
22+
"modal-window-dim-background": "#CCCCCC59",
23+
"nav-highlight": "#4296F9FF",
24+
"nav-windowing-background": "#CCCCCC33",
25+
"nav-windowing-highlight": "#FFFFFFB2",
26+
"plot-histogram": "#E5B200FF",
27+
"plot-histogram-hovered": "#FF9900FF",
28+
"plot-lines": "#9B9B9BFF",
29+
"plot-lines-hovered": "#FF6D59FF",
30+
"popup-background": "#141414FF",
31+
"resize-grip": "#4296F933",
32+
"resize-grip-active": "#4296F9F2",
33+
"resize-grip-hovered": "#4296F9AA",
34+
"scrollbar-background": "#05050587",
35+
"scrollbar-grab": "#4F4F4FFF",
36+
"scrollbar-grab-active": "#828282FF",
37+
"scrollbar-grab-hovered": "#686868FF",
38+
"separator": "#6D6D7F7F",
39+
"separator-active": "#1966BFFF",
40+
"separator-hovered": "#1966BFC6",
41+
"slider-grab": "#3D84E0FF",
42+
"slider-grab-active": "#4296F9FF",
43+
"tab": "#2D5993DB",
44+
"tab-active": "#3268ADFF",
45+
"tab-hovered": "#4296F9CC",
46+
"tab-unfocused": "#111A25F7",
47+
"tab-unfocused-active": "#22426CFF",
48+
"table-border-light": "#3A3A3FFF",
49+
"table-border-strong": "#4F4F59FF",
50+
"table-header-background": "#303033FF",
51+
"table-row-background": "#00000000",
52+
"table-row-background-alt": "#FFFFFF0F",
53+
"text": "#FFFFFFFF",
54+
"text-disabled": "#7F7F7FFF",
55+
"text-selected-background": "#4296F959",
56+
"title-background": "#232323FF",
57+
"title-background-active": "#232323FF",
58+
"title-background-collapse": "#232323FF",
59+
"window-background": "#0F0F0FFF",
60+
"window-shadow": "#000000FF"
61+
},
62+
"imhex": {
63+
"IEEE-tool-exp": "#5D7F5DFF",
64+
"IEEE-tool-mantissa": "#7F5D5DFF",
65+
"IEEE-tool-sign": "#5D5D7FFF",
66+
"achievement-unlocked": "#F1C40FFF",
67+
"advanced-encoding-ascii": "#06539BFF",
68+
"advanced-encoding-multi": "#F1C40FFF",
69+
"advanced-encoding-single": "#E74C3CFF",
70+
"advanced-encoding-unknown": "#E74C3CFF",
71+
"blur-background": "#00000000",
72+
"desc-button": "#141414FF",
73+
"desc-button-active": "#3C3C3CFF",
74+
"desc-button-hovered": "#282828FF",
75+
"diff-added": "#388B42FF",
76+
"diff-changed": "#F1C40FFF",
77+
"diff-removed": "#E74C3CFF",
78+
"find-highlight": "#672A78FF",
79+
"highlight": "#4DC69BFF",
80+
"logger-debug": "#388B42FF",
81+
"logger-error": "#E74C3CFF",
82+
"logger-fatal": "#672A78FF",
83+
"logger-info": "#06539BFF",
84+
"logger-warning": "#F1C40FFF",
85+
"patches": "#E74C3CFF",
86+
"pattern-selected": "#3683CBFF",
87+
"toolbar-blue": "#06539BFF",
88+
"toolbar-brown": "#DBB377FF",
89+
"toolbar-gray": "#E6E6E6FF",
90+
"toolbar-green": "#388B42FF",
91+
"toolbar-purple": "#672A78FF",
92+
"toolbar-red": "#E74C3CFF",
93+
"toolbar-yellow": "#F1C40FFF"
94+
},
95+
"imnodes": {
96+
"box-selector": "#3D85E01E",
97+
"box-selector-outline": "#3D85E096",
98+
"grid-background": "#282832C8",
99+
"grid-line": "#C8C8C828",
100+
"grid-line-primary": "#F0F0F03C",
101+
"link": "#3D85E0C8",
102+
"link-hovered": "#4296FAFF",
103+
"link-selected": "#4296FAFF",
104+
"mini-map-background": "#19191996",
105+
"mini-map-background-hovered": "#191919C8",
106+
"mini-map-canvas": "#C8C8C819",
107+
"mini-map-canvas-outline": "#C8C8C8C8",
108+
"mini-map-link": "#3D85E0C8",
109+
"mini-map-link-selected": "#4296FAFF",
110+
"mini-map-node-background": "#C8C8C864",
111+
"mini-map-node-background-hovered": "#C8C8C8FF",
112+
"mini-map-node-background-selected": "#C8C8C8FF",
113+
"mini-map-node-outline": "#C8C8C864",
114+
"mini-map-outline": "#96969664",
115+
"mini-map-outline-hovered": "#969696C8",
116+
"node-background": "#323232FF",
117+
"node-background-hovered": "#4B4B4BFF",
118+
"node-background-selected": "#4B4B4BFF",
119+
"node-outline": "#646464FF",
120+
"pin": "#F5CB25FF",
121+
"pin-hovered": "#FA8335FF",
122+
"title-bar": "#294A7AFF",
123+
"title-bar-hovered": "#4296FAFF",
124+
"title-bar-selected": "#4296FAFF"
125+
},
126+
"implot": {
127+
"axis-bg": "#00000000",
128+
"axis-bg-active": "#00000000",
129+
"axis-bg-hovered": "#00000000",
130+
"axis-grid": "#FFFFFF3F",
131+
"axis-text": "#FFFFFFFF",
132+
"axis-tick": "#00000000",
133+
"crosshairs": "#FFFFFF7F",
134+
"error-bar": "#00000000",
135+
"fill": "#00000000",
136+
"frame-bg": "#FFFFFF11",
137+
"inlay-text": "#FFFFFFFF",
138+
"legend-bg": "#141414EF",
139+
"legend-border": "#6D6D7F7F",
140+
"legend-text": "#FFFFFFFF",
141+
"line": "#00000000",
142+
"marker-fill": "#00000000",
143+
"marker-outline": "#00000000",
144+
"plot-bg": "#0000007F",
145+
"plot-border": "#6D6D7F7F",
146+
"selection": "#FF9900FF",
147+
"title-text": "#FFFFFFFF"
148+
},
149+
"text-editor": {
150+
"attribute": "#C09494FF",
151+
"background": "#101010FF",
152+
"breakpoint": "#89140340",
153+
"calculated-pointer": "#AAAAAAFF",
154+
"char-literal": "#936848FF",
155+
"comment": "#206020FF",
156+
"current-line-edge": "#A0A0A040",
157+
"current-line-fill": "#00000040",
158+
"current-line-fill-inactive": "#80808040",
159+
"cursor": "#E0E0E0FF",
160+
"debug-text": "#8A8A8AFF",
161+
"default": "#7F7F7FFF",
162+
"default-text": "#7F7F7FFF",
163+
"doc-block-comment": "#73B473FF",
164+
"doc-comment": "#406020FF",
165+
"doc-global-comment": "#506050FF",
166+
"error-marker": "#90140280",
167+
"error-text": "#96130080",
168+
"function": "#C3C283FF",
169+
"function-parameter": "#DADADAFF",
170+
"function-variable": "#B7B7B7FF",
171+
"global-variable": "#CECECEFF",
172+
"identifier": "#AAAAAAFF",
173+
"keyword": "#4880AFFF",
174+
"known-identifier": "#45B28CFF",
175+
"line-number": "#02A7A7FF",
176+
"local-variable": "#C1C1C1FF",
177+
"multi-line-comment": "#206040FF",
178+
"namespace": "#A96226FF",
179+
"number": "#287928FF",
180+
"pattern-variable": "#D3D3D3FF",
181+
"placed-variable": "#C8C6C6FF",
182+
"preproc-identifier": "#BCB999FF",
183+
"preprocessor": "#C0C04CFF",
184+
"preprocessor-deactivated": "#4F4F4F45",
185+
"punctuation": "#B6B6B6FF",
186+
"selection": "#2060A080",
187+
"separator": "#C4C4C4FF",
188+
"string": "#7E3D3DFF",
189+
"template-variable": "#7C7C7CFF",
190+
"typedef": "#75C34CFF",
191+
"unknown-identifier": "#BC2323FE",
192+
"user-defined-type": "#73BCB2FF",
193+
"view": "#7D7D7DFF",
194+
"warning-text": "#A9A906FF"
195+
}
196+
},
197+
"image_theme": "dark",
198+
"name": "Retina Dark",
199+
"styles": {
200+
"imgui": {
201+
"alpha": 1.0,
202+
"button-text-align": [
203+
0.5,
204+
0.5
205+
],
206+
"cell-padding": [
207+
4.0,
208+
2.0
209+
],
210+
"child-border-size": 1.0,
211+
"child-rounding": 0.0,
212+
"disabled-alpha": 0.6000000238418579,
213+
"frame-border-size": 0.0,
214+
"frame-padding": [
215+
4.0,
216+
3.0
217+
],
218+
"frame-rounding": 0.0,
219+
"grab-min-size": 12.0,
220+
"grab-rounding": 0.0,
221+
"indent-spacing": 10.0,
222+
"item-inner-spacing": [
223+
4.0,
224+
4.0
225+
],
226+
"item-spacing": [
227+
8.0,
228+
4.0
229+
],
230+
"popup-border-size": 1.0,
231+
"popup-rounding": 0.0,
232+
"scrollbar-rounding": 9.0,
233+
"scrollbar-size": 14.0,
234+
"selectable-text-align": [
235+
0.0,
236+
0.0
237+
],
238+
"tab-rounding": 4.0,
239+
"window-border-size": 1.0,
240+
"window-min-size": [
241+
32.0,
242+
32.0
243+
],
244+
"window-padding": [
245+
8.0,
246+
8.0
247+
],
248+
"window-rounding": 0.0,
249+
"window-shadow-angle": 0.0,
250+
"window-shadow-offset": 0.0,
251+
"window-shadow-size": 64.0,
252+
"window-title-align": [
253+
0.0,
254+
0.5
255+
]
256+
},
257+
"imhex": {
258+
"popup-alpha": 0.6499999761581421,
259+
"window-blur": 0.0
260+
},
261+
"imnodes": {
262+
"grid-spacing": 24.0,
263+
"link-hover-distance": 10.0,
264+
"link-line-segments-per-length": 0.10000000149011612,
265+
"link-thickness": 3.0,
266+
"mini-map-offset": [
267+
4.0,
268+
4.0
269+
],
270+
"mini-map-padding": [
271+
8.0,
272+
8.0
273+
],
274+
"node-border-thickness": 1.0,
275+
"node-corner-rounding": 4.0,
276+
"node-padding": [
277+
8.0,
278+
8.0
279+
],
280+
"pin-circle-radius": 4.0,
281+
"pin-hover-radius": 10.0,
282+
"pin-line-thickness": 1.0,
283+
"pin-offset": 0.0,
284+
"pin-quad-side-length": 7.0,
285+
"pin-triangle-side-length": 9.5
286+
},
287+
"implot": {
288+
"annotation-padding": [
289+
2.0,
290+
2.0
291+
],
292+
"digital-bit-gap": 4.0,
293+
"digital-bit-height": 8.0,
294+
"error-bar-size": 5.0,
295+
"error-bar-weight": 1.5,
296+
"fill-alpha": 1.0,
297+
"fit-padding": [
298+
0.0,
299+
0.0
300+
],
301+
"label-padding": [
302+
5.0,
303+
5.0
304+
],
305+
"legend-inner-padding": [
306+
5.0,
307+
5.0
308+
],
309+
"legend-padding": [
310+
10.0,
311+
10.0
312+
],
313+
"legend-spacing": [
314+
5.0,
315+
0.0
316+
],
317+
"line-weight": 1.0,
318+
"major-grid-size": [
319+
1.0,
320+
1.0
321+
],
322+
"major-tick-len": [
323+
10.0,
324+
10.0
325+
],
326+
"major-tick-size": [
327+
1.0,
328+
1.0
329+
],
330+
"marker-size": 4.0,
331+
"marker-weight": 1.0,
332+
"minor-alpha": 0.25,
333+
"minor-grid-size": [
334+
1.0,
335+
1.0
336+
],
337+
"minor-tick-len": [
338+
5.0,
339+
5.0
340+
],
341+
"minor-tick-size": [
342+
1.0,
343+
1.0
344+
],
345+
"mouse-pos-padding": [
346+
10.0,
347+
10.0
348+
],
349+
"plot-border-size": 1.0,
350+
"plot-default-size": [
351+
400.0,
352+
300.0
353+
],
354+
"plot-min-size": [
355+
200.0,
356+
150.0
357+
],
358+
"plot-padding": [
359+
10.0,
360+
10.0
361+
]
362+
}
363+
}
364+
}

0 commit comments

Comments
 (0)