Commit 3a7f344540b82919e454477e740640db512762ba
1 parent
18df8e02
Exists in
master
and in
68 other branches
ENC: Different icons for windows+linux and macos
Showing
1 changed file
with
11 additions
and
2 deletions
Show diff stats
invesalius/gui/task_exporter.py
@@ -129,11 +129,20 @@ class InnerTaskPanel(wx.Panel): | @@ -129,11 +129,20 @@ class InnerTaskPanel(wx.Panel): | ||
129 | 129 | ||
130 | 130 | ||
131 | # Image(s) for buttons | 131 | # Image(s) for buttons |
132 | - BMP_EXPORT_SURFACE = wx.Bitmap("../icons/surface_export.png", | 132 | + if sys.platform == 'darwin': |
133 | + BMP_EXPORT_SURFACE = wx.Bitmap(\ | ||
134 | + "../icons/surface_export_original.png", | ||
135 | + wx.BITMAP_TYPE_PNG) | ||
136 | + BMP_TAKE_PICTURE = wx.Bitmap(\ | ||
137 | + "../icons/tool_photo_original.png", | ||
138 | + wx.BITMAP_TYPE_PNG) | ||
139 | + else: | ||
140 | + BMP_EXPORT_SURFACE = wx.Bitmap("../icons/surface_export.png", | ||
133 | wx.BITMAP_TYPE_PNG) | 141 | wx.BITMAP_TYPE_PNG) |
134 | - BMP_TAKE_PICTURE = wx.Bitmap("../icons/tool_photo_original.png", | 142 | + BMP_TAKE_PICTURE = wx.Bitmap("../icons/tool_photo.png", |
135 | wx.BITMAP_TYPE_PNG) | 143 | wx.BITMAP_TYPE_PNG) |
136 | 144 | ||
145 | + | ||
137 | bmp_list = [BMP_TAKE_PICTURE, BMP_EXPORT_SURFACE] | 146 | bmp_list = [BMP_TAKE_PICTURE, BMP_EXPORT_SURFACE] |
138 | for bmp in bmp_list: | 147 | for bmp in bmp_list: |
139 | bmp.SetWidth(25) | 148 | bmp.SetWidth(25) |