Skip to content

Commit 8bb748f

Browse files
committed
use svg rather than png icons
1 parent 0d38268 commit 8bb748f

File tree

10 files changed

+10
-7
lines changed

10 files changed

+10
-7
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PLUGINNAME = datetimetools
22
PLUGINS = "$(HOME)"/AppData/Roaming/QGIS/QGIS3/profiles/default/python/plugins/$(PLUGINNAME)
33
PY_FILES = datetimetools.py __init__.py conversionDialog.py captureCoordinate.py jdcal.py util.py wintz.py
4-
EXTRAS = metadata.txt
4+
EXTRAS = metadata.txt icon.png
55

66
deploy:
77
mkdir -p $(PLUGINS)

conversionDialog.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,10 @@ def __init__(self, iface, parent):
7474
self.timezoneComboBox.currentIndexChanged.connect(self.timezone_changed)
7575

7676
self.dateEdit.setCalendarPopup(True)
77-
self.coordCaptureButton.setIcon(QIcon(os.path.dirname(__file__) + "/images/coordinate_capture.png"))
78-
self.currentDateTimeButton.setIcon(QIcon(os.path.dirname(__file__) + "/images/dateTime.png"))
77+
self.coordCaptureButton.setIcon(QIcon(os.path.dirname(__file__) + "/images/coordCapture.svg"))
78+
self.currentDateTimeButton.setIcon(QIcon(os.path.dirname(__file__) + "/images/dateTime.svg"))
7979

80-
icon = QIcon(os.path.dirname(__file__) + "/images/check.png")
80+
icon = QIcon(':/images/themes/default/algorithms/mAlgorithmCheckGeometry.svg')
8181
self.epochCommitButton.setIcon(icon)
8282
self.epochmsCommitButton.setIcon(icon)
8383
self.julianCommitButton.setIcon(icon)

datetimetools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def __init__(self, iface):
3434

3535
def initGui(self):
3636
"""Create the menu & tool bar items within QGIS"""
37-
icon = QIcon(os.path.dirname(__file__) + "/images/dateTime.png")
37+
icon = QIcon(os.path.dirname(__file__) + "/images/dateTime.svg")
3838
self.conversionAction = QAction(icon, "Date/Time Conversion", self.iface.mainWindow())
3939
self.conversionAction.triggered.connect(self.showConversionDialog)
4040
self.conversionAction.setCheckable(False)

icon.png

2.73 KB
Loading

images/DateTime.svg

Lines changed: 1 addition & 0 deletions
Loading

images/check.png

-876 Bytes
Binary file not shown.

images/coordCapture.svg

Lines changed: 1 addition & 0 deletions
Loading

images/coordinate_capture.png

-694 Bytes
Binary file not shown.

images/dateTime.png

-1.13 KB
Binary file not shown.

metadata.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name=Date/Time Tools
33
qgisMinimumVersion=3.4
44
description=Conversion tools to display the local date, time, time zone, convert between UNIX time (Epoch), Julian dates, ISO8601, calculate the difference between two dates, select a location and time zone by clicking on the map and display the closet location and sun statistics.
5-
version=3.0.2
5+
version=3.0.3
66
author=C Hamilton
77
email=adenaculture@gmail.com
88
about=Conversion tools to display the local date, time, time zone, convert between UNIX time (Epoch), Julian dates, ISO8601, calculate the difference between two dates, select a location and time zone by clicking on the map and display the closet location and sun statistics.
@@ -11,10 +11,11 @@ repository=https://github.com/NationalSecurityAgency/qgis-datetimetools-plugin
1111
tags=time,conversion,sun,moon
1212
homepage=https://github.com/NationalSecurityAgency/qgis-datetimetools-plugin
1313
category=Plugins
14-
icon=icons/dateTime.png
14+
icon=icon.png
1515
experimental=False
1616
deprecated=False
1717
changelog=
18+
3.0.3 - Use SVG icons
1819
3.0.2 - Bug fix
1920
3.0.1 - Show time zone polygon
2021
3.0.0 - First release

0 commit comments

Comments
 (0)