[gnome-shell-sass] workspace: Use invisible guide actor to center overlay title on border



commit 0329b9f7eef2acbb043a4c0eb940440eb97a464f
Author: Sebastian Keller <skeller gnome org>
Date:   Sun Jun 14 06:14:57 2020 +0200

    workspace: Use invisible guide actor to center overlay title on border
    
    Using CSS to center the title actor on the border is a bit ugly, because
    it requires the CSS to match the calculations used in chromeHeights().
    Also it is not possible to use CSS margins for cases where the position
    of the actor is determined at run time, such as for the close button.
    
    Instead use an invisible actor that spans between the horizontal and
    vertical center lines of the border as guide when aligning the title
    actor.
    
    https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1313

 widgets/_window-picker.scss | 1 -
 1 file changed, 1 deletion(-)
---
diff --git a/widgets/_window-picker.scss b/widgets/_window-picker.scss
index 2425e22..48d6f73 100644
--- a/widgets/_window-picker.scss
+++ b/widgets/_window-picker.scss
@@ -35,7 +35,6 @@ $window_clone_border_size: 6px;
 
 // Window titles
 .window-caption {
-  margin-top: $window_clone_border_size / 2;
   color: $osd_fg_color;
   background-color: $osd_bg_color;
   border:1px solid $osd_outer_borders_color;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]