Skip to content

Commit 660bb27

Browse files
committedMar 25, 2016
[processing] replace some raster icons with SVG to improve HiDPI support (refs #14474)
1 parent 6f79610 commit 660bb27

File tree

14 files changed

+698
-6
lines changed

14 files changed

+698
-6
lines changed
 

‎python/plugins/processing/algs/gdal/GdalAlgorithm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
class GdalAlgorithm(GeoAlgorithm):
4242

4343
def getIcon(self):
44-
return QIcon(os.path.join(pluginPath, 'images', 'gdal.png'))
44+
return QIcon(os.path.join(pluginPath, 'images', 'gdal.svg'))
4545

4646
def getCustomParametersDialog(self):
4747
return GdalAlgorithmDialog(self)

‎python/plugins/processing/algs/grass/GrassAlgorithm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def getCopy(self):
9191
return newone
9292

9393
def getIcon(self):
94-
return QIcon(os.path.join(pluginPath, 'images', 'grass.png'))
94+
return QIcon(os.path.join(pluginPath, 'images', 'grass.svg'))
9595

9696
def help(self):
9797
return False, 'http://grass.osgeo.org/grass64/manuals/' + self.grassName + '.html'

‎python/plugins/processing/algs/grass7/Grass7Algorithm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def getCopy(self):
9898
return newone
9999

100100
def getIcon(self):
101-
return QIcon(os.path.join(pluginPath, 'images', 'grass.png'))
101+
return QIcon(os.path.join(pluginPath, 'images', 'grass.svg'))
102102

103103
def help(self):
104104
localDoc = None

‎python/plugins/processing/algs/qgis/QGISAlgorithmProvider.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ class QGISAlgorithmProvider(AlgorithmProvider):
153153

154154
def __init__(self):
155155
AlgorithmProvider.__init__(self)
156-
self._icon = QIcon(os.path.join(pluginPath, 'images', 'qgis.png'))
156+
self._icon = QIcon(os.path.join(pluginPath, 'images', 'qgis.svg'))
157157

158158
self.alglist = [SumLines(), PointsInPolygon(),
159159
PointsInPolygonWeighted(), PointsInPolygonUnique(),

‎python/plugins/processing/algs/r/RAlgorithm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def __init__(self, descriptionFile, script=None):
7575
self.defineCharacteristicsFromFile()
7676

7777
def getIcon(self):
78-
return QIcon(os.path.dirname(__file__) + '/../../images/r.png')
78+
return QIcon(os.path.dirname(__file__) + '/../../images/r.svg')
7979

8080
def defineCharacteristicsFromScript(self):
8181
lines = self.script.split('\n')

‎python/plugins/processing/images/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FILE(GLOB IMAGE_FILES *.png *.gif)
1+
FILE(GLOB IMAGE_FILES *.png *.gif *.svg)
22

33
ADD_SUBDIRECTORY(ftools)
44
ADD_SUBDIRECTORY(gdaltools)
-734 Bytes
Binary file not shown.
Lines changed: 126 additions & 0 deletions
Loading
-750 Bytes
Binary file not shown.

‎python/plugins/processing/images/grass.svg

Lines changed: 266 additions & 0 deletions
Loading
-785 Bytes
Binary file not shown.
Lines changed: 286 additions & 0 deletions
Loading
-829 Bytes
Binary file not shown.
Lines changed: 14 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)
Please sign in to comment.