]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
confwiz: refine the descriptive text on the conf wiz pages
authorrobk-tahoe <robk-tahoe@allmydata.com>
Wed, 19 Mar 2008 00:06:47 +0000 (17:06 -0700)
committerrobk-tahoe <robk-tahoe@allmydata.com>
Wed, 19 Mar 2008 00:06:47 +0000 (17:06 -0700)
src/allmydata/gui/confwiz.py

index 6ef06af9e3808c4b0f99642f4abf14cd7dcc3678..b4c21c462f0571e1862a1d81d2455b94f80929cf 100644 (file)
@@ -230,12 +230,19 @@ class WizardFrame(wx.Frame):
         banner = wx.Panel(self, -1)
         banner.SetSize((496,58))
         banner.SetBackgroundColour(wx.WHITE)
-        banner_label = wx.StaticText(banner, -1, 'Sign in to your account')
 
+        banner_title = wx.StaticText(banner, -1, panel_class.title)
+        banner_desc = wx.StaticText(banner, -1, "        " + panel_class.description)
+        font = banner_title.GetFont()
+        font.SetWeight(wx.FONTWEIGHT_BOLD)
+        banner_title.SetFont(font)
         banner_icon = wx.StaticBitmap(banner, -1, amdlogo.getBitmap())
+        banner_label_sizer = wx.BoxSizer(wx.VERTICAL)
+        banner_label_sizer.Add(banner_title, 0, wx.EXPAND | wx.ALL, 2)
+        banner_label_sizer.Add(banner_desc, 0, wx.EXPAND | wx.ALL, 2)
 
         banner_sizer = wx.BoxSizer(wx.HORIZONTAL)
-        banner_sizer.Add(banner_label, 1, wx.EXPAND | wx.ALL, 12)
+        banner_sizer.Add(banner_label_sizer, 1, wx.EXPAND | wx.ALL, 12)
         banner_sizer.Add(banner_icon, 0, wx.ALL, 12)
         banner.SetSizer(banner_sizer)
         banner.SetAutoLayout(True)
@@ -270,6 +277,8 @@ class WizardFrame(wx.Frame):
 
 class LoginPanel(wx.Panel):
     padding = 26
+    title = 'Sign in'
+    description = 'Sign in to your existing account'
 
     def __init__(self, parent, button_panel, app):
         wx.Panel.__init__(self, parent, -1)
@@ -366,6 +375,8 @@ class LoginPanel(wx.Panel):
 
 class RegisterPanel(wx.Panel):
     padding = 7
+    title = 'Create account'
+    description = 'Create a new account on Allmydata'
 
     def __init__(self, parent, button_panel, app):
         wx.Panel.__init__(self, parent, -1)