From 06197571ed128220bfe33f50c4ebfd6e02b0a532 Mon Sep 17 00:00:00 2001 From: Khurshid Alam Date: Sat, 6 Feb 2016 12:19:54 +0530 Subject: [PATCH] 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. --- gtk-3.0/scss/apps/_unity.scss | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/gtk-3.0/scss/apps/_unity.scss b/gtk-3.0/scss/apps/_unity.scss index e463223..0113e45 100644 --- a/gtk-3.0/scss/apps/_unity.scss +++ b/gtk-3.0/scss/apps/_unity.scss @@ -28,7 +28,7 @@ border: 1px solid $wm_border_focused; border-bottom: 0; border-radius: 2px 2px 0 0; - padding: 1px ($spacing * 2) 0; + padding: 1px 8px 0 8px; background-color: $titlebar_bg_color; color: mix($titlebar_fg_color, $titlebar_bg_color, .1); text-shadow: none; @@ -40,9 +40,11 @@ } &.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); + } } }