From 261d15f1a86b44039377eb4c2bdef7d941aafe1e Mon Sep 17 00:00:00 2001 From: Jeroen Oudshoorn Date: Tue, 19 Sep 2023 19:49:20 +0200 Subject: [PATCH] internet-connection.py: change position of the label Signed-off-by: Jeroen Oudshoorn --- pwnagotchi/plugins/default/bt-tether.py | 2 +- pwnagotchi/plugins/default/internet-connection.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pwnagotchi/plugins/default/bt-tether.py b/pwnagotchi/plugins/default/bt-tether.py index 6e2e1e25..a06ed20e 100644 --- a/pwnagotchi/plugins/default/bt-tether.py +++ b/pwnagotchi/plugins/default/bt-tether.py @@ -579,7 +579,7 @@ class BTTether(plugins.Plugin): def on_ui_setup(self, ui): with ui._lock: ui.add_element('bluetooth', LabeledValue(color=BLACK, label='BT', value='-', - position=(ui.width() / 2 + 20, 0), + position=(ui.width() / 2 - 15, 0), label_font=fonts.Bold, text_font=fonts.Medium)) def on_ui_update(self, ui): diff --git a/pwnagotchi/plugins/default/internet-connection.py b/pwnagotchi/plugins/default/internet-connection.py index 3390a077..c970e9c5 100644 --- a/pwnagotchi/plugins/default/internet-connection.py +++ b/pwnagotchi/plugins/default/internet-connection.py @@ -32,8 +32,8 @@ class InternetConnectionPlugin(plugins.Plugin): # add a LabeledValue element to the UI with the given label and value # the position and font can also be specified ui.add_element('connection_status', components.LabeledValue(color=view.BLACK, label='WWW', value='-', - position=(ui.width() / 2 - 25, 0), label_font=fonts.Bold, - text_font=fonts.Medium)) + position=(ui.width() / 2 - 30, 0), + label_font=fonts.Bold, text_font=fonts.Medium)) def on_ui_update(self, ui): # check if there is an active Internet connection