Added: New, more Unity like, icon.
authorTobias Schlitt <toby@php.net>
Wed, 19 Oct 2011 06:44:38 +0000 (08:44 +0200)
committerTobias Schlitt <toby@php.net>
Wed, 19 Oct 2011 06:44:38 +0000 (08:44 +0200)
This icon suites the Unity optics much better, although it is still not
perfect. Thx to @vovkkk for the SVG version, for which I postprocessed
the PNG export a bit in GIMP to make it look less blurry. Still: If
someone feels to make a better icon, feel welcome to suggest one.

indicator-chars.py
light16x16.png [new file with mode: 0644]
light16x16.svg [new file with mode: 0644]

index 3c57031..7111568 100755 (executable)
@@ -42,9 +42,10 @@ APP_VERSION = '0.1'
 
 class IndicatorChars:
     CHARS_PATH = os.getenv('HOME') + '/.indicator-chars'
+    SCRIPT_DIR = os.path.dirname(os.path.realpath(__file__))
 
     def __init__(self):
-        self.ind = appindicator.Indicator("Chars", "gnome-character-map", appindicator.CATEGORY_APPLICATION_STATUS)
+        self.ind = appindicator.Indicator("Chars", self.SCRIPT_DIR + '/light16x16.png', appindicator.CATEGORY_APPLICATION_STATUS)
         self.ind.set_status(appindicator.STATUS_ACTIVE)        
 
         self.update_menu()
diff --git a/light16x16.png b/light16x16.png
new file mode 100644 (file)
index 0000000..d18eae5
Binary files /dev/null and b/light16x16.png differ
diff --git a/light16x16.svg b/light16x16.svg
new file mode 100644 (file)
index 0000000..59a2a60
--- /dev/null
@@ -0,0 +1,41 @@
+<?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"
+   version="1.1"
+   width="16"
+   height="16"
+   id="svg4162">
+  <defs
+     id="defs4164" />
+  <metadata
+     id="metadata4167">
+    <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></dc:title>
+      </cc:Work>
+    </rdf:RDF>
+  </metadata>
+  <g
+     transform="matrix(0.71738007,0,0,0.71738007,-0.75106486,-28.758578)"
+     id="layer1">
+    <g
+       transform="matrix(1.6201332,0,0,1.6201332,-1048.3318,-1130.7607)"
+       id="text3054-3-4"
+       style="font-size:8.67984486px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#3c3c3c;fill-opacity:1;fill-rule:evenodd;stroke:none;display:inline;font-family:Ubuntu;-inkscape-font-specification:Ubuntu">
+      <path
+         d="m 656.9428,732.60943 c 0.19096,0 0.35877,-0.003 0.50344,-0.009 0.15044,-0.0116 0.27485,-0.0289 0.37323,-0.0521 l 0,-1.34538 c -0.0579,-0.0289 -0.15335,-0.0521 -0.28644,-0.0694 -0.1273,-0.0231 -0.28354,-0.0347 -0.46871,-0.0347 -0.12152,0 -0.25172,0.009 -0.39059,0.026 -0.13309,0.0174 -0.2575,0.055 -0.37323,0.11283 -0.10995,0.0521 -0.20254,0.12731 -0.27776,0.22568 -0.0752,0.0926 -0.11284,0.217 -0.11284,0.37323 0,0.28933 0.0926,0.49186 0.27776,0.60759 0.18517,0.10995 0.43688,0.16492 0.75514,0.16492 m -0.0694,-4.04481 c 0.32404,10e-6 0.59601,0.0434 0.8159,0.1302 0.22567,0.081 0.40506,0.19964 0.53815,0.35587 0.13888,0.15046 0.23725,0.33273 0.29512,0.54683 0.0579,0.20832 0.0868,0.43979 0.0868,0.69439 l 0,2.82095 c -0.0694,0.0116 -0.16781,0.0289 -0.29511,0.0521 -0.12152,0.0174 -0.2604,0.0347 -0.41663,0.0521 -0.15624,0.0174 -0.32695,0.0318 -0.51211,0.0434 -0.17939,0.0174 -0.35877,0.026 -0.53815,0.026 -0.25461,0 -0.48897,-0.026 -0.70307,-0.0781 -0.21411,-0.0521 -0.39928,-0.13309 -0.55551,-0.24304 -0.15624,-0.11573 -0.27776,-0.26618 -0.36455,-0.45135 -0.0868,-0.18517 -0.1302,-0.40795 -0.1302,-0.66835 0,-0.24882 0.0492,-0.46292 0.14755,-0.64231 0.10416,-0.17938 0.24304,-0.32404 0.41664,-0.43399 0.17359,-0.10994 0.37612,-0.19095 0.60759,-0.24303 0.23146,-0.0521 0.47449,-0.0781 0.7291,-0.0781 0.081,0 0.16492,0.006 0.25172,0.0174 0.0868,0.006 0.16781,0.0174 0.24303,0.0347 0.081,0.0116 0.15045,0.0231 0.20832,0.0347 0.0579,0.0116 0.0984,0.0203 0.12152,0.026 l 0,-0.22568 c 0,-0.13309 -0.0145,-0.26329 -0.0434,-0.39059 -0.0289,-0.13309 -0.081,-0.24882 -0.15624,-0.3472 -0.0752,-0.10415 -0.17938,-0.18516 -0.31247,-0.24303 -0.12731,-0.0637 -0.29512,-0.0955 -0.50343,-0.0955 -0.26619,0 -0.50054,0.0203 -0.70307,0.0608 -0.19674,0.0347 -0.3443,0.0723 -0.44267,0.11284 l -0.0955,-0.66835 c 0.10416,-0.0463 0.27775,-0.0897 0.52079,-0.1302 0.24303,-0.0463 0.50632,-0.0694 0.78987,-0.0694 m -0.3906,-2.1092 1.11102,1.3367 -0.40795,0.36455 -1.22386,-1.18914 0.52079,-0.51211 m -7.12259,-2.42414 10.311,0 c 0.51909,0 0.93698,0.41789 0.93698,0.93697 l 0,9.17459 c 0,0.51909 -0.41789,0.93698 -0.93698,0.93698 l -10.311,0 c -0.51909,0 -0.93698,-0.41789 -0.93698,-0.93698 l 0,-9.17459 c 0,-0.51908 0.41789,-0.93697 0.93698,-0.93697 z"
+         id="path3945-3"
+         style="fill:#dfdbd2;fill-opacity:1;fill-rule:evenodd" />
+    </g>
+  </g>
+</svg>