From 629561f057252f2345082ea7c872d3b37241bffd Mon Sep 17 00:00:00 2001 From: Arkadiusz Fal Date: Fri, 18 Sep 2026 23:59:54 +0200 Subject: [PATCH] Keep the system accent color on tvOS Views reading resolvedAccentColor directly (comment links, home shortcuts, bookmarks, player panels) picked up accent colors synced from iOS via iCloud. tvOS now always resolves to the system default. --- Yattee/Core/Settings/SettingsManager+General.swift | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Yattee/Core/Settings/SettingsManager+General.swift b/Yattee/Core/Settings/SettingsManager+General.swift index e59fd90d..4ebca937 100644 --- a/Yattee/Core/Settings/SettingsManager+General.swift +++ b/Yattee/Core/Settings/SettingsManager+General.swift @@ -126,6 +126,11 @@ extension SettingsManager { /// dynamic platform color that resolves per trait environment, so all consumers /// (root tint and direct readers) adapt to light/dark automatically. var resolvedAccentColor: Color { + #if os(tvOS) + // tvOS keeps the system default accent; user-picked colors (possibly + // synced from iOS via iCloud) must never override it. + return .accentColor + #else let light = resolvedLightAccentColor guard useSeparateDarkAccentColor else { return light } let dark = resolvedDarkAccentColor @@ -139,6 +144,7 @@ extension SettingsManager { UIColor(traits.userInterfaceStyle == .dark ? dark : light) }) #endif + #endif } // MARK: - App Icon Settings