Move BT status position in view

This moves the position of BT status a little to the left to make enough space for battery plugin status.

When a battery plugin is used along with bt-tether, BT status can overwrite the first character of the battery plugin status.

Signed-off-by: Ayman Bagabas <ayman.bagabas@gmail.com>
This commit is contained in:
Ayman Bagabas
2024-05-01 16:26:11 -04:00
committed by GitHub
parent 70f0dcb891
commit c42e8d0f5d

View File

@ -578,7 +578,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 - 10, 0), position=(ui.width() / 2 - 20, 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):