Do not use transparent window borders in unity decoration.Fixes #290

Previously, background color of left, right and bottom part of windows are set transparent.This was making titlebar appears 1px wider than the window itself.This fix only affects those apps which are patched by ubuntu to use traditional titlebar over headerbar.
pull/293/head
Khurshid Alam 2016-02-06 12:19:54 +05:30
parent 1b3e667636
commit 06197571ed
1 changed files with 5 additions and 3 deletions

View File

@ -28,7 +28,7 @@
border: 1px solid $wm_border_focused; border: 1px solid $wm_border_focused;
border-bottom: 0; border-bottom: 0;
border-radius: 2px 2px 0 0; border-radius: 2px 2px 0 0;
padding: 1px ($spacing * 2) 0; padding: 1px 8px 0 8px;
background-color: $titlebar_bg_color; background-color: $titlebar_bg_color;
color: mix($titlebar_fg_color, $titlebar_bg_color, .1); color: mix($titlebar_fg_color, $titlebar_bg_color, .1);
text-shadow: none; text-shadow: none;
@ -40,9 +40,11 @@
} }
&.left, &.right, &.bottom { &.left, &.right, &.bottom {
background-color: $wm_border_focused; background-color: $titlebar_bg_color;
&:backdrop { background-color: $wm_border_unfocused; } &:backdrop {
background-color: mix(shade($titlebar_bg_color, 0.7), $titlebar_fg_color, 0.21);
}
} }
} }