AGW Logo

svn SVN Revision 70555 For auibar

This file contains the SVN revision history for auibar, at revision 70555.

Available information include commit date, the name of the committer, the file size, the SVN log messages and a diff from the previous version (if available).


file_info File Information

  • Commit Date: 31-Mar-2009 15:36:51 UTC
  • Committer: AG
  • File Size: 132527 byte(s)

svn_log Log Messages

The following log message was entered by the committer:

  • GradientButton: applied patch from Werner and cleaned up a bit the useless parts of the code;
  • AuiToolBar/AuiDefaultDockArt: applied patch from Werner for default colour settings for AUI toolbars;
  • UltimateListCtrl: Fixed bug #13938. Also, don’t throw an error on key down if the list is empty.

svn_diff Diff To Previous Version (69982)

Version SVN diff:

--- wxPython/3rdParty/AGW/agw/aui/auibar.py 2011/12/11 09:15:20     69982
+++ wxPython/3rdParty/AGW/agw/aui/auibar.py 2012/02/09 20:52:26     70555
@@ -733,8 +733,8 @@

def __init__(self):
""" Default class constructor. """
-
-        self._base_colour = GetBaseColour()
+
+        self.SetDefaultColours()

self._agwFlags = 0
self._text_orientation = AUI_TBTOOL_TEXT_BOTTOM
@@ -745,16 +745,6 @@
self._gripper_size = 7
self._overflow_size = 16

-        darker1_colour = StepColour(self._base_colour, 85)
-        darker2_colour = StepColour(self._base_colour, 75)
-        darker3_colour = StepColour(self._base_colour, 60)
-        darker4_colour = StepColour(self._base_colour, 50)
-        darker5_colour = StepColour(self._base_colour, 40)
-
-        self._gripper_pen1 = wx.Pen(darker5_colour)
-        self._gripper_pen2 = wx.Pen(darker3_colour)
-        self._gripper_pen3 = wx.WHITE_PEN
-
button_dropdown_bits = "\xe0\xf1\xfb"
overflow_bits = "\x80\xff\x80\xc1\xe3\xf7"

@@ -767,6 +757,27 @@
self._font = wx.SystemSettings.GetFont(wx.SYS_DEFAULT_GUI_FONT)


+    def SetDefaultColours(self, base_colour=None):
+        """
+        Sets the default colours, which are calculated from the given base colour.
+
+        :param `base_colour`: an instance of `wx.Colour`. If defaulted to ``None``, a colour
+         is generated accordingly to the platform and theme.
+        """
+
+        if base_colour is None:
+            self._base_colour = GetBaseColour()
+        else:
+            self._base_colour = base_colour
+
+        darker3_colour = StepColour(self._base_colour, 60)
+        darker5_colour = StepColour(self._base_colour, 40)
+
+        self._gripper_pen1 = wx.Pen(darker5_colour)
+        self._gripper_pen2 = wx.Pen(darker3_colour)
+        self._gripper_pen3 = wx.WHITE_PEN
+
+
def Clone(self):
""" Clones the L{AuiToolBar} art. """
Tree

Table Of Contents

Previous topic

SVN Revision 69982 For auibar

Next topic

aui.auibook