Skip to content

Commit

Permalink
Fix transparent preview widget background
Browse files Browse the repository at this point in the history
Fixes eclipse-theia#6194

- fixes an issue where widgets present in the main area had transparent
backgrounds which interfered with custom branding.
- adjusts the styling of the dockpanel to be more consistent with VSCode

Signed-off-by: Vincent Fugnitto <vincent.fugnitto@ericsson.com>
  • Loading branch information
vince-fugnitto authored and akosyakov committed Feb 24, 2020
1 parent 82b4a00 commit f54ff8b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/core/src/browser/style/dockpanel.css
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@
border-left: var(--theia-border-width) solid var(--theia-border-color1);
}

.p-DockPanel-handle[data-orientation='horizontal']:after {
background-color: var(--theia-layout-color0);
border-left: var(--theia-border-width) solid var(--theia-border-color1);
}

.p-DockPanel-overlay {
background: rgba(33, 150, 243, 0.1);
border: var(--theia-border-width) dashed var(--theia-brand-color1);
Expand Down
4 changes: 4 additions & 0 deletions packages/core/src/browser/style/tabs.css
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@
| Tabs in the center area (main and bottom)
|----------------------------------------------------------------------------*/

#theia-main-content-panel .p-Widget.p-DockPanel-widget {
background-color: var(--theia-layout-color0);
}

/* This is a current tab of a tab bar: each tab bar has 1. */
.p-TabBar .p-TabBar-tab.p-mod-current {
min-height: calc(var(--theia-private-horizontal-tab-height) + var(--theia-border-width));
Expand Down

0 comments on commit f54ff8b

Please sign in to comment.