Skip to content

Commit

Permalink
core: register additional statusbar colors
Browse files Browse the repository at this point in the history
The commit registers the following theming colors for statusbar items:
- `statusBarItem.errorBackground`
- `statusBarItem.errorForeground`
- `statusBarItem.warningBackground`
- `statusBarItem.warningForeground`

Signed-off-by: vince-fugnitto <[email protected]>
  • Loading branch information
vince-fugnitto committed Apr 14, 2022
1 parent 27535cc commit be804aa
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions packages/core/src/browser/common-frontend-contribution.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1591,6 +1591,34 @@ export class CommonFrontendContribution implements FrontendApplicationContributi
hc: Color.rgba(255, 255, 255, 0.12)
}, description: 'Status bar item background color when hovering. The status bar is shown in the bottom of the window.'
},
{
id: 'statusBarItem.errorBackground', defaults: {
dark: Color.darken('errorBackground', 0.4),
light: Color.darken('errorBackground', 0.4),
hc: undefined,
}, description: 'Status bar error items background color. Error items stand out from other status bar entries to indicate error conditions. The status bar is shown in the bottom of the window.'
},
{
id: 'statusBarItem.errorForeground', defaults: {
dark: Color.white,
light: Color.white,
hc: Color.white
}, description: 'Status bar error items foreground color. Error items stand out from other status bar entries to indicate error conditions. The status bar is shown in the bottom of the window.'
},
{
id: 'statusBarItem.warningBackground', defaults: {
dark: Color.darken('warningBackground', 0.4),
light: Color.darken('warningBackground', 0.4),
hc: undefined
}, description: 'Status bar warning items background color. Warning items stand out from other status bar entries to indicate warning conditions. The status bar is shown in the bottom of the window.'
},
{
id: 'statusBarItem.warningForeground', defaults: {
dark: Color.white,
light: Color.white,
hc: Color.white
}, description: 'Status bar warning items foreground color. Warning items stand out from other status bar entries to indicate warning conditions. The status bar is shown in the bottom of the window.'
},

// Quickinput colors should be aligned with https://code.visualstudio.com/api/references/theme-color#quick-picker
// if not yet contributed by Monaco, check runtime css variables to learn.
Expand Down

0 comments on commit be804aa

Please sign in to comment.