Skip to content

Commit

Permalink
Use tab.hoverBackground and tab.hoverBorder colors
Browse files Browse the repository at this point in the history
  • Loading branch information
msujew committed Apr 11, 2022
1 parent 235ec55 commit 45f7a3b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/core/src/browser/common-frontend-contribution.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1484,6 +1484,10 @@ export class CommonFrontendContribution implements FrontendApplicationContributi
},
{
id: 'tab.hoverBackground',
defaults: {
dark: 'tab.inactiveBackground',
light: 'tab.inactiveBackground'
},
description: 'Tab background color when hovering. Tabs are the containers for editors in the editor area. Multiple tabs can be opened in one editor group. There can be multiple editor groups.'
},
{
Expand Down
10 changes: 10 additions & 0 deletions packages/core/src/browser/style/tabs.css
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,16 @@
color: var(--theia-tab-inactiveForeground);
}

#theia-main-content-panel .p-TabBar .p-TabBar-tab:hover {
background: var(--theia-tab-hoverBackground);
box-shadow: 0 1px 0 var(--theia-tab-hoverBorder) inset;
}

#theia-main-content-panel .p-TabBar:not(.theia-tabBar-active) .p-TabBar-tab:hover {
background: var(--theia-tab-unfocusedHoverBackground);
box-shadow: 0 1px 0 var(--theia-tab-unfocusedHoverBorder) inset;
}

#theia-main-content-panel .p-TabBar .p-TabBar-tab.p-mod-current {
background: var(--theia-tab-activeBackground);
color: var(--theia-tab-activeForeground);
Expand Down

0 comments on commit 45f7a3b

Please sign in to comment.