Four pixel text padding, because it should be an even number.
authorJeremy Thurgood <firxen@gmail.com>
Fri, 16 May 2014 09:28:08 +0000 (11:28 +0200)
committerJeremy Thurgood <firxen@gmail.com>
Fri, 16 May 2014 09:28:08 +0000 (11:28 +0200)
naja/widgets/text.py

index ca653e89c5e512e816a3032d6f1295162baebd16..899dacec7c095cea5a79540d2f71b75cd2f41232 100644 (file)
@@ -58,7 +58,7 @@ class TextWidget(Widget):
 
 class TextBoxWidget(TextWidget):
     def __init__(self, *args, **kwargs):
-        self.padding = kwargs.pop('padding', 5)
+        self.padding = kwargs.pop('padding', 4)
         self.border = kwargs.pop('border', 2)
         self.bg_colour = convert_colour(kwargs.pop('bg_colour',
                                                    PALETTE.LIGHT_VIOLET))