Merge lp:~elementary-apps/pantheon-photos/drag-nub-svg into lp:~pantheon-photos/pantheon-photos/trunk

Proposed by Danielle Foré
Status: Merged
Approved by: Felipe Escoto
Approved revision: 3113
Merged at revision: 3114
Proposed branch: lp:~elementary-apps/pantheon-photos/drag-nub-svg
Merge into: lp:~pantheon-photos/pantheon-photos/trunk
Diff against target: 148 lines (+118/-2)
3 files modified
data/icons/drag-nub.svg (+116/-0)
data/icons/icons.gresource.xml (+1/-1)
src/CustomComponents.vala (+1/-1)
To merge this branch: bzr merge lp:~elementary-apps/pantheon-photos/drag-nub-svg
Reviewer Review Type Date Requested Status
Felipe Escoto (community) nice nub Approve
Review via email: mp+314775@code.launchpad.net

Commit message

Replace the drag nub png with an svg

To post a comment you must log in.
3113. By Danielle Foré

replace drag nub with an svg

Revision history for this message
Felipe Escoto (philip.scott) :
review: Approve (nice nub)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added file 'data/icons/drag-nub.svg'
2--- data/icons/drag-nub.svg 1970-01-01 00:00:00 +0000
3+++ data/icons/drag-nub.svg 2017-01-15 01:53:28 +0000
4@@ -0,0 +1,116 @@
5+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
6+<svg
7+ xmlns:dc="http://purl.org/dc/elements/1.1/"
8+ xmlns:cc="http://creativecommons.org/ns#"
9+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
10+ xmlns:svg="http://www.w3.org/2000/svg"
11+ xmlns="http://www.w3.org/2000/svg"
12+ xmlns:xlink="http://www.w3.org/1999/xlink"
13+ id="svg2"
14+ height="16"
15+ width="16"
16+ version="1.2">
17+ <defs
18+ id="defs4">
19+ <linearGradient
20+ id="linearGradient9854">
21+ <stop
22+ id="stop9856"
23+ offset="0"
24+ style="stop-color:#000000;stop-opacity:1;" />
25+ <stop
26+ id="stop9858"
27+ offset="1"
28+ style="stop-color:#000000;stop-opacity:0;" />
29+ </linearGradient>
30+ <linearGradient
31+ id="linearGradient9660">
32+ <stop
33+ id="stop9662"
34+ style="stop-color:#ffffff;stop-opacity:1"
35+ offset="0" />
36+ <stop
37+ id="stop9664"
38+ style="stop-color:#ffffff;stop-opacity:0.23529412"
39+ offset="0.24401553" />
40+ <stop
41+ id="stop9666"
42+ style="stop-color:#ffffff;stop-opacity:0.15686275"
43+ offset="0.8847664" />
44+ <stop
45+ id="stop9668"
46+ style="stop-color:#ffffff;stop-opacity:0.39215687"
47+ offset="1" />
48+ </linearGradient>
49+ <linearGradient
50+ id="linearGradient3600-6">
51+ <stop
52+ offset="0"
53+ style="stop-color:#f4f4f4;stop-opacity:1"
54+ id="stop3602-1" />
55+ <stop
56+ offset="1"
57+ style="stop-color:#dbdbdb;stop-opacity:1"
58+ id="stop3604-5" />
59+ </linearGradient>
60+ <linearGradient
61+ gradientTransform="matrix(0,1.0000057,-1,0,305.7906,-94.000614)"
62+ gradientUnits="userSpaceOnUse"
63+ xlink:href="#linearGradient9660"
64+ id="linearGradient10008"
65+ y2="297.79059"
66+ x2="107.99319"
67+ y1="297.79059"
68+ x1="99.374321" />
69+ <linearGradient
70+ x1="25.132275"
71+ y1="27.384912"
72+ x2="25.132275"
73+ y2="49.265606"
74+ id="linearGradient3016"
75+ xlink:href="#linearGradient3600-6"
76+ gradientUnits="userSpaceOnUse"
77+ gradientTransform="matrix(0.45714178,0,0,0.43456667,-3.0483772,-6.1484631)" />
78+ <linearGradient
79+ gradientUnits="userSpaceOnUse"
80+ y2="6.8329687"
81+ x2="8"
82+ y1="15"
83+ x1="8"
84+ id="linearGradient9860"
85+ xlink:href="#linearGradient9854" />
86+ </defs>
87+ <metadata
88+ id="metadata7">
89+ <rdf:RDF>
90+ <cc:Work
91+ rdf:about="">
92+ <dc:format>image/svg+xml</dc:format>
93+ <dc:type
94+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
95+ <dc:title></dc:title>
96+ </cc:Work>
97+ </rdf:RDF>
98+ </metadata>
99+ <path
100+ id="rect9685"
101+ d="M 2,7.046875 2,12.5 C 2,13.331 2.669,14 3.5,14 l 9,0 C 13.331,14 14,13.331 14,12.5 L 14,7.109375 8,1.1503067 Z"
102+ style="color:#000000;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;fill:url(#linearGradient3016);fill-opacity:1;fill-rule:nonzero;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;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate" />
103+ <path
104+ id="rect6132-8-2-8-0-0-0-4-6-9-7-9-6"
105+ d="M 13.5,7.3457031 8,1.8164062 2.5,7.28125 2.5,12.5 c 0,0.554004 0.446,1 1,1 l 9,0 c 0.554,0 1,-0.445996 1,-1 z"
106+ style="color:#000000;display:inline;overflow:visible;visibility:visible;opacity:1;fill:none;stroke:url(#linearGradient10008);stroke-width:1;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;enable-background:accumulate" />
107+ <path
108+ style="color:#000000;display:inline;overflow:visible;visibility:visible;opacity:0.25;fill:none;stroke:#000000;stroke-width:1;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;enable-background:accumulate"
109+ id="rect6132-8-2-8-0-0-0-50-8-6-0-7-1-5-8-0-6-4"
110+ d="M 14.500117,6.8839269 8,0.5 1.500348,6.8180788 l 0,5.6819152 c 0,1.107997 0.8853039,2.000012 1.9933039,2.000012 l 9.0162311,0 c 1.108,0 1.990234,-0.826167 1.990234,-1.934164 z" />
111+ <rect
112+ ry="3"
113+ rx="3"
114+ y="0.49999917"
115+ x="0.5"
116+ height="15"
117+ width="15"
118+ id="rect9850"
119+ style="color:#000000;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:0.05;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;fill:none;fill-opacity:1;fill-rule:nonzero;stroke:url(#linearGradient9860);stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate" />
120+</svg>
121
122=== removed file 'data/icons/drag_nub.png'
123Binary files data/icons/drag_nub.png 2009-08-25 02:04:18 +0000 and data/icons/drag_nub.png 1970-01-01 00:00:00 +0000 differ
124=== modified file 'data/icons/icons.gresource.xml'
125--- data/icons/icons.gresource.xml 2017-01-08 16:54:49 +0000
126+++ data/icons/icons.gresource.xml 2017-01-15 01:53:28 +0000
127@@ -2,7 +2,7 @@
128 <gresources>
129 <gresource prefix="/org/pantheon/photos/icons">
130 <file alias="aperture-symbolic.svg" compressed="true" preprocess="xml-stripblanks">aperture-symbolic.svg</file>
131- <file alias="drag_nub.png" compressed="true">drag_nub.png</file>
132+ <file alias="drag-nub.svg" compressed="true" preprocess="xml-stripblanks">drag-nub.svg</file>
133 <file alias="edit-flag.svg" compressed="true" preprocess="xml-stripblanks">edit-flag.svg</file>
134 <file alias="exposure-bias-symbolic.svg" compressed="true" preprocess="xml-stripblanks">exposure-bias-symbolic.svg</file>
135 <file alias="exposure-symbolic.svg" compressed="true" preprocess="xml-stripblanks">exposure-symbolic.svg</file>
136
137=== modified file 'src/CustomComponents.vala'
138--- src/CustomComponents.vala 2017-01-12 18:13:48 +0000
139+++ src/CustomComponents.vala 2017-01-15 01:53:28 +0000
140@@ -54,7 +54,7 @@
141 private Gdk.Pixbuf? get_drag_nub_pixbuf () {
142 if (drag_nub_pixbuf == null) {
143 try {
144- drag_nub_pixbuf = new Gdk.Pixbuf.from_resource ("/org/pantheon/photos/icons/drag_nub.png");
145+ drag_nub_pixbuf = new Gdk.Pixbuf.from_resource ("/org/pantheon/photos/icons/drag-nub.svg");
146 } catch (Error err) {
147 error ("Can't load drag nub image: %s", err.message);
148 }

Subscribers

People subscribed via source and target branches