Skip to content

Commit eea52b1

Browse files
committed
Replace deprecated icon files with new SVG icons for selection tools
1 parent 58e9776 commit eea52b1

File tree

7 files changed

+118
-2
lines changed

7 files changed

+118
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ In this release, test coverage is 80%.
1414
* When dealing with non-linear scales, PlotPy provides an alternative solution: the user may rely on `XYImageItem` (e.g. by using `make.xyimage`) as this item supports arbitrary X and Y pixel coordinates
1515
* [Issue #34](https://github.com/PlotPyStack/PlotPy/issues/34) - `ValueError` when trying to plot 2D histogram items with `PyQt6`
1616

17+
Other changes:
18+
19+
* Replace deprecated icon files with new SVG icons for selection tools
20+
1721
## Version 2.7.2 ##
1822

1923
🛠️ Bug fixes:
-823 Bytes
Binary file not shown.

plotpy/data/icons/select.svg

Lines changed: 49 additions & 0 deletions
Loading

plotpy/data/icons/select_area.svg

Lines changed: 63 additions & 0 deletions
Loading

plotpy/data/icons/selection.png

-518 Bytes
Binary file not shown.

plotpy/tools/plot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ def setup_context_menu(self, menu, plot):
224224
class RectangularSelectionTool(RectangularActionTool):
225225
SWITCH_TO_DEFAULT_TOOL = True
226226
TITLE = _("Rectangular selection tool")
227-
ICON = "rectangular_select.png"
227+
ICON = "select_area.svg"
228228

229229
def __init__(self, manager, intersect=True, toolbar_id=DefaultToolbarID):
230230
super().__init__(

plotpy/tools/selection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class SelectTool(InteractiveTool):
3232
"""
3333

3434
TITLE = _("Selection")
35-
ICON = "selection.png"
35+
ICON = "select.svg"
3636
CURSOR = QC.Qt.CursorShape.ArrowCursor
3737

3838
def setup_filter(self, baseplot: BasePlot) -> int:

0 commit comments

Comments
 (0)