Skip to content

Commit

Permalink
[processing] replace some raster icons with SVG to improve HiDPI supp…
Browse files Browse the repository at this point in the history
…ort (refs #14474)
  • Loading branch information
alexbruy committed Mar 25, 2016
1 parent 6f79610 commit 660bb27
Show file tree
Hide file tree
Showing 14 changed files with 698 additions and 6 deletions.
2 changes: 1 addition & 1 deletion python/plugins/processing/algs/gdal/GdalAlgorithm.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
class GdalAlgorithm(GeoAlgorithm):

def getIcon(self):
return QIcon(os.path.join(pluginPath, 'images', 'gdal.png'))
return QIcon(os.path.join(pluginPath, 'images', 'gdal.svg'))

def getCustomParametersDialog(self):
return GdalAlgorithmDialog(self)
Expand Down
2 changes: 1 addition & 1 deletion python/plugins/processing/algs/grass/GrassAlgorithm.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def getCopy(self):
return newone

def getIcon(self):
return QIcon(os.path.join(pluginPath, 'images', 'grass.png'))
return QIcon(os.path.join(pluginPath, 'images', 'grass.svg'))

def help(self):
return False, 'http://grass.osgeo.org/grass64/manuals/' + self.grassName + '.html'
Expand Down
2 changes: 1 addition & 1 deletion python/plugins/processing/algs/grass7/Grass7Algorithm.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def getCopy(self):
return newone

def getIcon(self):
return QIcon(os.path.join(pluginPath, 'images', 'grass.png'))
return QIcon(os.path.join(pluginPath, 'images', 'grass.svg'))

def help(self):
localDoc = None
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ class QGISAlgorithmProvider(AlgorithmProvider):

def __init__(self):
AlgorithmProvider.__init__(self)
self._icon = QIcon(os.path.join(pluginPath, 'images', 'qgis.png'))
self._icon = QIcon(os.path.join(pluginPath, 'images', 'qgis.svg'))

self.alglist = [SumLines(), PointsInPolygon(),
PointsInPolygonWeighted(), PointsInPolygonUnique(),
Expand Down
2 changes: 1 addition & 1 deletion python/plugins/processing/algs/r/RAlgorithm.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def __init__(self, descriptionFile, script=None):
self.defineCharacteristicsFromFile()

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

def defineCharacteristicsFromScript(self):
lines = self.script.split('\n')
Expand Down
2 changes: 1 addition & 1 deletion python/plugins/processing/images/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FILE(GLOB IMAGE_FILES *.png *.gif)
FILE(GLOB IMAGE_FILES *.png *.gif *.svg)

ADD_SUBDIRECTORY(ftools)
ADD_SUBDIRECTORY(gdaltools)
Expand Down
Binary file removed python/plugins/processing/images/gdal.png
Binary file not shown.
126 changes: 126 additions & 0 deletions python/plugins/processing/images/gdal.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed python/plugins/processing/images/grass.png
Binary file not shown.
Loading

0 comments on commit 660bb27

Please sign in to comment.