2.4.2

Signed-off-by: Jeroen Oudshoorn <oudshoorn.jeroen@gmail.com>
This commit is contained in:
Jeroen Oudshoorn
2023-09-18 15:59:05 +02:00
parent 893edf6f6e
commit 07c61c6a7a

View File

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