[gnome-themes-standard] Header bar separator for dark theme



commit c262aebe23f8bebdea98db898d17df58d448dd3a
Author: Nikita Churaev <lamefun x0r gmail com>
Date:   Wed Feb 5 23:06:22 2014 +0400

    Header bar separator for dark theme
    
    https://bugzilla.gnome.org/show_bug.cgi?id=723707

 themes/Adwaita/gtk-3.0/assets.svg                  |   50 ++++++++++++++++++--
 themes/Adwaita/gtk-3.0/assets.txt                  |    1 +
 .../gtk-3.0/assets/header-separator-dark.png       |  Bin 0 -> 192 bytes
 .../gtk-3.0/assets/header-separator-dark 2 png     |  Bin 0 -> 203 bytes
 themes/Adwaita/gtk-3.0/gtk-widgets-assets-dark.css |   14 ++++++
 themes/Adwaita/gtk-3.0/gtk.gresource.xml           |    2 +
 6 files changed, 63 insertions(+), 4 deletions(-)
---
diff --git a/themes/Adwaita/gtk-3.0/assets.svg b/themes/Adwaita/gtk-3.0/assets.svg
index 9a192af..4ef81fd 100644
--- a/themes/Adwaita/gtk-3.0/assets.svg
+++ b/themes/Adwaita/gtk-3.0/assets.svg
@@ -5379,6 +5379,28 @@
        id="linearGradient9026"
        xlink:href="#linearGradient8995-1"
        inkscape:collect="always" />
+    <linearGradient
+       inkscape:collect="always"
+       xlink:href="#linearGradient8983-8"
+       id="linearGradient9182"
+       gradientUnits="userSpaceOnUse"
+       gradientTransform="matrix(1,0,0,1.25,0,-10.590546)"
+       spreadMethod="reflect"
+       x1="15"
+       y1="12.362183"
+       x2="15"
+       y2="2.3621826" />
+    <linearGradient
+       inkscape:collect="always"
+       xlink:href="#linearGradient8995-1"
+       id="linearGradient9184"
+       gradientUnits="userSpaceOnUse"
+       gradientTransform="matrix(1,0,0,1.25,1,-10.590546)"
+       spreadMethod="reflect"
+       x1="15"
+       y1="12.362183"
+       x2="15"
+       y2="2.3621826" />
   </defs>
   <sodipodi:namedview
      id="base"
@@ -5388,10 +5410,10 @@
      inkscape:pageopacity="0.0"
      inkscape:pageshadow="2"
      inkscape:zoom="1"
-     inkscape:cx="21.139092"
-     inkscape:cy="1037.8293"
+     inkscape:cx="-9.7756922"
+     inkscape:cy="857.76442"
      inkscape:document-units="px"
-     inkscape:current-layer="header-separator"
+     inkscape:current-layer="header-separator-dark"
      showgrid="false"
      showborder="false"
      inkscape:window-width="1920"
@@ -10985,7 +11007,7 @@
     <g
        style="display:inline"
        id="header-separator"
-       transform="translate(2,10)"
+       transform="translate(-7,40)"
        inkscape:label="#g9001">
       <rect
          y="-7.6378174"
@@ -11002,6 +11024,26 @@
          x="16"
          y="-7.6378174" />
     </g>
+    <g
+       inkscape:label="#g9001"
+       transform="translate(-7,180)"
+       id="header-separator-dark"
+       style="display:inline">
+      <rect
+         style="opacity:0.3;fill:url(#linearGradient9182);fill-opacity:1;stroke:none"
+         id="rect9178"
+         width="1"
+         height="25"
+         x="15"
+         y="-7.6378174" />
+      <rect
+         y="-7.6378174"
+         x="16"
+         height="25"
+         width="1"
+         id="rect9180"
+         style="fill:url(#linearGradient9184);fill-opacity:1;stroke:none;opacity:0.1" />
+    </g>
   </g>
   <g
      inkscape:groupmode="layer"
diff --git a/themes/Adwaita/gtk-3.0/assets.txt b/themes/Adwaita/gtk-3.0/assets.txt
index 03ab635..ca6739a 100644
--- a/themes/Adwaita/gtk-3.0/assets.txt
+++ b/themes/Adwaita/gtk-3.0/assets.txt
@@ -152,4 +152,5 @@ scale-slider-left-insensitive-dark
 scale-slider-left-backdrop-dark
 scale-slider-left-backdrop-insensitive-dark
 header-separator
+header-separator-dark
 
diff --git a/themes/Adwaita/gtk-3.0/assets/header-separator-dark.png 
b/themes/Adwaita/gtk-3.0/assets/header-separator-dark.png
new file mode 100644
index 0000000..dadf294
Binary files /dev/null and b/themes/Adwaita/gtk-3.0/assets/header-separator-dark.png differ
diff --git a/themes/Adwaita/gtk-3.0/assets/header-separator-dark 2 png 
b/themes/Adwaita/gtk-3.0/assets/header-separator-dark 2 png
new file mode 100644
index 0000000..81cfb9d
Binary files /dev/null and b/themes/Adwaita/gtk-3.0/assets/header-separator-dark 2 png differ
diff --git a/themes/Adwaita/gtk-3.0/gtk-widgets-assets-dark.css 
b/themes/Adwaita/gtk-3.0/gtk-widgets-assets-dark.css
index f478e52..27c0a6c 100644
--- a/themes/Adwaita/gtk-3.0/gtk-widgets-assets-dark.css
+++ b/themes/Adwaita/gtk-3.0/gtk-widgets-assets-dark.css
@@ -29,6 +29,20 @@
 }
 
 /*************************
+ * Header bar separator  *
+ *************************/
+
+.header-bar > GtkBox > .separator.vertical {
+    -GtkWidget-wide-separators: 1;
+    -GtkWidget-separator-width: 2px;
+    background: transparent;
+    border-width: 0 1px 0 1px;
+    border-style: solid;
+    border-color: transparent;
+    border-image: -gtk-scaled(url("assets/header-separator-dark.png"),url("assets/header-separator-dark 2 
png")) 0 1 0 1 / 0 1px 0 1px stretch;
+}
+
+/*************************
  * Check and Radio items *
  *************************/
 
diff --git a/themes/Adwaita/gtk-3.0/gtk.gresource.xml b/themes/Adwaita/gtk-3.0/gtk.gresource.xml
index 2b3ecc9..c9a6736 100644
--- a/themes/Adwaita/gtk-3.0/gtk.gresource.xml
+++ b/themes/Adwaita/gtk-3.0/gtk.gresource.xml
@@ -284,6 +284,8 @@
     <file preprocess="to-pixdata">assets/thumbnail-frame.png</file>
     <file preprocess="to-pixdata">assets/header-separator.png</file>
     <file preprocess="to-pixdata">assets/header-separator 2 png</file>
+    <file preprocess="to-pixdata">assets/header-separator-dark.png</file>
+    <file preprocess="to-pixdata">assets/header-separator-dark 2 png</file>
     <file preprocess="to-pixdata">borders/button-border.png</file>
     <file preprocess="to-pixdata">borders/button-border 2 png</file>
     <file preprocess="to-pixdata">borders/button-border-dark.png</file>


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