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

chore: add new colors to the color registry #9420

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
89 changes: 89 additions & 0 deletions packages/main/src/plugin/color-registry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,10 @@ export class ColorRegistry {
this.initStates();
this.initFiles();
this.initTerminal();
this.initProgressBar();
this.initBadge();
this.initProviders();
this.initService();
}

protected initDefaults(): void {
Expand Down Expand Up @@ -333,6 +337,11 @@ export class ColorRegistry {
light: colorPalette.purple[900],
});

this.registerColor('titlebar-hover-bg', {
dark: colorPalette.charcoal[300],
light: colorPalette.gray[300],
});

this.registerColor('titlebar-windows-hover-exit-bg', {
dark: '#c42b1c',
light: '#c42b1c',
Expand Down Expand Up @@ -929,6 +938,10 @@ export class ColorRegistry {
dark: colorPalette.purple[500],
light: colorPalette.purple[500],
});
this.registerColor(`${button}tertiary`, {
dark: colorPalette.purple[700],
light: colorPalette.purple[700],
});
this.registerColor(`${button}text`, {
dark: colorPalette.white,
light: colorPalette.white,
Expand Down Expand Up @@ -1428,4 +1441,80 @@ export class ColorRegistry {
light: colorPalette.white,
});
}

protected initProgressBar(): void {
const pb = 'progressBar-';
this.registerColor(`${pb}bg`, {
dark: colorPalette.gray[700],
light: colorPalette.gray[700],
});
this.registerColor(`${pb}in-progress-bg`, {
dark: colorPalette.purple[600],
light: colorPalette.purple[600],
});
this.registerColor(`${pb}text`, {
dark: colorPalette.purple[500],
light: colorPalette.purple[600],
});
}

protected initBadge(): void {
const badge = 'badge-';
this.registerColor(`${badge}builtin-extension-bg`, {
dark: colorPalette.sky[200],
light: colorPalette.sky[200],
});
this.registerColor(`${badge}builtin-extension-text`, {
dark: colorPalette.charcoal[800],
light: colorPalette.charcoal[800],
});
this.registerColor(`${badge}dd-extension-bg`, {
dark: colorPalette.sky[600],
light: colorPalette.sky[600],
});
this.registerColor(`${badge}dd-extension-text`, {
dark: colorPalette.white,
light: colorPalette.white,
});
}

protected initProviders(): void {
const provider = 'provider-';
this.registerColor(`${provider}podman`, {
dark: colorPalette.purple[600],
light: colorPalette.purple[600],
});
this.registerColor(`${provider}docker`, {
dark: colorPalette.sky[400],
light: colorPalette.sky[400],
});
this.registerColor(`${provider}kubernetes`, {
dark: colorPalette.sky[600],
light: colorPalette.sky[600],
});
this.registerColor(`${provider}unknown`, {
dark: colorPalette.gray[900],
light: colorPalette.gray[900],
});
}

protected initService(): void {
const service = 'service';
this.registerColor(`${service}ClusterIP`, {
dark: colorPalette.sky[500],
light: colorPalette.sky[500],
});
this.registerColor(`${service}LoadBalancer`, {
dark: colorPalette.purple[500],
light: colorPalette.purple[500],
});
this.registerColor(`${service}NodePort`, {
dark: colorPalette.fuschia[600],
light: colorPalette.fuschia[600],
});
this.registerColor(`${service}unknown`, {
dark: colorPalette.gray[600],
light: colorPalette.gray[600],
});
}
}