Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Advance Debugging #5774

Merged
merged 12 commits into from
Jan 1, 2020
Prev Previous commit
[theming] apply debug exception widget colors
Signed-off-by: Anton Kosyakov <anton.kosyakov@typefox.io>
  • Loading branch information
akosyakov committed Jan 1, 2020
commit 43b344d70819d7a8b84c7cabe12ef30d54d76f8c
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