Skip to content

Commit

Permalink
Improve theming of vscode UI elements
Browse files Browse the repository at this point in the history
  • Loading branch information
benbusby committed Jun 10, 2021
1 parent 776ad87 commit 2ad01f1
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 9 deletions.
8 changes: 4 additions & 4 deletions build.lua 100755 → 100644
Expand Up @@ -50,7 +50,7 @@ color_table = {
theme_name_alt='threed',
color_bg_main='#303454',
color_bg_alt1='#373c60',
color_bg_alt2='#202339',
color_bg_alt2='#2a2e4a',
color_fg='#f0faff',
color_linenr='#9590b2',
color_select='#534f63',
Expand Down Expand Up @@ -102,9 +102,9 @@ color_table = {
magicant={
theme_name_full='Magicant (Light)',
theme_name_alt='magicant',
color_bg_main='#e6e5ab',
color_bg_main='#f9f8b9',
color_bg_alt1='#efeeb2',
color_bg_alt2='#f9f8b9',
color_bg_alt2='#e6e5ab',
color_fg='#220088',
color_linenr='#876a55',
color_select='#b299ff',
Expand Down Expand Up @@ -233,7 +233,7 @@ local function create_editor_themes(editor)
color_table[theme]['uuid'] = uuid()
generate_theme(filename, theme, color_table[theme], out_paths[editor])

-- A few themes can use "-darker" variants, which swaps the default
-- A few themes can use "-darker" variants, which swaps the default
-- background (color_bg_main) and the darker background (color_bg_alt2)
if darker_variants[theme] ~= nil then
local darker_name = theme .. '_darker'
Expand Down
15 changes: 10 additions & 5 deletions templates/template.json
Expand Up @@ -364,12 +364,14 @@
"list.hoverBackground": "#FFFFFF1a",
"list.inactiveSelectionBackground": "#FFFFFF33",
"activityBar.background": "color_bg_alt2",
"activityBar.dropBackground": "color_boolean80",
"activityBarBadge.background": "color_boolean",
"activityBarBadge.foreground": "#000000",
"badge.background": "color_boolean",
"badge.foreground": "#000000",
"activityBar.foreground": "color_fg",
"activityBar.dropBackground": "color_select80",
"activityBarBadge.background": "color_select",
"activityBarBadge.foreground": "color_accent",
"badge.background": "color_select",
"badge.foreground": "color_accent",
"sideBar.background": "color_bg_alt1",
"sideBar.foreground": "color_fg",
"sideBarSectionHeader.background": "color_bg_alt2",
"editorGroup.dropBackground": "color_boolean80",
"editorGroup.focusedEmptyBorder": "color_boolean",
Expand All @@ -383,6 +385,8 @@
"tab.unfocusedInactiveModifiedBorder": "#908900",
"editor.background": "color_bg_main",
"editor.foreground": "color_fg",
"editor.selectionBackground": "color_select",
"editor.selectionHighlightBackground": "color_select",
"editorLineNumber.foreground": "color_linenrdd",
"editorLineNumber.activeForeground": "color_accentff",
"editor.lineHighlightBorder": "#FFFFFF1a",
Expand All @@ -399,6 +403,7 @@
"panelTitle.activeBorder": "color_fg80",
"panelTitle.inactiveForeground": "color_fg80",
"statusBar.background": "color_bg_alt1",
"statusBar.foreground": "color_fg",
"statusBar.debuggingBackground": "color_boolean",
"statusBar.debuggingForeground": "#000000",
"statusBar.noFolderBackground": "color_bg_alt1",
Expand Down

0 comments on commit 2ad01f1

Please sign in to comment.