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 | 129 | |
130 | 130 | |
131 | 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 | 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 | 143 | wx.BITMAP_TYPE_PNG) |
136 | 144 | |
145 | + | |
137 | 146 | bmp_list = [BMP_TAKE_PICTURE, BMP_EXPORT_SURFACE] |
138 | 147 | for bmp in bmp_list: |
139 | 148 | bmp.SetWidth(25) | ... | ... |