Skip to content

Commit

Permalink
Fix dashboard color theme overrides (#23533)
Browse files Browse the repository at this point in the history
  • Loading branch information
cheenamalhotra authored and cssuh committed Jun 30, 2023
1 parent fb78105 commit 41d62c0
Showing 1 changed file with 0 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ import { CommonServiceInterface } from 'sql/workbench/services/bootstrap/browser

import { IWorkbenchThemeService } from 'vs/workbench/services/themes/common/workbenchThemeService';
import * as colors from 'vs/platform/theme/common/colorRegistry';
import * as themeColors from 'vs/workbench/common/theme';
import { Action, IAction } from 'vs/base/common/actions';
import { Registry } from 'vs/platform/registry/common/platform';
import { ActionBar } from 'vs/base/browser/ui/actionbar/actionbar';
Expand Down Expand Up @@ -259,26 +258,12 @@ export class DashboardWidgetWrapper extends AngularDisposable implements OnInit
const el = <HTMLElement>this._ref.nativeElement;
const headerEl: HTMLElement = this.header.nativeElement;
let borderColor = theme.getColor(DASHBOARD_BORDER);
let backgroundColor = theme.getColor(colors.editorBackground, true);
const foregroundColor = theme.getColor(themeColors.SIDE_BAR_FOREGROUND, true);
const border = theme.getColor(colors.contrastBorder, true);

if (this._config.background_color) {
backgroundColor = theme.getColor(this._config.background_color);
}

if (this._config.border === 'none') {
borderColor = undefined;
}

if (backgroundColor) {
el.style.backgroundColor = backgroundColor.toString();
}

if (foregroundColor) {
el.style.color = foregroundColor.toString();
}

let borderString = undefined;
if (border) {
borderString = border.toString();
Expand Down

0 comments on commit 41d62c0

Please sign in to comment.