[libadwaita/wip/jimmac/devel-striping-icontheme] headerbar: devel stripy watermark
- From: Jakub Steiner <jimmac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libadwaita/wip/jimmac/devel-striping-icontheme] headerbar: devel stripy watermark
- Date: Mon, 13 Sep 2021 15:35:36 +0000 (UTC)
commit 12eff7edf0618978c8c6a3dd645628021896d704
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 | 43 +++++++++++++++++++++++++++
src/stylesheet/widgets/_header-bar.scss | 3 +-
3 files changed, 46 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..06d58b8b
--- /dev/null
+++ b/src/icons/scalable/actions/devel-symbolic.svg
@@ -0,0 +1,43 @@
+<?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="a" />
+ <g
+ id="a"
+ style="fill:#000000;fill-opacity:0.10215242">
+ <path
+ style="fill:#000000;fill-opacity:.05;stroke-width:3;stroke-linecap:round;stop-color:#000000"
+ d="M 0,0 H 4 V 16 L 3.937,0.25 3.876,16 3.812,0.25 3.75,16 3.687,0.25 3.626,16 3.562,0.25 3.5,16
3.437,0.25 3.376,16 3.312,0.25 3.25,16 3.187,0.25 3.126,16 3.062,0.25 3,16 2.937,0.25 2.876,16 2.812,0.25
2.75,16 2.687,0.25 2.626,16 2.562,0.25 2.5,16 2.437,0.25 2.376,16 2.312,0.25 2.25,16 2.187,0.25 2.126,16
2.062,0.25 2,16 1.937,0.25 1.875,16 1.812,0.25 1.75,16 1.687,0.25 1.625,16 1.562,0.25 1.5,16 1.437,0.25
1.375,16 1.312,0.25 1.25,16 1.187,0.25 1.125,16 1.062,0.25 1,16 0.937,0.25 0.875,16 0.812,0.25 0.75,16
0.687,0.25 0.625,16 0.562,0.25 0.5,16 0.437,0.25 0.376,16 0.312,0.25 0.25,16 0.187,0.25 0.126,16 0.062,0.25
0,16 Z m 8,0 h 4 V 16 L 11.937,0.25 11.876,16 11.812,0.25 11.75,16 11.687,0.25 11.626,16 11.562,0.25 11.5,16
11.437,0.25 11.376,16 11.312,0.25 11.25,16 11.187,0.25 11.126,16 11.062,0.25 11,16 10.937,0.25 10.876,16
10.812,0.25 10.75,16 10.687,0.25 10.626,16 10.562,0.25 10.5,16 10.437,0.25 10.376,16 10.312,0.25 10.25,16
10.187,0.25 10.126,16 10.062,0.25 10,16 9.937,0
.25 9.876,16 9.812,0.25 9.75,16 9.687,0.25 9.626,16 9.562,0.25 9.5,16 9.437,0.25 9.376,16 9.312,0.25 9.25,16
9.187,0.25 9.126,16 9.062,0.25 9,16 8.937,0.25 8.876,16 8.812,0.25 8.75,16 8.687,0.25 8.626,16 8.562,0.25
8.5,16 8.437,0.25 8.376,16 8.312,0.25 8.25,16 8.187,0.25 8.126,16 8.062,0.25 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%" />
+</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]