[simple-scan] app-window: Use a better crop icon
- From: Bartosz <bkosiorek src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [simple-scan] app-window: Use a better crop icon
- Date: Mon, 14 Dec 2020 13:55:20 +0000 (UTC)
commit fbcc9e0b2e39b7f11796bfffb60797dab03e141d
Author: vanadiae <vanadiae35 gmail com>
Date: Fri Dec 11 20:25:28 2020 +0100
app-window: Use a better crop icon
This replaces the scissors icon, which is usually meant for when you
to cut (i.e. copy and delete) something rather than cropping. There's
a nice crop icon in the icon dev kit so better make use of it so it's
more clear what's the purpose of the crop button.
data/icons/scalable/actions/crop-symbolic.svg | 73 +++++++++++++++++++++++++++
data/meson.build | 6 +--
data/simple-scan.gresource.xml | 1 +
src/app-window.vala | 2 +-
4 files changed, 78 insertions(+), 4 deletions(-)
---
diff --git a/data/icons/scalable/actions/crop-symbolic.svg b/data/icons/scalable/actions/crop-symbolic.svg
new file mode 100644
index 00000000..0867d459
--- /dev/null
+++ b/data/icons/scalable/actions/crop-symbolic.svg
@@ -0,0 +1,73 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<svg
+ xmlns:osb="http://www.openswatchbook.org/uri/2009/osb"
+ 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"
+ width="16"
+ viewBox="0 0 16 16"
+ version="1.1"
+ id="svg7384"
+ height="16">
+ <metadata
+ id="metadata90">
+ <rdf:RDF>
+ <cc:Work
+ rdf:about="">
+ <dc:format>image/svg+xml</dc:format>
+ <dc:type
+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+ <dc:title>Gnome Symbolic Icon Theme</dc:title>
+ </cc:Work>
+ </rdf:RDF>
+ </metadata>
+ <title
+ id="title9167">Gnome Symbolic Icon Theme</title>
+ <defs
+ id="defs7386">
+ <linearGradient
+ osb:paint="solid"
+ id="linearGradient7212">
+ <stop
+ style="stop-color:#000000;stop-opacity:1;"
+ offset="0"
+ id="stop7214" />
+ </linearGradient>
+ </defs>
+ <g
+ transform="translate(-381.0002,-177)"
+ style="display:inline"
+ id="layer9" />
+ <g
+ transform="translate(-140,-544)"
+ id="layer1" />
+ <g
+ transform="translate(-140,-544)"
+ style="display:inline"
+ id="layer10" />
+ <g
+ transform="translate(-140,-544)"
+ id="g6387" />
+ <g
+ transform="translate(-140,-544)"
+ id="layer11">
+ <path
+ d="m 152.00219,547 c 0.55279,0 0.99781,0.44502 0.99781,0.99781 v 0.004 c 0,0.55279 -0.44502,0.99781
-0.99781,0.99781 h -10.00438 c -0.55279,0 -0.99781,-0.44502 -0.99781,-0.99781 v -0.98838 z"
+ id="rect33604"
+
style="opacity:1;vector-effect:none;fill:#2e3436;fill-opacity:1;stroke:none;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none"
/>
+ <path
+ d="m 143.99781,545 h 0.004 c 0.55279,0 0.99782,0.44502 0.99782,0.99781 v 10.00438 c 0,0.55279
-0.44503,0.99781 -0.99782,0.99781 h -0.004 C 143.44502,557 143,556.55498 143,556.00219 v -10.97313 c 0,0
0.44502,-0.0291 0.99781,-0.0291 z"
+ id="rect33608"
+
style="opacity:1;vector-effect:none;fill:#2e3436;fill-opacity:1;stroke:none;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none"
/>
+ <path
+ d="m 143.99781,556.99996 c -0.55279,0 -0.99781,-0.44502 -0.99781,-0.99781 v -0.004 c 0,-0.55279
0.44502,-0.99781 0.99781,-0.99781 h 10.00438 c 0.55279,0 0.99781,0.44502 0.99781,0.99781 v 0.98838 z"
+ id="path7845"
+
style="opacity:1;vector-effect:none;fill:#2e3436;fill-opacity:1;stroke:none;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none"
/>
+ <path
+ d="m 152.00219,558.99996 h -0.004 c -0.55279,0 -0.99782,-0.44502 -0.99782,-0.99781 v -10.00438 c
0,-0.55279 0.44503,-0.99781 0.99782,-0.99781 h 0.004 c 0.55279,0 0.99781,0.44502 0.99781,0.99781 v 10.97313 c
0,0 -0.44502,0.0291 -0.99781,0.0291 z"
+ id="path7847"
+
style="opacity:1;vector-effect:none;fill:#2e3436;fill-opacity:1;stroke:none;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none"
/>
+ </g>
+</svg>
diff --git a/data/meson.build b/data/meson.build
index adc3541b..2b5a0ee3 100644
--- a/data/meson.build
+++ b/data/meson.build
@@ -25,10 +25,10 @@ i18n.merge_file ('appdata-file',
install_man ('simple-scan.1')
-icon_dir = 'icons/scalable/actions'
resource_files = files([
- icon_dir / 'scan-type-adf-symbolic.svg',
- icon_dir / 'scan-type-batch-symbolic.svg',
+ 'icons/scalable/actions/scan-type-adf-symbolic.svg',
+ 'icons/scalable/actions/scan-type-batch-symbolic.svg',
+ 'icons/scalable/actions/crop-symbolic.svg',
'ui/app-window.ui',
'ui/authorize-dialog.ui',
'ui/help-overlay.ui',
diff --git a/data/simple-scan.gresource.xml b/data/simple-scan.gresource.xml
index 7d0c56e6..b913b394 100644
--- a/data/simple-scan.gresource.xml
+++ b/data/simple-scan.gresource.xml
@@ -8,5 +8,6 @@
<file preprocess="xml-stripblanks">icons/scalable/actions/scan-type-adf-symbolic.svg</file>
<file preprocess="xml-stripblanks">icons/scalable/actions/scan-type-batch-symbolic.svg</file>
+ <file preprocess="xml-stripblanks">icons/scalable/actions/crop-symbolic.svg</file>
</gresource>
</gresources>
diff --git a/src/app-window.vala b/src/app-window.vala
index 6c619129..3e362871 100644
--- a/src/app-window.vala
+++ b/src/app-window.vala
@@ -1930,7 +1930,7 @@ public class AppWindow : Gtk.ApplicationWindow
crop_button = new Gtk.ToggleButton ();
crop_button.visible = true;
- var image = new Gtk.Image.from_icon_name ("edit-cut-symbolic", Gtk.IconSize.BUTTON);
+ var image = new Gtk.Image.from_icon_name ("crop-symbolic", Gtk.IconSize.BUTTON);
image.visible = true;
image.margin_start = 18;
image.margin_end = 18;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]