Skip to content

Commit

Permalink
Fix dashboard color theme overrides
Browse files Browse the repository at this point in the history
  • Loading branch information
cheenamalhotra committed Jun 29, 2023
1 parent 4869eba commit 3bbbf51
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 3bbbf51

Please sign in to comment.