Skip to content

Commit

Permalink
[Styling] various style changes
Browse files Browse the repository at this point in the history
- bigger tab bars and menu
- use different background colors instead of borders

Signed-off-by: Sven Efftinge <sven.efftinge@typefox.io>
  • Loading branch information
svenefftinge committed Mar 22, 2019
1 parent 8c9ecd8 commit dd65f1f
Show file tree
Hide file tree
Showing 9 changed files with 38 additions and 36 deletions.
1 change: 0 additions & 1 deletion packages/core/src/browser/style/dockpanel.css
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
}

.p-DockPanel-widget {
background: var(--theia-layout-color0);
min-width: 100px;
min-height: 100px;
}
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/browser/style/menus.css
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@


:root {
--theia-private-menubar-height: 28px;
--theia-private-menubar-height: 35px;
--theia-private-menu-item-height: 24px;
}

Expand Down
19 changes: 4 additions & 15 deletions packages/core/src/browser/style/sidepanel.css
Original file line number Diff line number Diff line change
Expand Up @@ -139,12 +139,8 @@
max-width: var(--theia-private-sidebar-tab-width);
}

#theia-left-side-panel {
border-right: var(--theia-panel-border-width) solid var(--theia-border-color1);
}

#theia-right-side-panel {
border-left: var(--theia-panel-border-width) solid var(--theia-border-color1);
.theia-side-panel {
background-color: var(--theia-layout-color1);
}


Expand Down Expand Up @@ -210,18 +206,11 @@
|----------------------------------------------------------------------------*/

.theia-sidepanel-toolbar {
min-height: 30px;
min-height: calc(var(--theia-private-horizontal-tab-height) + var(--theia-border-width) + var(--theia-private-horizontal-tab-scrollbar-rail-height) / 2);
display: flex;
padding-left: 5px;
align-items: center;
}

.theia-sidepanel-toolbar.theia-left-side-panel {
border-right: var(--theia-panel-border-width) solid var(--theia-border-color1);
}

.theia-sidepanel-toolbar.theia-right-side-panel {
border-left: var(--theia-panel-border-width) solid var(--theia-border-color1);
background-color: var(--theia-layout-color1);
}

.theia-sidepanel-toolbar .theia-sidepanel-title {
Expand Down
18 changes: 13 additions & 5 deletions packages/core/src/browser/style/tabs.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

:root {
/* These need to be root because tabs get attached to the body during dragging. */
--theia-private-horizontal-tab-height: 22px;
--theia-private-horizontal-tab-height: 30.5px;
--theia-private-horizontal-tab-active-top-border: 2px;
--theia-private-horizontal-tab-scrollbar-rail-height: 7px;
--theia-private-horizontal-tab-scrollbar-height: 5px;
Expand All @@ -18,6 +18,7 @@
color: var(--theia-ui-font-color1);
background: var(--theia-layout-color1);
font-size: var(--theia-ui-font-size1);
cursor: pointer;
}

.p-TabBar[data-orientation='horizontal'] {
Expand All @@ -38,7 +39,8 @@
min-width: 35px;
line-height: var(--theia-private-horizontal-tab-height);
padding: 0px 8px;
background: var(--theia-layout-color3);
background: var(--theia-layout-color2);
align-items: flex-end;
}

.p-TabBar[data-orientation='horizontal'] .p-TabBar-tab:last-child {
Expand Down Expand Up @@ -109,13 +111,18 @@
mask-position: 4px 0;
}

.p-TabBar .file-icon.p-TabBar-tabIcon,
.p-TabBar .fa.p-TabBar-tabIcon {
.p-TabBar.theia-app-centers .file-icon.p-TabBar-tabIcon{
background: none;
margin-bottom: 16px;
}

.p-TabBar.theia-app-centers .fa.p-TabBar-tabIcon {
background: none;
margin-bottom: 6px;
margin-right: 2px;
}

.p-TabBar.theia-app-centers .p-TabBar-tab.p-mod-closable > .p-TabBar-tabCloseIcon {
padding-top: 6px;
padding-left: 10px;
height: 16px;
width: 16px;
Expand All @@ -132,6 +139,7 @@
.p-TabBar.theia-app-centers .p-TabBar-tab.p-mod-closable:hover > .p-TabBar-tabCloseIcon,
.p-TabBar.theia-app-centers .p-TabBar-tab.p-mod-current > .p-TabBar-tabCloseIcon {
background-image: var(--theia-icon-close);
margin-bottom: 8px;
}

.p-TabBar.theia-app-centers .p-TabBar-tab.p-mod-closable.theia-mod-dirty > .p-TabBar-tabCloseIcon {
Expand Down
6 changes: 3 additions & 3 deletions packages/core/src/browser/style/tree.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
.theia-Tree {
overflow: hidden;
color: var(--theia-ui-font-color1);
background: var(--theia-layout-color0);
font-size: var(--theia-ui-font-size1);
max-height: calc(100% - var(--theia-border-width));
position: relative;
Expand All @@ -35,7 +34,7 @@
}

.theia-TreeNode {
line-height: var(--theia-private-horizontal-tab-height);
line-height: 22px;
display: flex;
}

Expand Down Expand Up @@ -70,7 +69,8 @@
.theia-ExpansionToggle:not(.theia-mod-collapsed)::before {
font-family: FontAwesome;
font-size: calc(var(--theia-content-font-size) * 0.8);
content: "\f0d7";
content: "\f0da";
transform: rotate(45deg);
}

.theia-Tree:focus .theia-TreeNode.theia-mod-selected,
Expand Down
8 changes: 4 additions & 4 deletions packages/core/src/browser/style/variables-bright.useable.css
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,9 @@ is not optimized for dense, information rich UIs.
------------------------------------ */

--theia-layout-color0: #ffffff;
--theia-layout-color1: var(--md-grey-100);
--theia-layout-color2: var(--md-grey-200);
--theia-layout-color3: var(--md-grey-300);
--theia-layout-color1: #f3f3f3;
--theia-layout-color2: #ececec;
--theia-layout-color3: #dcdcdc;
--theia-layout-color4: var(--md-grey-400);

/* Brand colors */
Expand Down Expand Up @@ -197,7 +197,7 @@ is not optimized for dense, information rich UIs.
--theia-scrollbar-active-rail-color: transparent;

/* Menu */
--theia-menu-color0: var(--theia-layout-color2);
--theia-menu-color0: var(--theia-layout-color3);
--theia-menu-color1: var(--theia-layout-color0);
--theia-menu-color2: var(--theia-layout-color3);

Expand Down
12 changes: 6 additions & 6 deletions packages/core/src/browser/style/variables-dark.useable.css
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,11 @@ is not optimized for dense, information rich UIs.
/* Main layout colors (dark to bright)
------------------------------------ */

--theia-layout-color0: #1e1e1e;
--theia-layout-color1: #262626;
--theia-layout-color2: #2e2e2e;
--theia-layout-color3: #303030;
--theia-layout-color4: #333333;
--theia-layout-color0: #1d1d1d;
--theia-layout-color1: #252526;
--theia-layout-color2: #333333;
--theia-layout-color3: #37373d;
--theia-layout-color4: #383838;

/* Brand colors */

Expand Down Expand Up @@ -197,7 +197,7 @@ is not optimized for dense, information rich UIs.
--theia-scrollbar-active-rail-color: transparent;

/* Menu */
--theia-menu-color0: var(--theia-layout-color2);
--theia-menu-color0: var(--theia-layout-color4);
--theia-menu-color1: var(--theia-layout-color4);
--theia-menu-color2: var(--theia-layout-color1);

Expand Down
1 change: 0 additions & 1 deletion packages/git/src/browser/style/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
color: var(--theia-ui-font-color1);
padding: 5px;
box-sizing: border-box;
background: var(--theia-layout-color0);
}

.theia-side-panel .theia-git {
Expand Down
7 changes: 7 additions & 0 deletions packages/navigator/src/browser/style/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,10 @@
-webkit-mask: url('files.svg');
mask: url('files.svg');
}

.theia-FileTree > div > div > div > div:first-child {
background-color: var(--theia-layout-color4);
text-transform: uppercase;
font-size: 80%;
font-weight: 500;
}

0 comments on commit dd65f1f

Please sign in to comment.