Added an icon for the new sidebars layout. eric7

Sat, 11 Sep 2021 12:54:18 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 11 Sep 2021 12:54:18 +0200
branch
eric7
changeset 104
2ae9ad969598
parent 103
2941bf2090a7
child 105
44bfd9e7e65e

Added an icon for the new sidebars layout.

.hgignore file | annotate | diff | comparison | revisions
ChangeLog file | annotate | diff | comparison | revisions
PKGLIST file | annotate | diff | comparison | revisions
PluginTimeTracker.py file | annotate | diff | comparison | revisions
PluginTimeTracker.zip file | annotate | diff | comparison | revisions
TimeTracker/TimeTracker.py file | annotate | diff | comparison | revisions
TimeTracker/icons/sbTimeTracker96.svg file | annotate | diff | comparison | revisions
--- a/.hgignore	Fri Aug 20 12:24:49 2021 +0200
+++ b/.hgignore	Sat Sep 11 12:54:18 2021 +0200
@@ -2,6 +2,7 @@
 glob:.eric6project
 glob:.ropeproject
 glob:.directory
+glob:.jedi
 glob:**.pyc
 glob:**.pyo
 glob:**.orig
--- a/ChangeLog	Fri Aug 20 12:24:49 2021 +0200
+++ b/ChangeLog	Sat Sep 11 12:54:18 2021 +0200
@@ -1,5 +1,8 @@
 ChangeLog
 ---------
+Version 1.0.1:
+- added an icon for the new sidebars layout
+
 Version 1.0.0:
 - first release of the eric7 variant
 
--- a/PKGLIST	Fri Aug 20 12:24:49 2021 +0200
+++ b/PKGLIST	Sat Sep 11 12:54:18 2021 +0200
@@ -17,3 +17,4 @@
 TimeTracker/i18n/timetracker_ru.qm
 TimeTracker/icons/clock-dark.svg
 TimeTracker/icons/clock-light.svg
+TimeTracker/icons/sbTimeTracker96.svg
--- a/PluginTimeTracker.py	Fri Aug 20 12:24:49 2021 +0200
+++ b/PluginTimeTracker.py	Sat Sep 11 12:54:18 2021 +0200
@@ -22,7 +22,7 @@
 author = "Detlev Offenbach <detlev@die-offenbachs.de>"
 autoactivate = True
 deactivateable = True
-version = "1.0.0"
+version = "1.0.1"
 className = "TimeTrackerPlugin"
 packageName = "TimeTracker"
 shortDescription = "Time Tracker to keep track of the project time."
Binary file PluginTimeTracker.zip has changed
--- a/TimeTracker/TimeTracker.py	Fri Aug 20 12:24:49 2021 +0200
+++ b/TimeTracker/TimeTracker.py	Sat Sep 11 12:54:18 2021 +0200
@@ -66,11 +66,14 @@
         from .TimeTrackerWidget import TimeTrackerWidget
         
         self.__widget = TimeTrackerWidget(self)
+        if self.__ui.getLayoutType() == "Sidebars":
+            iconName = "sbTimeTracker96"
+        else:
+            iconName = "clock-{0}".format(self.__iconSuffix)
         self.__ui.addSideWidget(
             self.__ui.BottomSide, self.__widget,
             UI.PixmapCache.getIcon(
-                os.path.join("TimeTracker", "icons",
-                             "clock-{0}".format(self.__iconSuffix))
+                os.path.join("TimeTracker", "icons", iconName)
             ),
             self.tr("Time Tracker"))
         
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/TimeTracker/icons/sbTimeTracker96.svg	Sat Sep 11 12:54:18 2021 +0200
@@ -0,0 +1,64 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<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"
+   version="1.1"
+   viewBox="0 0 96 96"
+   id="svg8"
+   sodipodi:docname="sbTimeTracker96.svg"
+   width="96"
+   height="96"
+   inkscape:version="1.0.2 (e86c870879, 2021-01-15)">
+  <metadata
+     id="metadata12">
+    <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>
+  <sodipodi:namedview
+     pagecolor="#ffffff"
+     bordercolor="#666666"
+     borderopacity="1"
+     objecttolerance="10"
+     gridtolerance="10"
+     guidetolerance="10"
+     inkscape:pageopacity="0"
+     inkscape:pageshadow="2"
+     inkscape:window-width="1385"
+     inkscape:window-height="1030"
+     id="namedview10"
+     showgrid="false"
+     inkscape:zoom="5.7452426"
+     inkscape:cx="40.75137"
+     inkscape:cy="35.626716"
+     inkscape:window-x="0"
+     inkscape:window-y="0"
+     inkscape:window-maximized="0"
+     inkscape:current-layer="svg8" />
+  <defs
+     id="defs4">
+    <style
+       type="text/css"
+       id="style2">.ColorScheme-Text {
+        color:#eff0f1;
+      }</style>
+  </defs>
+  <path
+     class="ColorScheme-Text"
+     d="M 48,6 C 24.732,6 6,24.732 6,48 6,71.268 24.732,90 48,90 71.268,90 90,71.268 90,48 90,24.732 71.268,6 48,6 m 0,5.25 C 68.3595,11.25 84.75,27.6405 84.75,48 84.75,68.3595 68.3595,84.75 48,84.75 27.6405,84.75 11.25,68.3595 11.25,48 11.25,27.6405 27.6405,11.25 48,11.25 m -5.25,5.25 v 36.75 h 31.5 V 48 H 48 V 16.5 h -5.25"
+     color="#eff0f1"
+     fill="currentColor"
+     id="path6"
+     style="stroke-width:4.2" />
+</svg>

eric ide

mercurial