From c1ad30963838559b38eacf178644ea8ef9994661 Mon Sep 17 00:00:00 2001 From: Anh Do Date: Thu, 18 Apr 2024 09:45:26 -0400 Subject: [PATCH] Fix dark mode colors --- .../Assets.xcassets/Icons/VPNDownload.imageset/Contents.json | 3 +++ .../Assets.xcassets/Icons/VPNUpload.imageset/Contents.json | 3 +++ .../Views/TunnelControllerView/TunnelControllerView.swift | 3 +++ 3 files changed, 9 insertions(+) diff --git a/LocalPackages/NetworkProtectionMac/Sources/NetworkProtectionUI/Resources/Assets.xcassets/Icons/VPNDownload.imageset/Contents.json b/LocalPackages/NetworkProtectionMac/Sources/NetworkProtectionUI/Resources/Assets.xcassets/Icons/VPNDownload.imageset/Contents.json index ef66f63922..e030aab433 100644 --- a/LocalPackages/NetworkProtectionMac/Sources/NetworkProtectionUI/Resources/Assets.xcassets/Icons/VPNDownload.imageset/Contents.json +++ b/LocalPackages/NetworkProtectionMac/Sources/NetworkProtectionUI/Resources/Assets.xcassets/Icons/VPNDownload.imageset/Contents.json @@ -8,5 +8,8 @@ "info" : { "author" : "xcode", "version" : 1 + }, + "properties" : { + "template-rendering-intent" : "original" } } diff --git a/LocalPackages/NetworkProtectionMac/Sources/NetworkProtectionUI/Resources/Assets.xcassets/Icons/VPNUpload.imageset/Contents.json b/LocalPackages/NetworkProtectionMac/Sources/NetworkProtectionUI/Resources/Assets.xcassets/Icons/VPNUpload.imageset/Contents.json index 410f073223..c7fec6a1a8 100644 --- a/LocalPackages/NetworkProtectionMac/Sources/NetworkProtectionUI/Resources/Assets.xcassets/Icons/VPNUpload.imageset/Contents.json +++ b/LocalPackages/NetworkProtectionMac/Sources/NetworkProtectionUI/Resources/Assets.xcassets/Icons/VPNUpload.imageset/Contents.json @@ -8,5 +8,8 @@ "info" : { "author" : "xcode", "version" : 1 + }, + "properties" : { + "template-rendering-intent" : "original" } } diff --git a/LocalPackages/NetworkProtectionMac/Sources/NetworkProtectionUI/Views/TunnelControllerView/TunnelControllerView.swift b/LocalPackages/NetworkProtectionMac/Sources/NetworkProtectionUI/Views/TunnelControllerView/TunnelControllerView.swift index e3bc424f6a..c4ede6adeb 100644 --- a/LocalPackages/NetworkProtectionMac/Sources/NetworkProtectionUI/Views/TunnelControllerView/TunnelControllerView.swift +++ b/LocalPackages/NetworkProtectionMac/Sources/NetworkProtectionUI/Views/TunnelControllerView/TunnelControllerView.swift @@ -263,6 +263,7 @@ public struct TunnelControllerView: View { .frame(width: 16, height: 16) } else { Image(NetworkProtectionAsset.nearestAvailable) + .renderingMode(colorScheme == .light ? .original : .template) .frame(width: 16, height: 16) } } @@ -365,10 +366,12 @@ public struct TunnelControllerView: View { Group { Image(NetworkProtectionAsset.dataReceived) + .renderingMode(colorScheme == .light ? .original : .template) .frame(width: 12, height: 12) Text(dataVolume.dataReceived) .applyDataVolumeAttributes(colorScheme: colorScheme) Image(NetworkProtectionAsset.dataSent) + .renderingMode(colorScheme == .light ? .original : .template) .frame(width: 12, height: 12) .padding(.leading, 4) Text(dataVolume.dataSent)