Skip to content

Commit

Permalink
Fix dark mode colors
Browse files Browse the repository at this point in the history
  • Loading branch information
quanganhdo committed Apr 18, 2024
1 parent de164d1 commit c1ad309
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,8 @@
"info" : {
"author" : "xcode",
"version" : 1
},
"properties" : {
"template-rendering-intent" : "original"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,8 @@
"info" : {
"author" : "xcode",
"version" : 1
},
"properties" : {
"template-rendering-intent" : "original"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit c1ad309

Please sign in to comment.