internet-connection.py:

change position of the label

Signed-off-by: Jeroen Oudshoorn <oudshoorn.jeroen@gmail.com>
This commit is contained in:
Jeroen Oudshoorn
2023-09-19 19:49:20 +02:00
parent 6a64593b46
commit 261d15f1a8
2 changed files with 3 additions and 3 deletions

View File

@ -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):

View File

@ -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