From 3b0961f3c56c32637aaafe2d20d88bc2e3c81502 Mon Sep 17 00:00:00 2001 From: Doug <6060466+pixlwave@users.noreply.github.com> Date: Fri, 21 Jul 2023 11:05:40 +0100 Subject: [PATCH] Fix tint colour in dark mode. (#1376) --- ElementX/Sources/Application/Application.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ElementX/Sources/Application/Application.swift b/ElementX/Sources/Application/Application.swift index 7ebfcb54c..74038cac4 100644 --- a/ElementX/Sources/Application/Application.swift +++ b/ElementX/Sources/Application/Application.swift @@ -37,7 +37,9 @@ struct Application: App { .statusBarHidden(shouldHideStatusBar) .introspect(.window, on: .iOS(.v16)) { window in // Workaround for SwiftUI not consistently applying the tint colour to Alerts/Confirmation Dialogs. - window.tintColor = UIColor(Color.compound.textActionPrimary) + window.tintColor = UIColor(named: "colorGray1400", + in: Bundle(identifier: "CompoundDesignTokens-CompoundDesignTokens-resources"), + compatibleWith: nil) } .task { appCoordinator.start()