[gnome-subtitles] Switched png icon file to svg
- From: Pedro Daniel da Rocha Melo e Castro <pcastro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-subtitles] Switched png icon file to svg
- Date: Sun, 22 Apr 2012 00:59:21 +0000 (UTC)
commit 8433b3ad47c4fecdfc583aeef3f4d230548aaa95
Author: Pedro Castro <pedro gnomesubtitles org>
Date: Sun Apr 22 01:57:09 2012 +0100
Switched png icon file to svg
data/Makefile.am | 2 +-
data/gnome-subtitles.png | Bin 1590 -> 0 bytes
data/gnome-subtitles.svg | 237 +++++++++++++++++++++++++++++++++++++++
gnome-subtitles.mdp | 2 +-
src/GnomeSubtitles/Ui/MainUi.cs | 2 +-
5 files changed, 240 insertions(+), 3 deletions(-)
---
diff --git a/data/Makefile.am b/data/Makefile.am
index a1f1178..3b889ec 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -2,7 +2,7 @@ desktopdir = $(datadir)/applications
desktop_DATA = gnome-subtitles.desktop
gnomesubtitlesicondir = $(datadir)/pixmaps
-gnomesubtitlesicon_DATA = gnome-subtitles.png
+gnomesubtitlesicon_DATA = gnome-subtitles.svg
schemadir = $(GCONF_SCHEMA_FILE_DIR)
schema_DATA = gnome-subtitles.schemas
diff --git a/data/gnome-subtitles.svg b/data/gnome-subtitles.svg
new file mode 100644
index 0000000..32c2c37
--- /dev/null
+++ b/data/gnome-subtitles.svg
@@ -0,0 +1,237 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+<svg
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns:cc="http://web.resource.org/cc/"
+ 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:xlink="http://www.w3.org/1999/xlink"
+ xmlns:sodipodi="http://inkscape.sourceforge.net/DTD/sodipodi-0.dtd"
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+ width="48px"
+ height="48px"
+ id="svg1578"
+ sodipodi:version="0.32"
+ inkscape:version="0.43"
+ sodipodi:docbase="/home/sak/wip/gsubtitles"
+ sodipodi:docname="06icon48x.svg"
+ inkscape:export-filename="/home/sak/wip/gsubtitles/06icon128x.png"
+ inkscape:export-xdpi="240"
+ inkscape:export-ydpi="240">
+ <defs
+ id="defs1580">
+ <linearGradient
+ inkscape:collect="always"
+ id="linearGradient2404">
+ <stop
+ style="stop-color:#ffffff;stop-opacity:1;"
+ offset="0"
+ id="stop2406" />
+ <stop
+ style="stop-color:#ffffff;stop-opacity:0;"
+ offset="1"
+ id="stop2408" />
+ </linearGradient>
+ <linearGradient
+ inkscape:collect="always"
+ xlink:href="#linearGradient2404"
+ id="linearGradient1608"
+ gradientUnits="userSpaceOnUse"
+ gradientTransform="matrix(0.355019,0,0,0.355019,344.1661,330.576)"
+ x1="65.102867"
+ y1="15.99996"
+ x2="65.102867"
+ y2="55.06274" />
+ <linearGradient
+ id="linearGradient3147">
+ <stop
+ id="stop3149"
+ offset="0"
+ style="stop-color:#ffd980;stop-opacity:1;" />
+ <stop
+ id="stop3151"
+ offset="1"
+ style="stop-color:#ffb200;stop-opacity:1;" />
+ </linearGradient>
+ <radialGradient
+ inkscape:collect="always"
+ xlink:href="#linearGradient3147"
+ id="radialGradient1606"
+ gradientUnits="userSpaceOnUse"
+ gradientTransform="matrix(0.753552,1.541246e-16,4.547577e-15,0.252113,318.2205,338.372)"
+ cx="65.102829"
+ cy="76.848564"
+ fx="65.102829"
+ fy="76.848564"
+ r="50.415974" />
+ <radialGradient
+ inkscape:collect="always"
+ xlink:href="#linearGradient3147"
+ id="radialGradient2612"
+ gradientUnits="userSpaceOnUse"
+ gradientTransform="matrix(0.753552,1.541246e-16,4.547577e-15,0.252113,318.2205,338.372)"
+ cx="65.102829"
+ cy="76.848564"
+ fx="65.102829"
+ fy="76.848564"
+ r="50.415974" />
+ <linearGradient
+ inkscape:collect="always"
+ xlink:href="#linearGradient2404"
+ id="linearGradient2614"
+ gradientUnits="userSpaceOnUse"
+ gradientTransform="matrix(0.355019,0,0,0.355019,344.1661,330.576)"
+ x1="65.102867"
+ y1="15.99996"
+ x2="65.102867"
+ y2="55.06274" />
+ <linearGradient
+ inkscape:collect="always"
+ xlink:href="#linearGradient2404"
+ id="linearGradient2622"
+ gradientUnits="userSpaceOnUse"
+ gradientTransform="matrix(0.415929,0,0,0.415929,-3.320866,-4.060106)"
+ x1="65.102867"
+ y1="15.99996"
+ x2="65.102867"
+ y2="55.06274" />
+ <radialGradient
+ inkscape:collect="always"
+ xlink:href="#linearGradient3147"
+ id="radialGradient2625"
+ gradientUnits="userSpaceOnUse"
+ gradientTransform="matrix(0.882838,1.805676e-16,5.3278e-15,0.295368,-33.71793,5.073446)"
+ cx="65.102829"
+ cy="76.848564"
+ fx="65.102829"
+ fy="76.848564"
+ r="50.415974" />
+ <linearGradient
+ inkscape:collect="always"
+ xlink:href="#linearGradient2404"
+ id="linearGradient3658"
+ gradientUnits="userSpaceOnUse"
+ gradientTransform="matrix(0.415929,0,0,0.415929,-3.320866,-4.060106)"
+ x1="65.102867"
+ y1="15.99996"
+ x2="65.102867"
+ y2="55.06274" />
+ <radialGradient
+ inkscape:collect="always"
+ xlink:href="#linearGradient3147"
+ id="radialGradient3661"
+ gradientUnits="userSpaceOnUse"
+ gradientTransform="matrix(0.882838,1.805676e-16,5.3278e-15,0.295368,-33.71793,5.073446)"
+ cx="65.102829"
+ cy="76.848564"
+ fx="65.102829"
+ fy="76.848564"
+ r="50.415974" />
+ </defs>
+ <sodipodi:namedview
+ id="base"
+ pagecolor="#ffffff"
+ bordercolor="#666666"
+ borderopacity="1.0"
+ inkscape:pageopacity="0.0"
+ inkscape:pageshadow="2"
+ inkscape:zoom="5.6568542"
+ inkscape:cx="24"
+ inkscape:cy="25.428571"
+ inkscape:current-layer="layer1"
+ showgrid="false"
+ inkscape:grid-bbox="true"
+ inkscape:document-units="px"
+ inkscape:window-width="872"
+ inkscape:window-height="587"
+ inkscape:window-x="0"
+ inkscape:window-y="25" />
+ <metadata
+ id="metadata1583">
+ <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>
+ <g
+ id="layer1"
+ inkscape:label="Layer 1"
+ inkscape:groupmode="layer">
+ <path
+ style="fill:none;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1.70000005;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
+ d="M 33.544919,30.733466 L 7.4447397,30.733466 C 4.9800397,30.733466 2.9958353,28.749262 2.9958353,26.284574 L 2.9958353,7.9713333 C 2.9958353,5.506645 5.5732285,3.5224406 8.0379168,3.5224406 L 40.069972,3.5224406 C 42.534661,3.5224406 44.518865,5.506645 44.518865,7.9713333 L 44.518865,26.284574 C 44.518865,28.749262 42.534661,30.733466 40.069972,30.733466 L 40.125516,30.825634 C 40.125516,36.068709 27.542151,42.2855 31.436997,38.315732 C 35.331866,34.345988 33.544919,30.733466 33.544919,30.733466 z "
+ id="path2930"
+ sodipodi:nodetypes="ccccccccc"
+ inkscape:export-filename="/home/sak/wip/gsubtitles/path3001.png"
+ inkscape:export-xdpi="90"
+ inkscape:export-ydpi="90" />
+ <path
+ style="fill:url(#radialGradient3661);fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
+ d="M 33.544872,30.733419 L 7.4446929,30.733419 C 4.9799929,30.733419 2.9957885,28.749215 2.9957885,26.284527 L 2.9957885,7.9712747 C 2.9957885,5.5065864 5.5731817,3.522382 8.03787,3.522382 L 40.069925,3.522382 C 42.534614,3.522382 44.518818,5.5065864 44.518818,7.9712747 L 44.518818,26.284527 C 44.518818,28.749215 42.534614,30.733419 40.069925,30.733419 L 40.12547,30.825587 C 40.12547,36.068651 27.542104,42.285441 31.43695,38.315685 C 35.331819,34.345929 33.544872,30.733419 33.544872,30.733419 z "
+ id="path2934"
+ sodipodi:nodetypes="ccccccccc"
+ inkscape:export-filename="/home/sak/wip/gsubtitles/path3001.png"
+ inkscape:export-xdpi="90"
+ inkscape:export-ydpi="90" />
+ <path
+ style="fill:url(#linearGradient3658);fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dashoffset:0;stroke-opacity:1"
+ d="M 7.541031,5.5062467 L 39.973564,5.5062467 C 41.243662,5.5062467 42.266149,6.5287452 42.266149,7.7988432 L 42.266149,11.532247 C 42.266149,12.802345 34.097278,14.370115 29.12159,14.656693 C 24.145901,14.94327 5.2484462,12.802345 5.2484462,11.532247 L 5.2484462,7.7988432 C 5.2484462,6.5287452 6.2709447,5.5062467 7.541031,5.5062467 z "
+ id="path2946"
+ sodipodi:nodetypes="cccczccc"
+ inkscape:export-xdpi="90"
+ inkscape:export-ydpi="90" />
+ <rect
+ ry="0.065390877"
+ rx="0.17479347"
+ y="17.011066"
+ x="11.071433"
+ height="1"
+ width="25.371679"
+ id="rect2791"
+ style="color:#000000;fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1;stroke-linecap:round;stroke-linejoin:round;marker:none;marker-start:none;marker-mid:none;marker-end:none;stroke-miterlimit:4;stroke-dashoffset:0;stroke-opacity:0.08187136;visibility:visible;display:block;overflow:visible"
+ inkscape:export-filename="/home/sak/wip/gsubtitles/path3001.png"
+ inkscape:export-xdpi="90"
+ inkscape:export-ydpi="90" />
+ <rect
+ ry="0.065390877"
+ rx="0.17479347"
+ y="19.986227"
+ x="11.071433"
+ height="1"
+ width="25.371679"
+ id="rect2793"
+ style="color:#000000;fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1;stroke-linecap:round;stroke-linejoin:round;marker:none;marker-start:none;marker-mid:none;marker-end:none;stroke-miterlimit:4;stroke-dashoffset:0;stroke-opacity:0.08187136;visibility:visible;display:block;overflow:visible"
+ inkscape:export-filename="/home/sak/wip/gsubtitles/path3001.png"
+ inkscape:export-xdpi="90"
+ inkscape:export-ydpi="90" />
+ <rect
+ ry="0.065390877"
+ rx="0.17479347"
+ y="22.927456"
+ x="11.071433"
+ height="1"
+ width="25.371679"
+ id="rect2795"
+ style="color:#000000;fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1;stroke-linecap:round;stroke-linejoin:round;marker:none;marker-start:none;marker-mid:none;marker-end:none;stroke-miterlimit:4;stroke-dashoffset:0;stroke-opacity:0.08187136;visibility:visible;display:block;overflow:visible"
+ inkscape:export-filename="/home/sak/wip/gsubtitles/path3001.png"
+ inkscape:export-xdpi="90"
+ inkscape:export-ydpi="90" />
+ <rect
+ ry="0.065390877"
+ rx="0.078657083"
+ y="26.011539"
+ x="18.048643"
+ height="1"
+ width="11.41726"
+ id="rect2797"
+ style="color:#000000;fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1;stroke-linecap:round;stroke-linejoin:round;marker:none;marker-start:none;marker-mid:none;marker-end:none;stroke-miterlimit:4;stroke-dashoffset:0;stroke-opacity:0.08187136;visibility:visible;display:block;overflow:visible"
+ inkscape:export-filename="/home/sak/wip/gsubtitles/path3001.png"
+ inkscape:export-xdpi="90"
+ inkscape:export-ydpi="90" />
+ </g>
+</svg>
diff --git a/gnome-subtitles.mdp b/gnome-subtitles.mdp
index 0775ebd..9312a02 100644
--- a/gnome-subtitles.mdp
+++ b/gnome-subtitles.mdp
@@ -36,7 +36,6 @@
<File subtype="Code" buildaction="Compile" name="src/GnomeSubtitles/Dialog/GladeDialog.cs" />
<File subtype="Code" buildaction="Compile" name="src/GnomeSubtitles/Dialog/HeadersDialog.cs" />
<File subtype="Code" buildaction="Compile" name="src/GnomeSubtitles/Dialog/SearchDialog.cs" />
- <File subtype="Code" buildaction="EmbedAsResource" name="data/gnome-subtitles.png" />
<File subtype="Code" buildaction="EmbedAsResource" name="data/gnome-subtitles-logo.png" />
<File subtype="Code" buildaction="Compile" name="src/GnomeSubtitles/Dialog/TimingsAdjustDialog.cs" />
<File subtype="Code" buildaction="Compile" name="src/GnomeSubtitles/Dialog/FileOpenDialog.cs" />
@@ -261,6 +260,7 @@
<File subtype="Code" buildaction="Compile" name="src/GnomeSubtitles/Core/Command/MergeSubtitlesCommand.cs" />
<File subtype="Code" buildaction="Compile" name="src/SubLib/Exceptions/FileTooLargeException.cs" />
<File subtype="Code" buildaction="Compile" name="src/GnomeSubtitles/Ui/Edit/SubtitleEditTextViewMargin.cs" />
+ <File subtype="Code" buildaction="EmbedAsResource" name="data/gnome-subtitles.svg" />
</Contents>
<References>
<ProjectReference type="Gac" localcopy="True" refto="Mono.Posix, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756" />
diff --git a/src/GnomeSubtitles/Ui/MainUi.cs b/src/GnomeSubtitles/Ui/MainUi.cs
index 19adc4e..369444d 100644
--- a/src/GnomeSubtitles/Ui/MainUi.cs
+++ b/src/GnomeSubtitles/Ui/MainUi.cs
@@ -44,7 +44,7 @@ public class MainUi {
/* Constant strings */
private const string gladeFilename = "MainWindow.glade";
- private const string iconFilename = "gnome-subtitles.png";
+ private const string iconFilename = "gnome-subtitles.svg";
public MainUi (EventHandlers handlers, out Glade.XML glade) {
glade = new Glade.XML(null, gladeFilename, null, Base.ExecutionContext.TranslationDomain);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]