From 3a5d0cf37d5cb88329c6cd0ccc18a22c8be99ab4 Mon Sep 17 00:00:00 2001 From: tr1x_em Date: Thu, 7 Aug 2025 19:01:27 +0530 Subject: [PATCH] Added Back button to Per App Volume --- modules/controlcenter/per_app_volume.py | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/modules/controlcenter/per_app_volume.py b/modules/controlcenter/per_app_volume.py index ef45fb0..4e7fd51 100644 --- a/modules/controlcenter/per_app_volume.py +++ b/modules/controlcenter/per_app_volume.py @@ -30,7 +30,19 @@ class PerAppVolumeControl(Box): self._app_widgets = {} self._signal_connections = [] - # Header with back button (hidden for cleaner UI) + # Header with back button + self.header = Box( + orientation="horizontal", + name="per-app-volume-header", + style_classes="menu-header", + children=[ + Button( + image=Image(icon_name="back", size=10), + on_clicked=lambda *_: self.control_center.close_per_app_volume(), + ), + Label("App Volume"), + ], + ) # Scrollable container for app volume controls self.apps_container = Box( @@ -52,7 +64,7 @@ class PerAppVolumeControl(Box): except Exception: pass # Ignore if keybinding fails - self.children = [self.scrolled_window] + self.children = [self.header, self.scrolled_window] # Connect to audio service changes if audio_service: