[Commits] (alecf) some visual tweaks to the header area per bug 2870 and 2908

commits at osafoundation.org commits at osafoundation.org
Thu Apr 28 13:20:28 PDT 2005


Commit by: alecf
Modified files:
chandler/parcels/osaf/framework/blocks/calendar/CalendarCanvas.py 1.86 1.87

Log message:
some visual tweaks to the header area per bug 2870 and 2908
- fix minimum size on bitmap buttons so that the whole bitmaps are visible
- make the color selector smaller


Bugzilla links:
http://bugzilla.osafoundation.org/show_bug.cgi?id=2870
http://bugzilla.osafoundation.org/show_bug.cgi?id=2908

ViewCVS links:
http://cvs.osafoundation.org/index.cgi/chandler/parcels/osaf/framework/blocks/calendar/CalendarCanvas.py.diff?r1=text&tr1=1.86&r2=text&tr2=1.87

Index: chandler/parcels/osaf/framework/blocks/calendar/CalendarCanvas.py
diff -u chandler/parcels/osaf/framework/blocks/calendar/CalendarCanvas.py:1.86 chandler/parcels/osaf/framework/blocks/calendar/CalendarCanvas.py:1.87
--- chandler/parcels/osaf/framework/blocks/calendar/CalendarCanvas.py:1.86	Wed Apr 27 11:55:44 2005
+++ chandler/parcels/osaf/framework/blocks/calendar/CalendarCanvas.py	Thu Apr 28 13:20:27 2005
@@ -1,8 +1,8 @@
 """ Canvas for calendaring blocks
 """
 
-__version__ = "$Revision: 1.86 $"
-__date__ = "$Date: 2005/04/27 18:55:44 $"
+__version__ = "$Revision: 1.87 $"
+__date__ = "$Date: 2005/04/28 20:20:27 $"
 __copyright__ = "Copyright (c) 2004 Open Source Applications Foundation"
 __license__ = "http://osafoundation.org/Chandler_0.1_license_terms.htm"
 
@@ -984,14 +984,15 @@
         
         navigationRow = wx.BoxSizer(wx.HORIZONTAL)
         
-        sizer.Add((3,3), 0, wx.EXPAND)
+        sizer.Add((5,5), 0, wx.EXPAND)
         sizer.Add(navigationRow, 0, wx.EXPAND)
-        sizer.Add((3,3), 0, wx.EXPAND)
+        sizer.Add((5,5), 0, wx.EXPAND)
 
         # beginnings of  in the calendar
-        self.colorSelect = colourselect.ColourSelect(self, -1)
+        self.colorSelect = colourselect.ColourSelect(self, -1, size=wx.Size(30,15))
         self.Bind(colourselect.EVT_COLOURSELECT, self.parent.OnSelectColor)
-        navigationRow.Add(self.colorSelect, 0, wx.EXPAND)
+        navigationRow.Add((5,5), 0, wx.EXPAND)
+        navigationRow.Add(self.colorSelect, 0, wx.CENTER)
 
         today = DateTime.today()
         styles = self.parent
@@ -1011,9 +1012,9 @@
         self.Bind(wx.EVT_BUTTON, self.parent.OnNext, self.nextButton)
 
         #navigationRow.Add((0,0), 1, wx.EXPAND)
-        navigationRow.Add(self.prevButton, 0, wx.EXPAND)
+        navigationRow.Add(self.prevButton, 0, wx.CENTER)
         navigationRow.Add((5,5), 0)
-        navigationRow.Add(self.nextButton, 0, wx.EXPAND)
+        navigationRow.Add(self.nextButton, 0, wx.CENTER)
         navigationRow.Add((5,5), 0)
         
         #



More information about the Commits mailing list