From f97c5a3b3374ec0dc6459b6bd5474168eafa12f4 Mon Sep 17 00:00:00 2001 From: screwys Date: Tue, 22 Sep 2026 18:42:17 +0300 Subject: [PATCH] feat(listening-overview): allow an option to turn off automatic play --- crates/rufin-core/src/settings/app.rs | 2 + crates/ui-shell/resources/shell/activity.ui | 9 +- crates/ui-shell/src/shell/activity.rs | 96 ++++++++++++--------- locales/rufin.pot | 6 ++ 4 files changed, 71 insertions(+), 42 deletions(-) diff --git a/crates/rufin-core/src/settings/app.rs b/crates/rufin-core/src/settings/app.rs index 57950f7a..5cb48e90 100644 --- a/crates/rufin-core/src/settings/app.rs +++ b/crates/rufin-core/src/settings/app.rs @@ -23,6 +23,7 @@ use super::{ #[derive(Clone, Debug, Deserialize, Eq, PartialEq, Serialize)] #[serde(default)] pub struct ActivityOverviewSettings { + pub autoplay_first_track: bool, pub dynamic_background: bool, pub background_image: bool, pub tracks: bool, @@ -45,6 +46,7 @@ pub struct ActivityOverviewSettings { impl Default for ActivityOverviewSettings { fn default() -> Self { Self { + autoplay_first_track: true, dynamic_background: true, background_image: true, tracks: true, diff --git a/crates/ui-shell/resources/shell/activity.ui b/crates/ui-shell/resources/shell/activity.ui index 1068358b..759faf72 100644 --- a/crates/ui-shell/resources/shell/activity.ui +++ b/crates/ui-shell/resources/shell/activity.ui @@ -6,7 +6,12 @@ - Customize display + Customize + + + Start playing automatically + + Dynamic background @@ -97,7 +102,7 @@ rufin-sliders-2-symbolic - Customize display + Customize settings_popover