Commit 6392b159e2d8e275dd552ebd6080770df4d6b40a

Authored by Paulo Henrique Junqueira Amorim
1 parent de9a54aa

FIX: Text layout icon turning gray when disabled

.gitattributes
@@ -84,6 +84,7 @@ icons/splash_es.png -text @@ -84,6 +84,7 @@ icons/splash_es.png -text
84 icons/splash_pt.png -text 84 icons/splash_pt.png -text
85 icons/surface_export.png -text 85 icons/surface_export.png -text
86 icons/surface_export_original.png -text 86 icons/surface_export_original.png -text
  87 +icons/text.gif -text
87 icons/text.png -text 88 icons/text.png -text
88 icons/text_inverted.png -text 89 icons/text_inverted.png -text
89 icons/text_inverted_original.png -text 90 icons/text_inverted_original.png -text
icons/text.gif 0 → 100644

243 Bytes

invesalius/gui/frame.py
@@ -876,9 +876,8 @@ class LayoutToolBar(wx.ToolBar): @@ -876,9 +876,8 @@ class LayoutToolBar(wx.ToolBar):
876 self.BMP_WITH_MENU = wx.Bitmap(os.path.join(const.ICON_DIR, 876 self.BMP_WITH_MENU = wx.Bitmap(os.path.join(const.ICON_DIR,
877 "layout_full.gif"), 877 "layout_full.gif"),
878 wx.BITMAP_TYPE_GIF) 878 wx.BITMAP_TYPE_GIF)
879 - self.BMP_WITH_TEXT = wx.Bitmap(os.path.join(const.ICON_DIR,"text.png"))  
880 - self.BMP_WITHOUT_TEXT =\  
881 - wx.Bitmap(os.path.join(const.ICON_DIR,"text_inverted.png")) 879 + self.BMP_WITH_TEXT = wx.Bitmap(os.path.join(const.ICON_DIR,"text.gif"), wx.BITMAP_TYPE_GIF)
  880 + self.BMP_WITHOUT_TEXT = wx.Bitmap(os.path.join(const.ICON_DIR,"text_inverted.png"))
882 881
883 self.AddLabelTool(ID_LAYOUT, "",bitmap=self.BMP_WITHOUT_MENU, 882 self.AddLabelTool(ID_LAYOUT, "",bitmap=self.BMP_WITHOUT_MENU,
884 shortHelp= _("Hide task panel")) 883 shortHelp= _("Hide task panel"))