提交 0b8d53fa 编写于 作者: S Sandeep Somavarapu

Fix #58667

上级 8d14d4be
......@@ -207,7 +207,7 @@ export class ActivitybarPart extends Part {
badgeBackground: theme.getColor(ACTIVITY_BAR_BADGE_BACKGROUND),
badgeForeground: theme.getColor(ACTIVITY_BAR_BADGE_FOREGROUND),
dragAndDropBackground: theme.getColor(ACTIVITY_BAR_DRAG_AND_DROP_BACKGROUND),
activeBorderBottomColor: null,
activeBackgroundColor: null, inactiveBackgroundColor: null, activeBorderBottomColor: null,
};
}
......
......@@ -113,6 +113,8 @@ export class ActivityAction extends Action {
}
export interface ICompositeBarColors {
activeBackgroundColor: Color;
inactiveBackgroundColor: Color;
activeBorderBottomColor: Color;
activeForegroundColor: Color;
inactiveForegroundColor: Color;
......@@ -158,7 +160,7 @@ export class ActivityActionItem extends BaseActionItem {
if (this.label) {
if (this.options.icon) {
const foreground = this._action.checked ? colors.activeForegroundColor : colors.inactiveForegroundColor;
const foreground = this._action.checked ? colors.activeBackgroundColor || colors.activeForegroundColor : colors.inactiveBackgroundColor || colors.inactiveForegroundColor;
this.label.style.backgroundColor = foreground ? foreground.toString() : null;
} else {
const foreground = this._action.checked ? colors.activeForegroundColor : colors.inactiveForegroundColor;
......
......@@ -95,6 +95,8 @@ export class PanelPart extends CompositePart<Panel> implements IPanelService {
compositeSize: 0,
overflowActionSize: 44,
colors: theme => ({
activeBackgroundColor: theme.getColor(PANEL_BACKGROUND), // Background color for overflow action
inactiveBackgroundColor: theme.getColor(PANEL_BACKGROUND), // Background color for overflow action
activeBorderBottomColor: theme.getColor(PANEL_ACTIVE_TITLE_BORDER),
activeForegroundColor: theme.getColor(PANEL_ACTIVE_TITLE_FOREGROUND),
inactiveForegroundColor: theme.getColor(PANEL_INACTIVE_TITLE_FOREGROUND),
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册