From ccfbd0c44a95d0296448a3dbd9809b112ecbc714 Mon Sep 17 00:00:00 2001 From: Jackson Harper Date: Tue, 2 May 2023 22:46:39 +0800 Subject: [PATCH] Handle system colour --- apple/OmnivoreKit/Sources/Views/Theme.swift | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/apple/OmnivoreKit/Sources/Views/Theme.swift b/apple/OmnivoreKit/Sources/Views/Theme.swift index 416819de0..0351fdd70 100644 --- a/apple/OmnivoreKit/Sources/Views/Theme.swift +++ b/apple/OmnivoreKit/Sources/Views/Theme.swift @@ -37,8 +37,11 @@ public enum Theme: String, CaseIterable { return Color(red: 255 / 255.0, green: 210 / 255.0, blue: 52 / 255.0) case .dark, .apollo: return Color(red: 134 / 255.0, green: 109 / 255.0, blue: 21 / 255.0) - default: - return bgColor + case .system: + if Color.isDarkMode { + return Color(red: 134 / 255.0, green: 109 / 255.0, blue: 21 / 255.0) + } + return Color(red: 255 / 255.0, green: 210 / 255.0, blue: 52 / 255.0) } }