mirror of
https://github.com/jayofelony/pwnagotchi.git
synced 2025-07-01 18:37:27 -04:00
internet-connection.py:
change position of the label Signed-off-by: Jeroen Oudshoorn <oudshoorn.jeroen@gmail.com>
This commit is contained in:
@ -579,7 +579,7 @@ class BTTether(plugins.Plugin):
|
|||||||
def on_ui_setup(self, ui):
|
def on_ui_setup(self, ui):
|
||||||
with ui._lock:
|
with ui._lock:
|
||||||
ui.add_element('bluetooth', LabeledValue(color=BLACK, label='BT', value='-',
|
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))
|
label_font=fonts.Bold, text_font=fonts.Medium))
|
||||||
|
|
||||||
def on_ui_update(self, ui):
|
def on_ui_update(self, ui):
|
||||||
|
@ -32,8 +32,8 @@ class InternetConnectionPlugin(plugins.Plugin):
|
|||||||
# add a LabeledValue element to the UI with the given label and value
|
# add a LabeledValue element to the UI with the given label and value
|
||||||
# the position and font can also be specified
|
# the position and font can also be specified
|
||||||
ui.add_element('connection_status', components.LabeledValue(color=view.BLACK, label='WWW', value='-',
|
ui.add_element('connection_status', components.LabeledValue(color=view.BLACK, label='WWW', value='-',
|
||||||
position=(ui.width() / 2 - 25, 0), label_font=fonts.Bold,
|
position=(ui.width() / 2 - 30, 0),
|
||||||
text_font=fonts.Medium))
|
label_font=fonts.Bold, text_font=fonts.Medium))
|
||||||
|
|
||||||
def on_ui_update(self, ui):
|
def on_ui_update(self, ui):
|
||||||
# check if there is an active Internet connection
|
# check if there is an active Internet connection
|
||||||
|
Reference in New Issue
Block a user