[kde-doc-english] [kstars] kstars: Adding an FOV-symbol icon for the FOV symbols toolbar button

Akarsh Simha akarsh at kde.org
Tue May 3 07:27:24 UTC 2016


Git commit e35bceff3ead6038e22214437914e8b78b074e9b by Akarsh Simha.
Committed on 03/05/2016 at 07:27.
Pushed by asimha into branch 'master'.

Adding an FOV-symbol icon for the FOV symbols toolbar button

GUI:

A  +-    --    kstars/icons/22-actions-kstars_fov.png
A  +-    --    kstars/icons/32-actions-kstars_fov.png
A  +-    --    kstars/icons/48-actions-kstars_fov.png
A  +-    --    kstars/icons/64-actions-kstars_fov.png
M  +4    -0    kstars/icons/CMakeLists.txt
A  +112  -0    kstars/icons/sc-actions-kstars_fov.svg
M  +1    -1    kstars/kstarsinit.cpp

http://commits.kde.org/kstars/e35bceff3ead6038e22214437914e8b78b074e9b

diff --git a/kstars/icons/22-actions-kstars_fov.png b/kstars/icons/22-actions-kstars_fov.png
new file mode 100644
index 0000000..a93af18
Binary files /dev/null and b/kstars/icons/22-actions-kstars_fov.png differ
diff --git a/kstars/icons/32-actions-kstars_fov.png b/kstars/icons/32-actions-kstars_fov.png
new file mode 100644
index 0000000..9b4a037
Binary files /dev/null and b/kstars/icons/32-actions-kstars_fov.png differ
diff --git a/kstars/icons/48-actions-kstars_fov.png b/kstars/icons/48-actions-kstars_fov.png
new file mode 100644
index 0000000..895c096
Binary files /dev/null and b/kstars/icons/48-actions-kstars_fov.png differ
diff --git a/kstars/icons/64-actions-kstars_fov.png b/kstars/icons/64-actions-kstars_fov.png
new file mode 100644
index 0000000..41e1bd7
Binary files /dev/null and b/kstars/icons/64-actions-kstars_fov.png differ
diff --git a/kstars/icons/CMakeLists.txt b/kstars/icons/CMakeLists.txt
index 3eadcae..81abbf2 100644
--- a/kstars/icons/CMakeLists.txt
+++ b/kstars/icons/CMakeLists.txt
@@ -24,6 +24,7 @@ ecm_install_icons(ICONS
 22-actions-kstars_ekos_focus.png
 22-actions-kstars_ekos_align.png
 22-actions-kstars_ekos_guide.png
+22-actions-kstars_fov.png
 32-actions-kstars_clines.png
 32-actions-kstars_cnames.png
 32-actions-kstars_constellationart.png
@@ -47,6 +48,7 @@ ecm_install_icons(ICONS
 32-actions-kstars_ekos_focus.png
 32-actions-kstars_ekos_align.png
 32-actions-kstars_ekos_guide.png
+32-actions-kstars_fov.png
 48-actions-kstars_clines.png
 48-actions-kstars_cnames.png
 48-actions-kstars_constellationart.png
@@ -70,6 +72,7 @@ ecm_install_icons(ICONS
 48-actions-kstars_ekos_focus.png
 48-actions-kstars_ekos_align.png
 48-actions-kstars_ekos_guide.png
+48-actions-kstars_fov.png
 64-actions-kstars_advanced.png
 64-actions-kstars_catalog.png
 64-actions-kstars_cbound.png
@@ -100,6 +103,7 @@ ecm_install_icons(ICONS
 64-actions-kstars_ekos_focus.png
 64-actions-kstars_ekos_align.png
 64-actions-kstars_ekos_guide.png
+64-actions-kstars_fov.png
 
 DESTINATION
 ${KDE_INSTALL_ICONDIR} THEME hicolor)
diff --git a/kstars/icons/sc-actions-kstars_fov.svg b/kstars/icons/sc-actions-kstars_fov.svg
new file mode 100644
index 0000000..8c90712
--- /dev/null
+++ b/kstars/icons/sc-actions-kstars_fov.svg
@@ -0,0 +1,112 @@
+<?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://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"
+   width="64px"
+   height="64px"
+   id="svg2493"
+   sodipodi:version="0.32"
+   inkscape:version="0.91 r13725"
+   sodipodi:docname="sc-actions-kstars_fov.svg"
+   inkscape:output_extension="org.inkscape.output.svg.inkscape"
+   version="1.1"
+   inkscape:export-filename="/home/akarsh/devel/kde-devel/src/kstars/kstars/icons/64-actions-kstars_fov.png"
+   inkscape:export-xdpi="90"
+   inkscape:export-ydpi="90">
+  <defs
+     id="defs2495">
+    <linearGradient
+       id="linearGradient3764">
+      <stop
+         style="stop-color:#ffffb7;stop-opacity:1;"
+         offset="0"
+         id="stop3766" />
+      <stop
+         id="stop3772"
+         offset="0.5"
+         style="stop-color:#f4e55b;stop-opacity:1;" />
+      <stop
+         style="stop-color:#ea9a00;stop-opacity:1;"
+         offset="1"
+         id="stop3768" />
+    </linearGradient>
+  </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="18.84039"
+     inkscape:cy="31.41228"
+     inkscape:current-layer="layer1"
+     showgrid="true"
+     inkscape:document-units="px"
+     inkscape:grid-bbox="true"
+     inkscape:window-width="1172"
+     inkscape:window-height="735"
+     inkscape:window-x="0"
+     inkscape:window-y="0"
+     inkscape:window-maximized="0" />
+  <metadata
+     id="metadata2498">
+    <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 />
+      </cc:Work>
+    </rdf:RDF>
+  </metadata>
+  <g
+     id="layer1"
+     inkscape:label="Layer 1"
+     inkscape:groupmode="layer">
+    <rect
+       style="fill:#000000;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none"
+       id="rect2501"
+       width="64"
+       height="64"
+       x="0"
+       y="-1.4210855e-14" />
+    <circle
+       style="fill:none;fill-rule:evenodd;stroke:#ff0000;stroke-width:3;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
+       id="path3359"
+       cx="32"
+       cy="32"
+       r="29.254822" />
+    <circle
+       style="fill:none;fill-rule:evenodd;stroke:#ff0000;stroke-width:3;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
+       id="path3359-0"
+       cx="32"
+       cy="32"
+       r="18.284262" />
+    <path
+       style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:2.5;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
+       d="M 0.91944287,32 63.080557,32"
+       id="path4187"
+       inkscape:connector-curvature="0" />
+    <path
+       style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:2.5;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
+       d="M 32,63.217157 32,0.78284281"
+       id="path4189"
+       inkscape:connector-curvature="0" />
+    <circle
+       style="fill:none;fill-rule:evenodd;stroke:#ff0000;stroke-width:3;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
+       id="path3359-6"
+       cx="32"
+       cy="32"
+       r="7.3137054" />
+  </g>
+</svg>
diff --git a/kstars/kstarsinit.cpp b/kstars/kstarsinit.cpp
index 7d1feba..81dbe62 100644
--- a/kstars/kstarsinit.cpp
+++ b/kstars/kstarsinit.cpp
@@ -345,7 +345,7 @@ void KStars::initActions() {
     fovActionMenu = actionCollection()->add<KActionMenu>("fovsymbols" );
     fovActionMenu->setText( i18n("&FOV Symbols" ) );
     fovActionMenu->setDelayed(false);
-    fovActionMenu->setIcon(QIcon::fromTheme("crosshairs"));
+    fovActionMenu->setIcon(QIcon::fromTheme("kstars_fov"));
     repopulateFOV();
 
     actionCollection()->addAction("geolocation", this, SLOT( slotGeoLocator() ) )



More information about the kde-doc-english mailing list