Skip to content

Commit f97acb3

Browse files
author
Benjamin Pasero
committed
theming - inherit badge colors in activity bar
1 parent 7a47589 commit f97acb3

9 files changed

Lines changed: 13 additions & 17 deletions

File tree

extensions/theme-abyss/themes/abyss-color-theme.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@
369369
// Workbench: Activity Bar
370370
"activityBar.background": "#051336",
371371
// "activityBar.foreground": "",
372-
"activityBarBadge.background": "#0063a5",
372+
// "activityBarBadge.background": "",
373373
// "activityBarBadge.foreground": "",
374374
// "activityBar.dropBackground": "",
375375

extensions/theme-defaults/themes/dark_defaults.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"editor.inactiveSelectionBackground": "#3A3D41",
88
"editorIndentGuide.background": "#404040",
99
"editor.selectionHighlightBackground": "#add6ff26",
10-
"list.dropBackground": "#383B3D"
10+
"list.dropBackground": "#383B3D",
11+
"activityBarBadge.background": "#007ACC"
1112
}
1213
}

extensions/theme-defaults/themes/light_defaults.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"editor.inactiveSelectionBackground": "#E5EBF1",
88
"editorIndentGuide.background": "#d3d3d3",
99
"editor.selectionHighlightBackground": "#add6ff4d",
10-
"editorSuggestWidget.background": "#F3F3F3"
10+
"editorSuggestWidget.background": "#F3F3F3",
11+
"activityBarBadge.background": "#007ACC"
1112
}
1213
}

extensions/theme-kimbie-dark/themes/kimbie-dark-color-theme.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
"statusBar.noFolderBackground": "#423523",
2727
"activityBar.background": "#221a0f",
2828
"activityBar.foreground": "#d3af86",
29-
"activityBarBadge.background": "#7f5d38",
3029
"sideBar.background": "#362712",
3130
"editor.lineHighlightBackground": "#5e452b",
3231
"editorCursor.foreground": "#d3af86",

extensions/theme-monokai/themes/monokai-color-theme.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@
4040
"statusBar.noFolderBackground": "#414339",
4141
"statusBar.debuggingBackground": "#75715E",
4242
"activityBar.background": "#272822",
43-
"activityBarBadge.foreground": "#f8f8f2",
44-
"activityBarBadge.background": "#75715E",
4543
"activityBar.foreground": "#f8f8f2",
4644
"activityBar.dropBackground": "#414339",
4745
"sideBar.background": "#1e1f1c",

extensions/theme-red/themes/Red-color-theme.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
"tokenColors": "./red.tmTheme",
33
"colors": {
44
// window
5-
"activityBarBadge.background": "#cc3333",
65
"activityBar.background": "#580000",
76
"tab.inactiveBackground": "#300a0a",
87
"tab.activeBackground": "#490000",

extensions/theme-solarized-dark/themes/solarized-dark-color-theme.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@
412412

413413
// Workbench: Activity Bar
414414
"activityBar.background": "#003847",
415-
"activityBarBadge.background": "#047aa6",
415+
// "activityBarBadge.background": "",
416416
// "activityBar.dropBackground": "",
417417
// "activityBar.foreground": "",
418418
// "activityBarBadge.foreground": "",

extensions/theme-tomorrow-night-blue/themes/tomorrow-night-blue-theme.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@
3131
"statusBar.noFolderBackground": "#001126",
3232
"statusBar.debuggingBackground": "#001126",
3333
"activityBar.background": "#001733",
34-
"activityBarBadge.background": "#bbdaff",
35-
"activityBarBadge.foreground": "#001733",
3634
"badge.background": "#bbdaffcc",
3735
"badge.foreground": "#001733",
3836
"sideBar.background": "#001c40",

src/vs/workbench/common/theme.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*--------------------------------------------------------------------------------------------*/
55

66
import nls = require('vs/nls');
7-
import { registerColor, editorBackground, contrastBorder, transparent } from 'vs/platform/theme/common/colorRegistry';
7+
import { registerColor, editorBackground, contrastBorder, transparent, badgeForeground, badgeBackground } from 'vs/platform/theme/common/colorRegistry';
88
import { IDisposable, Disposable, dispose } from 'vs/base/common/lifecycle';
99
import { IThemeService, ITheme } from 'vs/platform/theme/common/themeService';
1010
import { Color } from 'vs/base/common/color';
@@ -177,15 +177,15 @@ export const ACTIVITY_BAR_DRAG_AND_DROP_BACKGROUND = registerColor('activityBar.
177177
}, nls.localize('activityBarDragAndDropBackground', "Drag and drop feedback color for the activity bar items. The activity bar is showing on the far left or right and allows to switch between views of the side bar."));
178178

179179
export const ACTIVITY_BAR_BADGE_BACKGROUND = registerColor('activityBarBadge.background', {
180-
dark: '#007ACC',
181-
light: '#007ACC',
182-
hc: '#000000'
180+
dark: badgeBackground,
181+
light: badgeBackground,
182+
hc: badgeBackground
183183
}, nls.localize('activityBarBadgeBackground', "Activity notification badge background color. The activity bar is showing on the far left or right and allows to switch between views of the side bar."));
184184

185185
export const ACTIVITY_BAR_BADGE_FOREGROUND = registerColor('activityBarBadge.foreground', {
186-
dark: Color.white,
187-
light: Color.white,
188-
hc: Color.white
186+
dark: badgeForeground,
187+
light: badgeForeground,
188+
hc: badgeForeground
189189
}, nls.localize('activityBarBadgeForeground', "Activity notification badge foreground color. The activity bar is showing on the far left or right and allows to switch between views of the side bar."));
190190

191191

0 commit comments

Comments
 (0)