diff --git a/offlineimap/head/debian/changelog b/offlineimap/head/debian/changelog index 043f255..029ffa8 100644 --- a/offlineimap/head/debian/changelog +++ b/offlineimap/head/debian/changelog @@ -3,6 +3,7 @@ offlineimap (3.3.0) unstable; urgency=low * Moved executable to bin/offlineimap. This will allow setup.py to properly install it as offlineimap instead of offlineimap.py. * Made sure executables use /usr/bin/env in bangpath. + * Font size for Blinkenlights interface is now configurable. -- John Goerzen Tue, 20 Aug 2002 10:46:56 -0500 diff --git a/offlineimap/head/offlineimap.conf b/offlineimap/head/offlineimap.conf index cfdf9f9..2b9fee4 100644 --- a/offlineimap/head/offlineimap.conf +++ b/offlineimap/head/offlineimap.conf @@ -127,6 +127,10 @@ bufferlines = 500 showlog = false +# Sets the font information. + +fontfamily = Helvetica +fontsize = 8 ################################################## # Accounts diff --git a/offlineimap/head/offlineimap/ui/Tk.py b/offlineimap/head/offlineimap/ui/Tk.py index f57cfe2..e982303 100644 --- a/offlineimap/head/offlineimap/ui/Tk.py +++ b/offlineimap/head/offlineimap/ui/Tk.py @@ -350,6 +350,14 @@ class LEDThreadFrame: class Blinkenlights(VerboseUI): + def __init__(s, config, verbose = 0): + VerboseUI.__init__(s, config, verbose) + s.fontfamily = 'Helvetica' + s.fontsize = 8 + if config.has_option('ui.Tk.Blinkenlights', 'fontfamily'): + s.fontfamily = config.get('ui.Tk.Blinkenlights', 'fontfamily') + if config.has_option('ui.Tk.Blinkenlights', 'fontsize'): + s.fontsize = config.getint('ui.Tk.Blinkenlights', 'fontsize') def _createTopWindow(self): VerboseUI._createTopWindow(self, 0) #self.top.resizable(width = 0, height = 0)