ea445a
From c68fd3c94c6debdbf11020940c5a6aaee8bc230d Mon Sep 17 00:00:00 2001
ea445a
From: Feichtmeier <frederik.feichtmeier@gmail.com>
ea445a
Date: Fri, 15 Mar 2019 14:41:55 +0100
ea445a
Subject: [PATCH] theme: Update window preview style
ea445a
ea445a
 - simplify the close button to use blue, lighter blue and darker blue
ea445a
   solid disks for normal, hover and active states
ea445a
ea445a
 - use a milky, transparent white border for the hover effect of the border
ea445a
ea445a
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/461
ea445a
---
ea445a
 data/theme/gnome-shell-sass/_common.scss | 29 ++++++++++++------------
ea445a
 1 file changed, 14 insertions(+), 15 deletions(-)
ea445a
ea445a
diff --git a/data/theme/gnome-shell-sass/_common.scss b/data/theme/gnome-shell-sass/_common.scss
ea445a
index 9e0751c8c..8bf368f6e 100644
ea445a
--- a/data/theme/gnome-shell-sass/_common.scss
ea445a
+++ b/data/theme/gnome-shell-sass/_common.scss
ea445a
@@ -1164,25 +1164,23 @@ StScrollBar {
ea445a
 //close buttons
ea445a
 
ea445a
 .window-close {
ea445a
-  background-color: white;
ea445a
+  background-color: $selected_bg_color;
ea445a
+  color: white;
ea445a
   border-radius: 24px;
ea445a
-  border: 4px solid $selected_bg_color;
ea445a
-  box-shadow: inset 0 -4px 0 0 transparentize($selected_bg_color, 0.5);
ea445a
-  color: $selected_bg_color;
ea445a
+  border: 2px solid $selected_bg_color;
ea445a
   height: 24px;
ea445a
   width: 24px;
ea445a
-  -shell-close-overlap: 14px;
ea445a
+  -shell-close-overlap: 11px;
ea445a
+  box-shadow: -1px 1px 5px 0px transparentize(black, 0.5);
ea445a
 
ea445a
   &:hover {
ea445a
-    background-color: $selected_bg_color;
ea445a
-    border-color: white;
ea445a
-    color: white;
ea445a
+    background-color: lighten($selected_bg_color, 5%);
ea445a
+    border-color: lighten($selected_bg_color, 5%);
ea445a
   }
ea445a
 
ea445a
   &:active {
ea445a
-    background-color: mix(white, $selected_bg_color, 75%);
ea445a
-    border-color: $selected_bg_color;
ea445a
-    color: $selected_bg_color;
ea445a
+    background-color: darken($selected_bg_color, 5%);
ea445a
+    border-color: darken($selected_bg_color, 5%);
ea445a
   }
ea445a
 }
ea445a
 
ea445a
@@ -1247,13 +1245,14 @@ StScrollBar {
ea445a
   }
ea445a
 
ea445a
   .window-clone-border {
ea445a
-    border: 4px solid $selected_bg_color;
ea445a
-    border-radius: 4px;
ea445a
+    $_bg: transparentize(white, 0.65);
ea445a
+    border: 5px solid $_bg;
ea445a
+    border-radius: 6px;
ea445a
     // For window decorations with round corners we can't match
ea445a
     // the exact shape when the window is scaled. So apply a shadow
ea445a
     // to fix that case
ea445a
-    box-shadow: inset 0px 0px 0px 1px $selected_bg_color;
ea445a
-  }
ea445a
+    box-shadow: inset 0 0 0 1px $_bg;
ea445a
+}
ea445a
   .window-caption {
ea445a
     spacing: 25px;
ea445a
     color: $selected_fg_color;
ea445a
-- 
ea445a
2.31.1
ea445a