Commit 46e83a1bd356aba93f042cfadf6d14151e0d543c

Authored by Thiago Franco de Moraes
1 parent f53926e8
Exists in mactoolbar_bkp

changed the style of toolbar to not use gradient

Showing 1 changed file with 11 additions and 11 deletions   Show diff stats
invesalius/gui/frame.py
... ... @@ -29,7 +29,7 @@ from wx.lib.pubsub import pub as Publisher
29 29 import wx.lib.agw.toasterbox as TB
30 30 import wx.lib.popupctl as pc
31 31  
32   -from wx.lib.agw.aui.auibar import AuiToolBar
  32 +from wx.lib.agw.aui.auibar import AuiToolBar, AUI_TB_PLAIN_BACKGROUND
33 33  
34 34 import constants as const
35 35 import default_tasks as tasks
... ... @@ -887,10 +887,10 @@ class ProjectToolBar(AuiToolBar):
887 887 open, save and saveas, among others.
888 888 """
889 889 def __init__(self, parent):
890   - style = wx.TB_FLAT|wx.TB_NODIVIDER| wx.TB_DOCKABLE
  890 + style = AUI_TB_PLAIN_BACKGROUND
891 891 AuiToolBar.__init__(self, parent, -1, wx.DefaultPosition,
892 892 wx.DefaultSize,
893   - style)
  893 + agwStyle=style)
894 894 self.SetToolBitmapSize(wx.Size(32,32))
895 895  
896 896 self.parent = parent
... ... @@ -1024,9 +1024,9 @@ class ObjectToolBar(AuiToolBar):
1024 1024 move, rotate, brightness/contrast, etc.
1025 1025 """
1026 1026 def __init__(self, parent):
1027   - style = wx.TB_FLAT|wx.TB_NODIVIDER | wx.TB_DOCKABLE
  1027 + style = AUI_TB_PLAIN_BACKGROUND
1028 1028 AuiToolBar.__init__(self, parent, -1, wx.DefaultPosition,
1029   - wx.DefaultSize, style)
  1029 + wx.DefaultSize, agwStyle=style)
1030 1030  
1031 1031 self.SetToolBitmapSize(wx.Size(32,32))
1032 1032  
... ... @@ -1265,10 +1265,10 @@ class SliceToolBar(AuiToolBar):
1265 1265 intersection reference and scroll slices.
1266 1266 """
1267 1267 def __init__(self, parent):
1268   - style = wx.TB_FLAT|wx.TB_NODIVIDER | wx.TB_DOCKABLE
  1268 + style = AUI_TB_PLAIN_BACKGROUND
1269 1269 AuiToolBar.__init__(self, parent, -1, wx.DefaultPosition,
1270 1270 wx.DefaultSize,
1271   - style)
  1271 + agwStyle=style)
1272 1272  
1273 1273 self.SetToolBitmapSize(wx.Size(32,32))
1274 1274  
... ... @@ -1406,10 +1406,10 @@ class LayoutToolBar(AuiToolBar):
1406 1406 e.g: show/hide task panel and show/hide text on viewers.
1407 1407 """
1408 1408 def __init__(self, parent):
1409   - style = wx.TB_FLAT|wx.TB_NODIVIDER | wx.TB_DOCKABLE
  1409 + style = AUI_TB_PLAIN_BACKGROUND
1410 1410 AuiToolBar.__init__(self, parent, -1, wx.DefaultPosition,
1411 1411 wx.DefaultSize,
1412   - style)
  1412 + agwStyle=style)
1413 1413  
1414 1414 self.SetToolBitmapSize(wx.Size(32,32))
1415 1415  
... ... @@ -1585,10 +1585,10 @@ class HistoryToolBar(AuiToolBar):
1585 1585 e.g: show/hide task panel and show/hide text on viewers.
1586 1586 """
1587 1587 def __init__(self, parent):
1588   - style = wx.TB_FLAT|wx.TB_NODIVIDER | wx.TB_DOCKABLE
  1588 + style = AUI_TB_PLAIN_BACKGROUND
1589 1589 AuiToolBar.__init__(self, parent, -1, wx.DefaultPosition,
1590 1590 wx.DefaultSize,
1591   - style)
  1591 + agwStyle=style)
1592 1592  
1593 1593 self.SetToolBitmapSize(wx.Size(32,32))
1594 1594  
... ...