Skip to content

Commit 910ebcb

Browse files
committed
Add diff hunk colors and update version control deleted colors
1 parent 9134ac8 commit 910ebcb

3 files changed

Lines changed: 41 additions & 17 deletions

File tree

extension.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
id = "alpental-theme"
22
name = "Alpental Theme"
3-
version = "0.0.8"
3+
version = "0.0.9"
44
schema_version = 1
55
authors = ["Andrew Carter <ascarter>"]
66
description = "Minimal typography-focused theme for Zed editor."

src/alpental.json.tera

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@
1515
"editor.hover_line_number": "{{ light.text_secondary }}",
1616
"editor.background": "{{ light.alternate }}",
1717
"editor.gutter.background": "{{ light.alternate }}",
18+
"editor.diff_hunk.added.background": "{{ with_alpha(color=accents.info, alpha=0.16) }}",
19+
"editor.diff_hunk.added.hollow_background": "{{ with_alpha(color=accents.info, alpha=0.08) }}",
20+
"editor.diff_hunk.added.hollow_border": "{{ with_alpha(color=accents.info, alpha=0.48) }}",
21+
"editor.diff_hunk.deleted.background": "{{ with_alpha(color=accents.error, alpha=0.16) }}",
22+
"editor.diff_hunk.deleted.hollow_background": "{{ with_alpha(color=accents.error, alpha=0.08) }}",
23+
"editor.diff_hunk.deleted.hollow_border": "{{ with_alpha(color=accents.error, alpha=0.48) }}",
1824
"search.match_background": "{{ with_alpha(color=accents.warning, alpha=0.3) }}",
1925
"search.active_match_background": "{{ with_alpha(color=accents.info, alpha=0.3) }}",
2026
"terminal.background": "{{ light.secondary }}",
@@ -90,12 +96,12 @@
9096
"warning.background": "{{ with_alpha(color=accents.warning, alpha=0.3) }}",
9197
"warning.border": "{{ accents.warning_secondary }}",
9298
"version_control.added": "{{ accents.info }}",
93-
"version_control.deleted": "{{ light.neutral }}",
99+
"version_control.deleted": "{{ accents.error }}",
94100
"version_control.modified": "{{ accents.warning_secondary }}",
95101
"version_control.conflict_marker.ours": "{{ accents.info }}",
96-
"version_control.conflict_marker.theirs": "{{ light.neutral }}",
102+
"version_control.conflict_marker.theirs": "{{ accents.error }}",
97103
"version_control.word_added": "{{ with_alpha(color=accents.info, alpha=0.3) }}",
98-
"version_control.word_deleted": "{{ with_alpha(color=light.neutral, alpha=0.5) }}",
104+
"version_control.word_deleted": "{{ with_alpha(color=accents.error, alpha=0.5) }}",
99105
"vim.normal.background": "{{ light.tertiary }}",
100106
"vim.insert.background": "{{ with_alpha(color=accents.warning, alpha=0.3) }}",
101107
"vim.replace.background": "{{ with_alpha(color=accents.warning, alpha=0.3) }}",
@@ -170,6 +176,12 @@
170176
"editor.hover_line_number": "{{ dark.text_secondary }}",
171177
"editor.background": "{{ dark.alternate }}",
172178
"editor.gutter.background": "{{ dark.alternate }}",
179+
"editor.diff_hunk.added.background": "{{ with_alpha(color=accents.info, alpha=0.20) }}",
180+
"editor.diff_hunk.added.hollow_background": "{{ with_alpha(color=accents.info, alpha=0.10) }}",
181+
"editor.diff_hunk.added.hollow_border": "{{ with_alpha(color=accents.info, alpha=0.60) }}",
182+
"editor.diff_hunk.deleted.background": "{{ with_alpha(color=accents.error, alpha=0.20) }}",
183+
"editor.diff_hunk.deleted.hollow_background": "{{ with_alpha(color=accents.error, alpha=0.10) }}",
184+
"editor.diff_hunk.deleted.hollow_border": "{{ with_alpha(color=accents.error, alpha=0.60) }}",
173185
"search.match_background": "{{ with_alpha(color=accents.warning, alpha=0.7) }}",
174186
"search.active_match_background": "{{ with_alpha(color=accents.info, alpha=0.7) }}",
175187
"terminal.background": "{{ dark.secondary }}",
@@ -213,10 +225,10 @@
213225
"created.background": "{{ with_alpha(color=accents.info, alpha=0.6) }}",
214226
"created.border": "{{ accents.info_secondary }}",
215227
"deleted": "{{ dark.text_primary }}",
216-
"deleted.background": "{{ with_alpha(color=accents.error_secondary, alpha=0.8) }}",
228+
"deleted.background": "{{ with_alpha(color=accents.error, alpha=0.8) }}",
217229
"deleted.border": "{{ accents.error }}",
218230
"error": "{{ dark.text_primary }}",
219-
"error.background": "{{ with_alpha(color=accents.error_secondary, alpha=0.8) }}",
231+
"error.background": "{{ with_alpha(color=accents.error, alpha=0.8) }}",
220232
"error.border": "{{ accents.error }}",
221233
"hidden": "{{ dark.text_disabled }}",
222234
"hidden.background": "{{ dark.neutral }}",
@@ -245,12 +257,12 @@
245257
"warning.background": "{{ with_alpha(color=accents.warning, alpha=0.7) }}",
246258
"warning.border": "{{ accents.warning_secondary }}",
247259
"version_control.added": "{{ accents.info }}",
248-
"version_control.deleted": "{{ dark.neutral }}",
260+
"version_control.deleted": "{{ accents.error}}",
249261
"version_control.modified": "{{ accents.warning }}",
250262
"version_control.conflict_marker.ours": "{{ accents.info }}",
251-
"version_control.conflict_marker.theirs": "{{ dark.neutral }}",
263+
"version_control.conflict_marker.theirs": "{{ accents.error }}",
252264
"version_control.word_added": "{{ with_alpha(color=accents.info, alpha=0.5) }}",
253-
"version_control.word_deleted": "{{ with_alpha(color=dark.neutral, alpha=0.5) }}",
265+
"version_control.word_deleted": "{{ with_alpha(color=accents.error, alpha=0.5) }}",
254266
"vim.normal.background": "{{ dark.secondary }}",
255267
"vim.insert.background": "{{ with_alpha(color=accents.warning, alpha=0.7) }}",
256268
"vim.replace.background": "{{ with_alpha(color=accents.warning, alpha=0.7) }}",

themes/alpental.json

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@
1515
"editor.hover_line_number": "#494949",
1616
"editor.background": "#FAFAFA",
1717
"editor.gutter.background": "#FAFAFA",
18+
"editor.diff_hunk.added.background": "#4294FF29",
19+
"editor.diff_hunk.added.hollow_background": "#4294FF14",
20+
"editor.diff_hunk.added.hollow_border": "#4294FF7A",
21+
"editor.diff_hunk.deleted.background": "#F05A4F29",
22+
"editor.diff_hunk.deleted.hollow_background": "#F05A4F14",
23+
"editor.diff_hunk.deleted.hollow_border": "#F05A4F7A",
1824
"search.match_background": "#FFAC004D",
1925
"search.active_match_background": "#4294FF4D",
2026
"terminal.background": "#F2F2F2",
@@ -90,12 +96,12 @@
9096
"warning.background": "#FFAC004D",
9197
"warning.border": "#D58103",
9298
"version_control.added": "#4294FF",
93-
"version_control.deleted": "#CBCBCB",
99+
"version_control.deleted": "#F05A4F",
94100
"version_control.modified": "#D58103",
95101
"version_control.conflict_marker.ours": "#4294FF",
96-
"version_control.conflict_marker.theirs": "#CBCBCB",
102+
"version_control.conflict_marker.theirs": "#F05A4F",
97103
"version_control.word_added": "#4294FF4D",
98-
"version_control.word_deleted": "#CBCBCB80",
104+
"version_control.word_deleted": "#F05A4F80",
99105
"vim.normal.background": "#ECECEC",
100106
"vim.insert.background": "#FFAC004D",
101107
"vim.replace.background": "#FFAC004D",
@@ -170,6 +176,12 @@
170176
"editor.hover_line_number": "#CBCBCB",
171177
"editor.background": "#151515",
172178
"editor.gutter.background": "#151515",
179+
"editor.diff_hunk.added.background": "#4294FF33",
180+
"editor.diff_hunk.added.hollow_background": "#4294FF1A",
181+
"editor.diff_hunk.added.hollow_border": "#4294FF99",
182+
"editor.diff_hunk.deleted.background": "#F05A4F33",
183+
"editor.diff_hunk.deleted.hollow_background": "#F05A4F1A",
184+
"editor.diff_hunk.deleted.hollow_border": "#F05A4F99",
173185
"search.match_background": "#FFAC00B3",
174186
"search.active_match_background": "#4294FFB3",
175187
"terminal.background": "#212121",
@@ -213,10 +225,10 @@
213225
"created.background": "#4294FF99",
214226
"created.border": "#005E7D",
215227
"deleted": "#FFFFFF",
216-
"deleted.background": "#DC3127CC",
228+
"deleted.background": "#F05A4FCC",
217229
"deleted.border": "#F05A4F",
218230
"error": "#FFFFFF",
219-
"error.background": "#DC3127CC",
231+
"error.background": "#F05A4FCC",
220232
"error.border": "#F05A4F",
221233
"hidden": "#8E8E8E",
222234
"hidden.background": "#CBCBCB",
@@ -245,12 +257,12 @@
245257
"warning.background": "#FFAC00B3",
246258
"warning.border": "#D58103",
247259
"version_control.added": "#4294FF",
248-
"version_control.deleted": "#CBCBCB",
260+
"version_control.deleted": "#F05A4F",
249261
"version_control.modified": "#FFAC00",
250262
"version_control.conflict_marker.ours": "#4294FF",
251-
"version_control.conflict_marker.theirs": "#CBCBCB",
263+
"version_control.conflict_marker.theirs": "#F05A4F",
252264
"version_control.word_added": "#4294FF80",
253-
"version_control.word_deleted": "#CBCBCB80",
265+
"version_control.word_deleted": "#F05A4F80",
254266
"vim.normal.background": "#212121",
255267
"vim.insert.background": "#FFAC00B3",
256268
"vim.replace.background": "#FFAC00B3",

0 commit comments

Comments
 (0)