AGW Logo

svn SVN Revision 70555 For dockart

This file contains the SVN revision history for dockart, 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: 45477 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 (69294)

Version SVN diff:

--- wxPython/3rdParty/AGW/agw/aui/dockart.py        2011/10/02 19:32:45     69294
+++ wxPython/3rdParty/AGW/agw/aui/dockart.py        2012/02/09 20:52:26     70555
@@ -180,14 +180,7 @@
def Init(self):
""" Initializes the dock art. """

-        base_colour = GetBaseColour()
-        darker1_colour = StepColour(base_colour, 85)
-        darker2_colour = StepColour(base_colour, 75)
-        darker3_colour = StepColour(base_colour, 60)
-        darker4_colour = StepColour(base_colour, 40)
-
-        self._background_colour = base_colour
-        self._background_gradient_colour = StepColour(base_colour, 180)
+        self.SetDefaultColours()

isMac = wx.Platform == "__WXMAC__"

@@ -198,10 +191,31 @@

self._active_caption_gradient_colour = LightContrastColour(wx.SystemSettings.GetColour(wx.SYS_COLOUR_HIGHLIGHT))
self._active_caption_text_colour = wx.SystemSettings.GetColour(wx.SYS_COLOUR_HIGHLIGHTTEXT)
-        self._inactive_caption_colour = darker1_colour
-        self._inactive_caption_gradient_colour = StepColour(base_colour, 97)
self._inactive_caption_text_colour = wx.BLACK

+
+    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:
+            base_colour = GetBaseColour()
+
+        darker1_colour = StepColour(base_colour, 85)
+        darker2_colour = StepColour(base_colour, 75)
+        darker3_colour = StepColour(base_colour, 60)
+        darker4_colour = StepColour(base_colour, 40)
+
+        self._background_colour = base_colour
+        self._background_gradient_colour = StepColour(base_colour, 180)
+
+        self._inactive_caption_colour = darker1_colour
+        self._inactive_caption_gradient_colour = StepColour(base_colour, 97)
+
self._sash_brush = wx.Brush(base_colour)
self._background_brush = wx.Brush(base_colour)
self._border_pen = wx.Pen(darker2_colour)
Tree

Table Of Contents

Previous topic

SVN Revision 69294 For dockart

Next topic

aui.framemanager