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

Add option to color tab background #61

Merged
merged 2 commits into from
May 15, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,11 @@
"default": true,
"description": "color tab border if regex match found"
},
"colorTabs.tabBackground": {
"type": "boolean",
"default": true,
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Set default to false

"description": "color tab background if regex match found"
},
"colorTabs.titleBackground": {
"type": "boolean",
"default": false,
Expand Down
2 changes: 2 additions & 0 deletions src/changeColors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export default async (color?: string) => {
settings.get(COLOR_CUSTOMIZATIONS) || {};
const {
tabBorder,
tabBackground,
titleBackground,
activityBarBackground,
statusBarBackground,
Expand All @@ -36,6 +37,7 @@ export default async (color?: string) => {
const colorCustomization: ColorCustomization = {
...currentColorCustomization,
...(tabBorder ? { "tab.activeBorder": tabBarBorderColor } : {}),
...(tabBackground ? { "tab.activeBackground": tabBarBorderColor } : {}),
...(titleBackground
? { "titleBar.activeBackground": titleBarBackgroundColor }
: {}),
Expand Down
1 change: 1 addition & 0 deletions src/getSettings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export type ColorRegex = {
type AllSettings = {
config?: ColorRegex[];
tabBorder?: boolean;
tabBackground?: boolean;
ignoreCase?: boolean;
titleBackground?: boolean;
activityBarBackground?: boolean;
Expand Down