[libadwaita/wip/jimmac/devel-striping-icontheme: 68/68] headerbar: devel stripy watermark




commit 46ec60d70620bb67f3bdeba4382c39eec4a14f52
Author: Jakub Steiner <jimmac gmail com>
Date:   Thu Jul 29 22:56:48 2021 +0200

    headerbar: devel stripy watermark
    
    - use a recolorable stripes that fade out to work on flat windows
    
    Fixes https://gitlab.gnome.org/GNOME/libadwaita/-/issues/232

 src/adwaita.gresources.xml                    |  1 +
 src/icons/scalable/actions/devel-symbolic.svg | 49 +++++++++++++++++++++++++++
 src/stylesheet/widgets/_header-bar.scss       |  3 +-
 3 files changed, 52 insertions(+), 1 deletion(-)
---
diff --git a/src/adwaita.gresources.xml b/src/adwaita.gresources.xml
index 69f5f483..011f17d1 100644
--- a/src/adwaita.gresources.xml
+++ b/src/adwaita.gresources.xml
@@ -3,6 +3,7 @@
   <gresource prefix="/org/gnome/Adwaita">
     <file>glsl/fade.glsl</file>
     <file>glsl/mask.glsl</file>
+    <file preprocess="xml-stripblanks">icons/scalable/actions/devel-symbolic.svg</file>
     <file preprocess="xml-stripblanks">icons/scalable/actions/adw-expander-arrow-symbolic.svg</file>
     <file preprocess="xml-stripblanks">icons/scalable/status/avatar-default-symbolic.svg</file>
     <file preprocess="xml-stripblanks">icons/scalable/status/adw-tab-icon-missing-symbolic.svg</file>
diff --git a/src/icons/scalable/actions/devel-symbolic.svg b/src/icons/scalable/actions/devel-symbolic.svg
new file mode 100644
index 00000000..98d9135f
--- /dev/null
+++ b/src/icons/scalable/actions/devel-symbolic.svg
@@ -0,0 +1,49 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<svg
+   viewBox="0 0 16 16"
+   version="1.1"
+   id="svg8"
+   sodipodi:docname="devel-symbolic.svg"
+   inkscape:version="1.1 (c68e22c387, 2021-05-23)"
+   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape";
+   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd";
+   xmlns:xlink="http://www.w3.org/1999/xlink";
+   xmlns="http://www.w3.org/2000/svg";
+   xmlns:svg="http://www.w3.org/2000/svg";>
+  <defs
+     id="defs12" />
+  <sodipodi:namedview
+     id="namedview10"
+     pagecolor="#505050"
+     bordercolor="#ffffff"
+     borderopacity="1"
+     inkscape:pageshadow="0"
+     inkscape:pageopacity="0"
+     inkscape:pagecheckerboard="1"
+     showgrid="false"
+     inkscape:current-layer="svg8" />
+  <g
+     id="a"
+     style="fill:#000000;fill-opacity:0.10215242">
+    <path
+       style="fill:#000000;stroke-width:3;stroke-linecap:round;stop-color:#000000;fill-opacity:0.10215242"
+       d="M 0,0 H 4 V 16 L 3.937,-27.75 3.876,16 3.812,-27.75 3.75,16 3.687,-27.75 3.626,16 3.562,-27.75 
3.5,16 3.437,-27.75 3.376,16 3.312,-27.75 3.25,16 3.187,-27.75 3.126,16 3.062,-27.75 3,16 2.937,-27.75 
2.876,16 2.812,-27.75 2.75,16 2.687,-27.75 2.626,16 2.562,-27.75 2.5,16 2.437,-27.75 2.376,16 2.312,-27.75 
2.25,16 2.187,-27.75 2.126,16 2.062,-27.75 2,16 1.937,-27.75 1.875,16 1.812,-27.75 1.75,16 1.687,-27.75 
1.625,16 1.562,-27.75 1.5,16 1.437,-27.75 1.375,16 1.312,-27.75 1.25,16 1.187,-27.75 1.125,16 1.062,-27.75 
1,16 0.937,-27.75 0.875,16 0.812,-27.75 0.75,16 0.687,-27.75 0.625,16 0.562,-27.75 0.5,16 0.437,-27.75 
0.376,16 0.312,-27.75 0.25,16 0.187,-27.75 0.126,16 0.062,-27.75 0,16 Z m 8,0 h 4 V 16 L 11.937,-27.75 
11.876,16 11.812,-27.75 11.75,16 11.687,-27.75 11.626,16 11.562,-27.75 11.5,16 11.437,-27.75 11.376,16 
11.312,-27.75 11.25,16 11.187,-27.75 11.126,16 11.062,-27.75 11,16 10.937,-27.75 10.876,16 10.812,-27.75 
10.75,16 10.687,-27.75 10.626,16 10.562,-27.75 10.5,16 10
 .437,-27.75 10.376,16 10.312,-27.75 10.25,16 10.187,-27.75 10.126,16 10.062,-27.75 10,16 9.937,-27.75 
9.876,16 9.812,-27.75 9.75,16 9.687,-27.75 9.626,16 9.562,-27.75 9.5,16 9.437,-27.75 9.376,16 9.312,-27.75 
9.25,16 9.187,-27.75 9.126,16 9.062,-27.75 9,16 8.937,-27.75 8.876,16 8.812,-27.75 8.75,16 8.687,-27.75 
8.626,16 8.562,-27.75 8.5,16 8.437,-27.75 8.376,16 8.312,-27.75 8.25,16 8.187,-27.75 8.126,16 8.062,-27.75 
8,16 Z"
+       transform="matrix(1,0,-0.5,1,4,0)"
+       id="path2"
+       
sodipodi:nodetypes="cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc"
 />
+  </g>
+  <use
+     x="0"
+     y="0"
+     xlink:href="#a"
+     id="b"
+     transform="translate(16)"
+     width="100%"
+     height="100%" />
+  <use
+     xlink:href="#b"
+     transform="translate(16)"
+     width="100%"
+     height="100%"
+     id="use6" />
+</svg>
diff --git a/src/stylesheet/widgets/_header-bar.scss b/src/stylesheet/widgets/_header-bar.scss
index f5a67d6e..0677b0f7 100644
--- a/src/stylesheet/widgets/_header-bar.scss
+++ b/src/stylesheet/widgets/_header-bar.scss
@@ -149,6 +149,7 @@ windowtitle {
 
 window.devel {
   headerbar > windowhandle {
-    background: cross-fade(8% -gtk-icontheme("system-run-symbolic"), image(transparent)) 90% 0/256px 256px 
no-repeat;
+    background-image: -gtk-icontheme('devel-symbolic');
+    background-repeat: repeat-x;
   }
 }


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