Skip to content

Commit

Permalink
[theming] apply debug exception widget colors
Browse files Browse the repository at this point in the history
Signed-off-by: Anton Kosyakov <[email protected]>
  • Loading branch information
akosyakov committed Dec 27, 2019
1 parent b6ee4d3 commit 96becef
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1278,6 +1278,17 @@ export class DebugFrontendApplicationContribution extends AbstractViewContributi
light: 'statusBar.border',
hc: 'statusBar.border'
}, description: 'Status bar border color separating to the sidebar and editor when a program is being debugged. The status bar is shown in the bottom of the window'
},
// Debug Exception Widget colors should be aligned with
// https://github.com/microsoft/vscode/blob/ff5f581425da6230b6f9216ecf19abf6c9d285a6/src/vs/workbench/contrib/debug/browser/exceptionWidget.ts#L23
{
id: 'debugExceptionWidget.border', defaults: {
dark: '#a31515', light: '#a31515', hc: '#a31515'
}, description: 'Exception widget border color.',
}, {
id: 'debugExceptionWidget.background', defaults: {
dark: '#420b0d', light: '#f1dfde', hc: '#420b0d'
}, description: 'Exception widget background color.'
}
);
}
Expand Down
2 changes: 0 additions & 2 deletions packages/debug/src/browser/style/debug-bright.useable.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,4 @@
--theia-debug-configure: url('configure.svg');
--theia-debug-repl: url('repl.svg');
--breakpoints-activate-url: url('breakpoints-activate.svg');
--theia-debug-exception-widget-border-color: #a31515;
--theia-debug-exception-widget-background-color: #f1dfde;
}
2 changes: 0 additions & 2 deletions packages/debug/src/browser/style/debug-dark.useable.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,4 @@
--theia-debug-configure: url('configure-inverse.svg');
--theia-debug-repl: url('repl-inverse.svg');
--breakpoints-activate-url: url('breakpoints-activate-inverse.svg');
--theia-debug-exception-widget-border-color: #a31515;
--theia-debug-exception-widget-background-color: #420b0d;
}
8 changes: 4 additions & 4 deletions packages/debug/src/browser/style/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -399,13 +399,13 @@

/** Exception Widget */
.monaco-editor .zone-widget .zone-widget-container.theia-debug-exception-widget {
color: var(--theia-content-font-color0);
color: var(--theia-editor-foreground);
font-size: var(--theia-code-font-size);
line-height: var(--theia-code-line-height);
font-family: var(--theia-code-font-family);
border-top-color: var(--theia-debug-exception-widget-border-color);
border-bottom-color: var(--theia-debug-exception-widget-border-color);
background-color: var(--theia-debug-exception-widget-background-color);
border-top-color: var(--theia-debugExceptionWidget-border);
border-bottom-color: var(--theia-debugExceptionWidget-border);
background-color: var(--theia-debugExceptionWidget-background);
padding: var(--theia-ui-padding) calc(var(--theia-ui-padding)*1.5);
white-space: pre-wrap;
user-select: text;
Expand Down

0 comments on commit 96becef

Please sign in to comment.