[libhandy] demo: Bundle the icons representing the widgets
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libhandy] demo: Bundle the icons representing the widgets
- Date: Fri, 7 Aug 2020 11:30:10 +0000 (UTC)
commit dcdbc287496992c6d3358aa77fa380d10e2655aa
Author: Adrien Plazas <kekun plazas laposte net>
Date: Fri Aug 7 13:08:33 2020 +0200
demo: Bundle the icons representing the widgets
This also put the carousel icon in the right orientation so we don't
have to flip its rotation logic in the demo.
Fixes https://gitlab.gnome.org/GNOME/libhandy/-/issues/237
examples/handy-demo.gresources.xml | 9 ++++++++-
examples/hdy-demo-window.ui | 16 ++++++++--------
examples/icons/widget-clamp-symbolic.svg | 1 +
examples/icons/widget-deck-symbolic.svg | 1 +
examples/icons/widget-keypad-symbolic.svg | 1 +
examples/icons/widget-leaflet-symbolic.svg | 1 +
examples/icons/widget-list-symbolic.svg | 1 +
examples/icons/widget-search-symbolic.svg | 1 +
examples/icons/widget-view-switcher-symbolic.svg | 1 +
.../{window-symbolic.svg => widget-window-symbolic.svg} | 0
10 files changed, 23 insertions(+), 9 deletions(-)
---
diff --git a/examples/handy-demo.gresources.xml b/examples/handy-demo.gresources.xml
index 74c43440..e0825c1d 100644
--- a/examples/handy-demo.gresources.xml
+++ b/examples/handy-demo.gresources.xml
@@ -9,7 +9,14 @@
<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>
+ <file preprocess="xml-stripblanks">icons/widget-clamp-symbolic.svg</file>
+ <file preprocess="xml-stripblanks">icons/widget-deck-symbolic.svg</file>
+ <file preprocess="xml-stripblanks">icons/widget-keypad-symbolic.svg</file>
+ <file preprocess="xml-stripblanks">icons/widget-leaflet-symbolic.svg</file>
+ <file preprocess="xml-stripblanks">icons/widget-list-symbolic.svg</file>
+ <file preprocess="xml-stripblanks">icons/widget-search-symbolic.svg</file>
+ <file preprocess="xml-stripblanks">icons/widget-view-switcher-symbolic.svg</file>
+ <file preprocess="xml-stripblanks">icons/widget-window-symbolic.svg</file>
</gresource>
<gresource prefix="/sm/puri/Handy/Demo/ui">
<file preprocess="xml-stripblanks">hdy-demo-preferences-window.ui</file>
diff --git a/examples/hdy-demo-window.ui b/examples/hdy-demo-window.ui
index 927d5ce9..9d00588f 100644
--- a/examples/hdy-demo-window.ui
+++ b/examples/hdy-demo-window.ui
@@ -457,7 +457,7 @@
<property name="can_focus">False</property>
<property name="valign">center</property>
<property name="pixel_size">128</property>
- <property name="icon_name">view-dual-symbolic</property>
+ <property name="icon_name">widget-leaflet-symbolic</property>
<property name="icon-size">0</property>
<property name="margin-bottom">18</property>
<style>
@@ -599,7 +599,7 @@
<property name="can_focus">False</property>
<property name="valign">center</property>
<property name="pixel_size">128</property>
- <property name="icon_name">view-paged-symbolic</property>
+ <property name="icon_name">widget-deck-symbolic</property>
<property name="icon-size">0</property>
<property name="margin-bottom">18</property>
<style>
@@ -797,7 +797,7 @@
<property name="can_focus">False</property>
<property name="valign">center</property>
<property name="pixel_size">128</property>
- <property name="icon_name">input-dialpad-symbolic</property>
+ <property name="icon_name">widget-keypad-symbolic</property>
<property name="icon-size">0</property>
<property name="margin-bottom">18</property>
<style>
@@ -981,7 +981,7 @@
<property name="can_focus">False</property>
<property name="valign">center</property>
<property name="pixel_size">128</property>
- <property name="icon_name">edit-select-symbolic</property>
+ <property name="icon_name">widget-clamp-symbolic</property>
<property name="icon-size">0</property>
<property name="margin-bottom">18</property>
<style>
@@ -1135,7 +1135,7 @@
<property name="can_focus">False</property>
<property name="valign">center</property>
<property name="pixel_size">128</property>
- <property name="icon_name">format-justify-fill-symbolic</property>
+ <property name="icon_name">widget-list-symbolic</property>
<property name="icon-size">0</property>
<property name="margin-bottom">18</property>
<style>
@@ -1508,7 +1508,7 @@
<property name="valign">center</property>
<property name="margin_bottom">18</property>
<property name="pixel_size">128</property>
- <property name="icon_name">edit-find-symbolic</property>
+ <property name="icon_name">widget-search-symbolic</property>
<property name="icon_size">0</property>
<style>
<class name="dim-label"/>
@@ -1617,7 +1617,7 @@
<property name="can_focus">False</property>
<property name="valign">center</property>
<property name="pixel_size">128</property>
- <property name="icon_name">view-more-horizontal-symbolic</property>
+ <property name="icon_name">widget-view-switcher-symbolic</property>
<property name="icon-size">0</property>
<property name="margin-bottom">18</property>
<style>
@@ -2129,7 +2129,7 @@
<property name="can_focus">False</property>
<property name="valign">center</property>
<property name="pixel_size">128</property>
- <property name="icon_name">window-symbolic</property>
+ <property name="icon_name">widget-window-symbolic</property>
<property name="icon-size">0</property>
<property name="margin-bottom">18</property>
<style>
diff --git a/examples/icons/widget-clamp-symbolic.svg b/examples/icons/widget-clamp-symbolic.svg
new file mode 100644
index 00000000..9269c408
--- /dev/null
+++ b/examples/icons/widget-clamp-symbolic.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16"><g color="#000" fill="#474747"><path
d="M12.293 5.293L9.586 8l2.707 2.707 1.414-1.414L12.414 8l1.293-1.293z"
style="line-height:normal;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000;text-transform:none;text-orientation:mixed;shape-padding:0;isolation:auto;mix-blend-mode:normal;marker:none"
font-weight="400" font-family="sans-serif" overflow="visible"/><path d="M13 10h1v1h-1zm0-5h1v1h-1z"
style="marker:none" overflow="visible"/><path d="M13 5c.554 0 1 .446 1 1s-.446 1-1 1-1-.446-1-1 .446-1 1-1zm0
4c.554 0 1 .446 1 1s-.446 1-1 1-1-.446-1-1 .446-1 1-1z" style="marker:none" overflow="visible"/><path
d="M3.707 5.293L2.293 6.707 3.586 8 2.293 9.293l1.414 1.414L6.414 8z" style="line-height:norma
l;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000;text-transform:none;text-orientation:mixed;shape-padding:0;isolation:auto;mix-blend-mode:normal;marker:none"
font-weight="400" font-family="sans-serif" overflow="visible"/><path d="M3 10H2v1h1zm0-5H2v1h1z"
style="marker:none" overflow="visible"/><path d="M3 5c-.554 0-1 .446-1 1s.446 1 1 1 1-.446 1-1-.446-1-1-1zm0
4c-.554 0-1 .446-1 1s.446 1 1 1 1-.446 1-1-.446-1-1-1z" style="marker:none" overflow="visible"/></g></svg>
\ No newline at end of file
diff --git a/examples/icons/widget-deck-symbolic.svg b/examples/icons/widget-deck-symbolic.svg
new file mode 100644
index 00000000..3fe8afa6
--- /dev/null
+++ b/examples/icons/widget-deck-symbolic.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16"><g color="#bebebe" fill="#474747"><path d="M1
0v13h12V0zm2 2h8v9H3z"
style="line-height:normal;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000;text-transform:none;text-orientation:mixed;shape-padding:0;isolation:auto;mix-blend-mode:normal;marker:none"
font-weight="400" font-family="sans-serif" overflow="visible"/><path d="M14 3v11H4v2h12V3z"
style="line-height:normal;-inkscape-font-specification:Sans;text-indent:0;text-align:start;text-decoration-line:none;text-transform:none;marker:none"
font-weight="400" font-family="Sans" overflow="visible"/><path d="M8.625 4h-3.25A.374.374 0 005 4.375v1.25c0
.208.167.375.375.375h3.25A.374.374 0 009 5.625v-1.25A.374.374 0 008.625 4zm0 3h-3.25A.374.374 0
005 7.375v1.25c0 .208.167.375.375.375h3.25A.374.374 0 009 8.625v-1.25A.374.374 0 008.625 7z"
style="marker:none" overflow="visible" opacity=".35"/></g></svg>
\ No newline at end of file
diff --git a/examples/icons/widget-keypad-symbolic.svg b/examples/icons/widget-keypad-symbolic.svg
new file mode 100644
index 00000000..f390fd64
--- /dev/null
+++ b/examples/icons/widget-keypad-symbolic.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16"><path d="M2.5 1c-.277 0-.5.223-.5.5v2c0
.277.223.5.5.5h2c.277 0 .5-.223.5-.5v-2c0-.277-.223-.5-.5-.5zm4 0c-.277 0-.5.223-.5.5v2c0
.277.223.5.5.5h2c.277 0 .5-.223.5-.5v-2c0-.277-.223-.5-.5-.5zm4 0c-.277 0-.5.223-.5.5v2c0
.277.223.5.5.5h2c.277 0 .5-.223.5-.5v-2c0-.277-.223-.5-.5-.5zm-8 4c-.277 0-.5.223-.5.5v2c0
.277.223.5.5.5h2c.277 0 .5-.223.5-.5v-2c0-.277-.223-.5-.5-.5zm4 0c-.277 0-.5.223-.5.5v2c0
.277.223.5.5.5h2c.277 0 .5-.223.5-.5v-2c0-.277-.223-.5-.5-.5zm4 0c-.277 0-.5.223-.5.5v2c0
.277.223.5.5.5h2c.277 0 .5-.223.5-.5v-2c0-.277-.223-.5-.5-.5zm-8 4c-.277 0-.5.223-.5.5v2c0
.277.223.5.5.5h2c.277 0 .5-.223.5-.5v-2c0-.277-.223-.5-.5-.5zm4 0c-.277 0-.5.223-.5.5v2c0
.277.223.5.5.5h2c.277 0 .5-.223.5-.5v-2c0-.277-.223-.5-.5-.5zm4 0c-.277 0-.5.223-.5.5v2c0
.277.223.5.5.5h2c.277 0 .5-.223.5-.5v-2c0-.277-.223-.5-.5-.5zm-4 4c-.277 0-.5.223-.5.5v2c0
.277.223.5.5.5h2c.277 0 .5-.223.5-.5v-2c0-.277-.223-.5-.5-.5z" fill="#2e3436"/></
svg>
\ No newline at end of file
diff --git a/examples/icons/widget-leaflet-symbolic.svg b/examples/icons/widget-leaflet-symbolic.svg
new file mode 100644
index 00000000..5763db7f
--- /dev/null
+++ b/examples/icons/widget-leaflet-symbolic.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16"><g color="#bebebe" fill="#474747"><path d="M0
1v13h6c.176 0 .535.14.822.332.288.192.467.371.467.371l.719.727.711-.735S9.615 14 10 14h6V1h-6c-.901
0-1.572.353-2.043.701-.025-.017-.018-.018-.045-.035C7.452 1.362 6.828 1 6 1zm2 2h4c.138 0
.515.138.813.334.297.196.492.385.492.385l.717.693.695-.715S9.619 3 10 3h4v9h-4c-.89
0-1.562.348-2.033.693-.018-.012-.013-.013-.031-.025C7.476 12.36 6.836 12 6 12H2z"
style="line-height:normal;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000;text-transform:none;text-orientation:mixed;shape-padding:0;isolation:auto;mix-blend-mode:normal;marker:none"
font-weight="400" font-family="sans-serif" overflow="visible"/><path d="M5.625 5h-2.25A.374.374 0 003
5.375v1.25c
0 .207.167.375.375.375h2.25A.374.374 0 006 6.625v-1.25A.374.374 0 005.625 5zm0 3h-2.25A.374.374 0 003
8.375v1.25c0 .208.167.375.375.375h2.25A.374.374 0 006 9.625v-1.25A.374.374 0 005.625 8zm7-3h-2.25a.374.374 0
00-.375.375v1.25c0 .208.167.375.375.375h2.25A.374.374 0 0013 6.625v-1.25A.374.374 0 0012.625 5zm0
3h-2.25a.374.374 0 00-.375.375v1.25c0 .208.167.375.375.375h2.25A.374.374 0 0013 9.625v-1.25A.374.374 0
0012.625 8z" style="marker:none" overflow="visible" opacity=".35"/></g></svg>
\ No newline at end of file
diff --git a/examples/icons/widget-list-symbolic.svg b/examples/icons/widget-list-symbolic.svg
new file mode 100644
index 00000000..c9fec6a2
--- /dev/null
+++ b/examples/icons/widget-list-symbolic.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16"><path d="M3 3h10v2H3zm0 4h10v2H3zm0
4h10v2H3z" style="marker:none" overflow="visible" color="#bebebe" fill="#474747"/></svg>
\ No newline at end of file
diff --git a/examples/icons/widget-search-symbolic.svg b/examples/icons/widget-search-symbolic.svg
new file mode 100644
index 00000000..1a6200e7
--- /dev/null
+++ b/examples/icons/widget-search-symbolic.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16"><g color="#000" font-weight="400"
font-family="sans-serif" fill="#474747"><path d="M6.508 1C3.48 1 1.002 3.474 1.002 6.5S3.48 12 6.508
12s5.505-2.474 5.505-5.5S9.536 1 6.508 1zm0 2a3.488 3.488 0 013.505 3.5c0 1.944-1.557 3.5-3.505 3.5a3.488
3.488 0 01-3.506-3.5c0-1.944 1.557-3.5 3.506-3.5z"
style="line-height:normal;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000;text-transform:none;text-orientation:mixed;shape-padding:0;isolation:auto;mix-blend-mode:normal;marker:none"
overflow="visible"/><path d="M10 8.99a1 1 0 00-.696 1.717l4.004 4a1 1 0 101.414-1.414l-4.003-4a1 1 0
00-.72-.303z"
style="line-height:normal;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:norma
l;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000;text-transform:none;text-orientation:mixed;shape-padding:0;isolation:auto;mix-blend-mode:normal;marker:none"
overflow="visible"/></g></svg>
\ No newline at end of file
diff --git a/examples/icons/widget-view-switcher-symbolic.svg
b/examples/icons/widget-view-switcher-symbolic.svg
new file mode 100644
index 00000000..255754c1
--- /dev/null
+++ b/examples/icons/widget-view-switcher-symbolic.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16"><path d="M2 6.006a2 2 0 012 2 2 2 0 01-2 2 2
2 0 01-2-2 2 2 0 012-2zm6 0a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2zm6 0a2 2 0 012 2 2 2 0 01-2 2 2
2 0 01-2-2 2 2 0 012-2z" fill="#2e3436"/></svg>
\ No newline at end of file
diff --git a/examples/icons/window-symbolic.svg b/examples/icons/widget-window-symbolic.svg
similarity index 100%
rename from examples/icons/window-symbolic.svg
rename to examples/icons/widget-window-symbolic.svg
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]