Archived
1
1
Fork 0

rearrange power slightly, section for limits

This commit is contained in:
Josh Lay 2023-04-23 09:21:24 -05:00
parent 7e41c0fe3d
commit 0e4066110e
Signed by: jlay
GPG key ID: B265E45CACAD108A
2 changed files with 5 additions and 3 deletions

View file

@ -276,13 +276,15 @@ class PowerDisplay(Static):
Label("", classes="statvalue")) Label("", classes="statvalue"))
yield Horizontal(Label(" Usage:",), yield Horizontal(Label(" Usage:",),
Label("", id="pwr_avg_val", classes="statvalue")) Label("", id="pwr_avg_val", classes="statvalue"))
yield Horizontal(Label(" [bold]Set[/] limit:",), yield Horizontal(Label(""), Label("", classes="statvalue")) # padding to split groups
yield Horizontal(Label("[underline]Limits"),
Label("", classes="statvalue"))
yield Horizontal(Label(" Configured:",),
Label("", id="pwr_lim_val", classes="statvalue")) Label("", id="pwr_lim_val", classes="statvalue"))
yield Horizontal(Label(" [bold]Default[/] limit:",), yield Horizontal(Label(" Default:",),
Label("", id="pwr_def_val", classes="statvalue")) Label("", id="pwr_def_val", classes="statvalue"))
yield Horizontal(Label(" Board capability:",), yield Horizontal(Label(" Board capability:",),
Label("", id="pwr_cap_val", classes="statvalue")) Label("", id="pwr_cap_val", classes="statvalue"))
yield Horizontal(Label(""), Label("", classes="statvalue")) # bottom padding to group
def on_mount(self) -> None: def on_mount(self) -> None:
"""Event handler called when widget is added to the app.""" """Event handler called when widget is added to the app."""

Binary file not shown.

Before

Width:  |  Height:  |  Size: 35 KiB

After

Width:  |  Height:  |  Size: 44 KiB