[gnome-themes-standard] sidebar work - killed the bloody paned separator - reworked sidebar borders logic



commit 879f0c844a6ba6a2a66f47e82e7091f9c0111c64
Author: Lapo Calamandrei <calamandrei gmail com>
Date:   Fri Jun 6 19:07:07 2014 +0200

    sidebar work
      - killed the bloody paned separator
      - reworked sidebar borders logic

 themes/Adwaita/gtk-3.0/_common.scss           |   17 ++++++++++++++++-
 themes/Adwaita/gtk-3.0/gtk-contained-dark.css |   13 ++++++++++++-
 themes/Adwaita/gtk-3.0/gtk-contained.css      |   13 ++++++++++++-
 3 files changed, 40 insertions(+), 3 deletions(-)
---
diff --git a/themes/Adwaita/gtk-3.0/_common.scss b/themes/Adwaita/gtk-3.0/_common.scss
index 1f8b21e..6301208 100644
--- a/themes/Adwaita/gtk-3.0/_common.scss
+++ b/themes/Adwaita/gtk-3.0/_common.scss
@@ -3,7 +3,7 @@
   padding: 0;
   -GtkToolButton-icon-spacing: 4;
   -GtkTextView-error-underline-color: $error_color;
-  -GtkPaned-handle-size: 5;
+  -GtkPaned-handle-size: 0;
 
   -GtkCheckButton-indicator-size: 16;
   -GtkCheckMenuItem-indicator-size: 12;
@@ -1354,6 +1354,7 @@ GtkCalendar {
 
 .sidebar,
 .sidebar .view {
+  border-style: solid solid solid none;
   $_sidebar_bg: lighten($bg_color,5%);
   background-color: $_sidebar_bg;
   .scrollbar {
@@ -1371,6 +1372,20 @@ GtkCalendar {
   &:selected {
     background-color: $selected_bg_color;
   }
+  &:backdrop {
+    border-color: $backdrop_borders_color;
+  }
+  // FIXME: we need a proper border removal logic...
+  &:dir(rtl) {
+    border-style: solid none solid solid;
+  }
+}
+
+GtkPaned {
+  // This is actually the invisible area of the paned separator, not a margin...
+  // Yeah it's not right... Aaaaaanyway
+  margin: 5px;
+  border: 0;
 }
 
 /**************
diff --git a/themes/Adwaita/gtk-3.0/gtk-contained-dark.css b/themes/Adwaita/gtk-3.0/gtk-contained-dark.css
index 4e0ea92..2d56d31 100644
--- a/themes/Adwaita/gtk-3.0/gtk-contained-dark.css
+++ b/themes/Adwaita/gtk-3.0/gtk-contained-dark.css
@@ -3,7 +3,7 @@
   padding: 0;
   -GtkToolButton-icon-spacing: 4;
   -GtkTextView-error-underline-color: #cc0000;
-  -GtkPaned-handle-size: 5;
+  -GtkPaned-handle-size: 0;
   -GtkCheckButton-indicator-size: 16;
   -GtkCheckMenuItem-indicator-size: 12;
   -GtkScrolledWindow-scrollbar-spacing: 0;
@@ -1528,6 +1528,7 @@ GtkCalendar {
  ***********/
 .sidebar,
 .sidebar .view {
+  border-style: solid solid solid none;
   background-color: #454c4c; }
   .sidebar .scrollbar.trough,
   .sidebar .view .scrollbar.trough {
@@ -1544,6 +1545,16 @@ GtkCalendar {
   .sidebar:selected,
   .sidebar .view:selected {
     background-color: #215d9c; }
+  .sidebar:backdrop,
+  .sidebar .view:backdrop {
+    border-color: #1c1f1f; }
+  .sidebar:dir(rtl),
+  .sidebar .view:dir(rtl) {
+    border-style: solid none solid solid; }
+
+GtkPaned {
+  margin: 5px;
+  border: 0; }
 
 /**************
  * GtkInfoBar *
diff --git a/themes/Adwaita/gtk-3.0/gtk-contained.css b/themes/Adwaita/gtk-3.0/gtk-contained.css
index dca1288..5a5ca43 100644
--- a/themes/Adwaita/gtk-3.0/gtk-contained.css
+++ b/themes/Adwaita/gtk-3.0/gtk-contained.css
@@ -3,7 +3,7 @@
   padding: 0;
   -GtkToolButton-icon-spacing: 4;
   -GtkTextView-error-underline-color: #cc0000;
-  -GtkPaned-handle-size: 5;
+  -GtkPaned-handle-size: 0;
   -GtkCheckButton-indicator-size: 16;
   -GtkCheckMenuItem-indicator-size: 12;
   -GtkScrolledWindow-scrollbar-spacing: 0;
@@ -1528,6 +1528,7 @@ GtkCalendar {
  ***********/
 .sidebar,
 .sidebar .view {
+  border-style: solid solid solid none;
   background-color: #fafafa; }
   .sidebar .scrollbar.trough,
   .sidebar .view .scrollbar.trough {
@@ -1544,6 +1545,16 @@ GtkCalendar {
   .sidebar:selected,
   .sidebar .view:selected {
     background-color: #4a90d9; }
+  .sidebar:backdrop,
+  .sidebar .view:backdrop {
+    border-color: #a1a1a1; }
+  .sidebar:dir(rtl),
+  .sidebar .view:dir(rtl) {
+    border-style: solid none solid solid; }
+
+GtkPaned {
+  margin: 5px;
+  border: 0; }
 
 /**************
  * GtkInfoBar *


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