Skip to content

Commit

Permalink
Update icon to fit QGIS theme, rename and apply to ConcaveHull also
Browse files Browse the repository at this point in the history
- Based colours and sizes on mAlgorithmDelaunay.svg
- Renamed from mAlgorithmKNearestConcaveHull.svg to mAlgorithmConcaveHull.svg to be more general
- Applied to ConcaveHull.py also to indicate similarity between algorithms
  • Loading branch information
rudivs committed Sep 14, 2018
1 parent cef34c5 commit 5076fb6
Show file tree
Hide file tree
Showing 5 changed files with 143 additions and 167 deletions.
2 changes: 1 addition & 1 deletion images/images.qrc
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
<file>themes/default/algorithms/mAlgorithmExtractVertices.svg</file>
<file>themes/default/algorithms/mAlgorithmExtractLayerExtent.svg</file>
<file>themes/default/algorithms/mAlgorithmIntersect.svg</file>
<file>themes/default/algorithms/mAlgorithmKNearestConcaveHull.svg</file>
<file>themes/default/algorithms/mAlgorithmConcaveHull.svg</file>
<file>themes/default/algorithms/mAlgorithmLineIntersections.svg</file>
<file>themes/default/algorithms/mAlgorithmLineToPolygon.svg</file>
<file>themes/default/algorithms/mAlgorithmMeanCoordinates.svg</file>
Expand Down
134 changes: 134 additions & 0 deletions images/themes/default/algorithms/mAlgorithmConcaveHull.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
164 changes: 0 additions & 164 deletions images/themes/default/algorithms/mAlgorithmKNearestConcaveHull.svg

This file was deleted.

6 changes: 6 additions & 0 deletions python/plugins/processing/algs/qgis/ConcaveHull.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,12 @@ def name(self):
def displayName(self):
return self.tr('Concave hull (using alpha shapes algorithm)')

def icon(self):
return QgsApplication.getThemeIcon("/algorithms/mAlgorithmConcaveHull.svg")

def svgIconPath(self):
return QgsApplication.iconPath("/algorithms/mAlgorithmConcaveHull.svg")

def processAlgorithm(self, parameters, context, feedback):
layer = self.parameterAsSource(parameters, ConcaveHull.INPUT, context)
if layer is None:
Expand Down
4 changes: 2 additions & 2 deletions python/plugins/processing/algs/qgis/KNearestConcaveHull.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,10 @@ def displayName(self):
return self.tr('Concave hull (using k-nearest neighbour algorithm)')

def icon(self):
return QgsApplication.getThemeIcon("/algorithms/mAlgorithmKNearestConcaveHull.svg")
return QgsApplication.getThemeIcon("/algorithms/mAlgorithmConcaveHull.svg")

def svgIconPath(self):
return QgsApplication.iconPath("/algorithms/mAlgorithmKNearestConcaveHull.svg")
return QgsApplication.iconPath("/algorithms/mAlgorithmConcaveHull.svg")

def group(self):
return self.tr('Vector geometry')
Expand Down

0 comments on commit 5076fb6

Please sign in to comment.