[gnome-shell/wip/sass: 46/50] theme: tiled window previews



commit b8950f7284e4a6ce72714411f6ddb230a1d9c6ec
Author: Jakub Steiner <jimmac gmail com>
Date:   Tue Jan 13 13:53:43 2015 +0100

    theme: tiled window previews

 data/theme/_common.scss          |   22 +++++++++++++++++++++-
 data/theme/_gnome-shell-old.scss |   22 ----------------------
 data/theme/gnome-shell.css       |   33 ++++++++++++++-------------------
 3 files changed, 35 insertions(+), 42 deletions(-)
---
diff --git a/data/theme/_common.scss b/data/theme/_common.scss
index 172b8d7..dbb7a99 100644
--- a/data/theme/_common.scss
+++ b/data/theme/_common.scss
@@ -4,6 +4,8 @@
 $cakeisalie: "This stylesheet is generated, DO NOT EDIT";
 /* #{$cakeisalie} */
 
+$panel-corner-radius: 6px;
+
 /* Copyright 2009, Red Hat, Inc.
  *
  * Portions adapted from Mx's data/style/default.css
@@ -343,6 +345,24 @@ StScrollBar {
   padding: 12px;
 }
 
+/* Tiled window previews */
+.tile-preview {
+  background-color: transparentize($selected_bg_color,0.5);
+  border: 1px solid $selected_bg_color;
+}
+
+  .tile-preview-left.on-primary {
+    border-radius: $panel-corner-radius $panel-corner-radius 0 0 0;
+  }
+
+  .tile-preview-right.on-primary {
+    border-radius: 0 $panel-corner-radius 0 0;
+  }
+
+  .tile-preview-left.tile-preview-right.on-primary {
+    border-radius: $panel-corner-radius $panel-corner-radius 0 0;
+  }
+
 /* TOP BAR */
 
 #panel {
@@ -361,7 +381,7 @@ StScrollBar {
   }
   
   .panel-corner {
-    -panel-corner-radius: 6px;
+    -panel-corner-radius: $panel-corner-radius;
     -panel-corner-background-color: black;
     -panel-corner-border-width: 2px;
     -panel-corner-border-color: transparent; 
diff --git a/data/theme/_gnome-shell-old.scss b/data/theme/_gnome-shell-old.scss
index 164584a..0fb18cb 100644
--- a/data/theme/_gnome-shell-old.scss
+++ b/data/theme/_gnome-shell-old.scss
@@ -22,28 +22,6 @@
 
 
 
-/* Tile previews */
-.tile-preview {
-    background-color: rgba(74, 144, 217, 0.35);
-    border: 1px solid #4a90d9; /* Adwaita selected bg color */
-}
-
-.tile-preview-left.on-primary {
-    /* keep in sync with -panel-corner-radius */
-    border-radius: 6px 0 0 0;
-}
-
-.tile-preview-right.on-primary {
-    /* keep in sync with -panel-corner-radius */
-    border-radius: 0 6px 0 0;
-}
-
-.tile-preview-left.tile-preview-right.on-primary {
-    /* keep in sync with -panel-corner-radius */
-    border-radius: 6px 6px 0 0;
-}
-
-/* Modal Dialogs */
 
 
 /* End Session Dialog */
diff --git a/data/theme/gnome-shell.css b/data/theme/gnome-shell.css
index 920885b..9cf4cc9 100644
--- a/data/theme/gnome-shell.css
+++ b/data/theme/gnome-shell.css
@@ -16,25 +16,6 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
  */
-/* Tile previews */
-.tile-preview {
-  background-color: rgba(74, 144, 217, 0.35);
-  border: 1px solid #4a90d9;
-  /* Adwaita selected bg color */ }
-
-.tile-preview-left.on-primary {
-  /* keep in sync with -panel-corner-radius */
-  border-radius: 6px 0 0 0; }
-
-.tile-preview-right.on-primary {
-  /* keep in sync with -panel-corner-radius */
-  border-radius: 0 6px 0 0; }
-
-.tile-preview-left.tile-preview-right.on-primary {
-  /* keep in sync with -panel-corner-radius */
-  border-radius: 6px 6px 0 0; }
-
-/* Modal Dialogs */
 /* End Session Dialog */
 .end-session-dialog {
   spacing: 42px; }
@@ -942,6 +923,20 @@ StScrollBar {
   border-radius: 12px;
   padding: 12px; }
 
+/* Tiled window previews */
+.tile-preview {
+  background-color: rgba(33, 93, 156, 0.5);
+  border: 1px solid #215d9c; }
+
+.tile-preview-left.on-primary {
+  border-radius: 6px 6px 0 0 0; }
+
+.tile-preview-right.on-primary {
+  border-radius: 0 6px 0 0; }
+
+.tile-preview-left.tile-preview-right.on-primary {
+  border-radius: 6px 6px 0 0; }
+
 /* TOP BAR */
 #panel {
   background-color: black;


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