From df33d20cb255f1e76bdadc8f030372eb445897c5 Mon Sep 17 00:00:00 2001 From: Simone Margaritelli Date: Tue, 15 Oct 2019 10:45:03 +0200 Subject: [PATCH] fix: refactored oledhat layout --- pwnagotchi/ui/layout.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/pwnagotchi/ui/layout.py b/pwnagotchi/ui/layout.py index 69dca81b..7ca872f6 100644 --- a/pwnagotchi/ui/layout.py +++ b/pwnagotchi/ui/layout.py @@ -26,7 +26,6 @@ def inkyphat(config, layout): def papirus(config, layout): fonts.setup(10, 8, 10, 23) - layout['width'] = 200 layout['height'] = 96 layout['face'] = (0, 24) @@ -50,7 +49,6 @@ def papirus(config, layout): def oledhat(config, layout): fonts.setup(8, 8, 8, 8) - layout['width'] = 128 layout['height'] = 64 layout['face'] = (0, 32) @@ -60,14 +58,14 @@ def oledhat(config, layout): layout['uptime'] = (65, 0) layout['line1'] = [0, 9, 128, 9] layout['line2'] = [0, 53, 128, 53] - layout['friend_face'] = (0, (layout['height'] * 0.88) - 15) - layout['friend_name'] = (40, (layout['height'] * 0.88) - 13) + layout['friend_face'] = (0, 41) + layout['friend_name'] = (40, 43) layout['shakes'] = (0, 53) layout['mode'] = (103, 10) layout['status'] = { 'pos': (30, 18), 'font': fonts.Small, - 'max': (110) // 6 + 'max': 18 } return layout