[libhandy] demo: Use a correctly rotated carousel icon
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libhandy] demo: Use a correctly rotated carousel icon
- Date: Fri, 7 Aug 2020 11:30:10 +0000 (UTC)
commit ca3c403e5580d5111f5e1433b7455b37c909287b
Author: Adrien Plazas <kekun plazas laposte net>
Date: Fri Aug 7 13:14:12 2020 +0200
demo: Use a correctly rotated carousel icon
This also stops reverting the icons' rotation logic, as it's not needed
anymore.
examples/handy-demo.gresources.xml | 1 +
examples/hdy-demo-window.ui | 2 +-
examples/icons/widget-carousel-symbolic.svg | 66 +++++++++++++++++++++++++++++
examples/style.css | 2 +-
4 files changed, 69 insertions(+), 2 deletions(-)
---
diff --git a/examples/handy-demo.gresources.xml b/examples/handy-demo.gresources.xml
index 572a8869..74c43440 100644
--- a/examples/handy-demo.gresources.xml
+++ b/examples/handy-demo.gresources.xml
@@ -8,6 +8,7 @@
<file preprocess="xml-stripblanks">icons/gesture-touchpad-swipe-back-symbolic.svg</file>
<file preprocess="xml-stripblanks">icons/gnome-smartphone-symbolic.svg</file>
<file preprocess="xml-stripblanks">icons/light-mode-symbolic.svg</file>
+ <file preprocess="xml-stripblanks">icons/widget-carousel-symbolic.svg</file>
<file preprocess="xml-stripblanks">icons/window-symbolic.svg</file>
</gresource>
<gresource prefix="/sm/puri/Handy/Demo/ui">
diff --git a/examples/hdy-demo-window.ui b/examples/hdy-demo-window.ui
index 2b581a28..927d5ce9 100644
--- a/examples/hdy-demo-window.ui
+++ b/examples/hdy-demo-window.ui
@@ -1734,7 +1734,7 @@
<property name="can_focus">False</property>
<property name="valign">center</property>
<property name="pixel_size">128</property>
- <property name="icon_name">view-continuous-symbolic</property>
+ <property name="icon_name">widget-carousel-symbolic</property>
<property name="icon-size">0</property>
<property name="margin-bottom">18</property>
<style>
diff --git a/examples/icons/widget-carousel-symbolic.svg b/examples/icons/widget-carousel-symbolic.svg
new file mode 100644
index 00000000..2764cc2a
--- /dev/null
+++ b/examples/icons/widget-carousel-symbolic.svg
@@ -0,0 +1,66 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<svg
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns:cc="http://creativecommons.org/ns#"
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns:svg="http://www.w3.org/2000/svg"
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+ inkscape:version="1.0 (4035a4fb49, 2020-05-01)"
+ sodipodi:docname="view-continuous-symbolic.svg"
+ id="svg8"
+ version="1.1"
+ height="16"
+ width="16">
+ <metadata
+ id="metadata14">
+ <rdf:RDF>
+ <cc:Work
+ rdf:about="">
+ <dc:format>image/svg+xml</dc:format>
+ <dc:type
+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+ </cc:Work>
+ </rdf:RDF>
+ </metadata>
+ <defs
+ id="defs12" />
+ <sodipodi:namedview
+ inkscape:current-layer="svg8"
+ inkscape:window-maximized="0"
+ inkscape:window-y="23"
+ inkscape:window-x="26"
+ inkscape:cy="8"
+ inkscape:cx="8"
+ inkscape:zoom="32.480545"
+ showgrid="false"
+ id="namedview10"
+ inkscape:window-height="742"
+ inkscape:window-width="1230"
+ inkscape:pageshadow="2"
+ inkscape:pageopacity="0"
+ guidetolerance="10"
+ gridtolerance="10"
+ objecttolerance="10"
+ borderopacity="1"
+ bordercolor="#666666"
+ pagecolor="#ffffff" />
+ <g
+ transform="rotate(-90,8,8)"
+ id="g6"
+ fill="#474747"
+ color="#bebebe">
+ <path
+ id="path2"
+ opacity="0.35"
+ overflow="visible"
+ style="marker:none"
+ d="M 9.625,11 H 6.375 A 0.374,0.374 0 0 0 6,11.375 v 1.25 C 6,12.833 6.167,13 6.375,13 h 3.25 A
0.374,0.374 0 0 0 10,12.625 v -1.25 A 0.374,0.374 0 0 0 9.625,11 Z m 0,-11 H 6.375 A 0.374,0.374 0 0 0
6,0.375 v 1.25 C 6,1.833 6.167,2 6.375,2 h 3.25 A 0.374,0.374 0 0 0 10,1.625 V 0.375 A 0.374,0.374 0 0 0
9.625,0 Z m 0,14 H 6.375 A 0.374,0.374 0 0 0 6,14.375 v 1.25 C 6,15.833 6.167,16 6.375,16 h 3.25 A
0.374,0.374 0 0 0 10,15.625 v -1.25 A 0.374,0.374 0 0 0 9.625,14 Z m 0,-11 H 6.375 A 0.374,0.374 0 0 0
6,3.375 v 1.25 C 6,4.833 6.167,5 6.375,5 h 3.25 A 0.374,0.374 0 0 0 10,4.625 V 3.375 A 0.374,0.374 0 0 0
9.625,3 Z" />
+ <path
+ id="path4"
+ overflow="visible"
+ style="marker:none"
+ d="M 14,7 H 2 v 2 h 12 z" />
+ </g>
+</svg>
diff --git a/examples/style.css b/examples/style.css
index 8c49a146..71829367 100644
--- a/examples/style.css
+++ b/examples/style.css
@@ -3,6 +3,6 @@ stacksidebar list {
border-right-width: 0px;
}
-carousel.horizontal .carousel-icon {
+carousel.vertical .carousel-icon {
-gtk-icon-transform: rotate(90deg);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]