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-18 21:08:18 +02:00
parent 422052b97c
commit 6a64593b46

View File

@ -32,7 +32,7 @@ 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 - 20, 0), label_font=fonts.Bold, position=(ui.width() / 2 - 25, 0), label_font=fonts.Bold,
text_font=fonts.Medium)) text_font=fonts.Medium))
def on_ui_update(self, ui): def on_ui_update(self, ui):