refactor: remove redundant Box wrappers

- dock/main.py: canvas_box eliminated, Revealer wraps canvas directly
- desktop/system.py: two single-child Box wrappers removed
- controlcenter/player.py: redundant album_cover wrapper removed
- controlcenter/expanded_player.py: same pattern as player.py
This commit is contained in:
sankalp committed 2026-07-31 00:39:53 +05:45
1 parent 5c936a68da
commit 92c2b92333
4 files changed
+22 -42

No files matched your search

+5 -14
View File
@@ -54,21 +54,12 @@ class SystemInfoBase(Box):
h_align="center",
v_align="center",
children=[
Box(
children=[
Overlay(
child=self.progress,
tooltip_text="",
overlays=self.main_label,
)
]
),
Box(
h_align="center",
justification="centre",
orientation="v",
children=[self.info_container],
Overlay(
child=self.progress,
tooltip_text="",
overlays=self.main_label,
),
self.info_container,
],
)
)