Author: bugman Date: Fri Jun 14 10:39:32 2013 New Revision: 20109 URL: http://svn.gna.org/viewcvs/relax?rev=20109&view=rev Log: Added more emphasis on the titles of the auto-analysis GUI elements. There is now more space below the title, and a different font (16pt roman italic) is being used. Modified: trunk/gui/analyses/base.py trunk/gui/fonts.py Modified: trunk/gui/analyses/base.py URL: http://svn.gna.org/viewcvs/relax/trunk/gui/analyses/base.py?rev=20109&r1=20108&r2=20109&view=diff ============================================================================== --- trunk/gui/analyses/base.py (original) +++ trunk/gui/analyses/base.py Fri Jun 14 10:39:32 2013 @@ -325,7 +325,7 @@ return field - def add_title(self, box, text): + def add_title(self, box, text, top_spacing=10, bottom_spacing=15): """Create and add the frame title. @param box: The box element to pack the frame title into. @@ -338,12 +338,12 @@ label = wx.StaticText(self, -1, text) # The font properties. - label.SetFont(font.title) + label.SetFont(font.roman_title_italic) # Pack the title, with spacing. - box.AddSpacer(10) + box.AddSpacer(top_spacing) box.Add(label) - box.AddSpacer(5) + box.AddSpacer(bottom_spacing) def build_left_box(self): Modified: trunk/gui/fonts.py URL: http://svn.gna.org/viewcvs/relax/trunk/gui/fonts.py?rev=20109&r1=20108&r2=20109&view=diff ============================================================================== --- trunk/gui/fonts.py (original) +++ trunk/gui/fonts.py Fri Jun 14 10:39:32 2013 @@ -1,6 +1,6 @@ ############################################################################### # # -# Copyright (C) 2011-2012 Edward d'Auvergne # +# Copyright (C) 2011-2013 Edward d'Auvergne # # # # This file is part of the program relax (http://www.nmr-relax.com). # # # @@ -68,6 +68,7 @@ self.roman_font_12 = wx.Font(12+scale, wx.FONTFAMILY_ROMAN, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_NORMAL, 0) self.roman_font_14 = wx.Font(14+scale, wx.FONTFAMILY_ROMAN, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_NORMAL, 0) self.roman_title = wx.Font(16+scale, wx.FONTFAMILY_ROMAN, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_NORMAL, 0) + self.roman_title_italic = wx.Font(16+scale, wx.FONTFAMILY_ROMAN, wx.FONTSTYLE_ITALIC, wx.FONTWEIGHT_NORMAL, 0) self.roman_font_18 = wx.Font(18+scale, wx.FONTFAMILY_ROMAN, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_NORMAL, 0)