commit eb0b1061d8f97d0cd4e8adc5bf5e9574e9f81e1d
parent 1fd8be9e2b54bd623b48ac5d4f9c372c0093c13a
Author: Joel Klabo <joelklabo@gmail.com>
Date: Mon, 19 Dec 2022 11:05:47 -0800
SF Symbols in Profile View Should Respond to Dark Mode
Diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/damus/Views/ProfileView.swift b/damus/Views/ProfileView.swift
@@ -85,6 +85,7 @@ struct ProfileView: View {
@StateObject var followers: FollowersModel
@Environment(\.dismiss) var dismiss
+ @Environment(\.colorScheme) var colorScheme
//@EnvironmentObject var profile: ProfileModel
@@ -94,7 +95,7 @@ struct ProfileView: View {
}) {
Image(systemName: "bolt.circle")
.symbolRenderingMode(.palette)
- .foregroundStyle(.black, .gray)
+ .foregroundStyle(colorScheme == .dark ? .white : .black, .gray)
.font(.system(size: 27).weight(.thin))
}
}
@@ -107,7 +108,7 @@ struct ProfileView: View {
Image(systemName: "bubble.left.circle")
.symbolRenderingMode(.palette)
.font(.system(size: 29).weight(.thin))
- .foregroundStyle(.black, .gray)
+ .foregroundStyle(colorScheme == .dark ? .white : .black, .gray)
}
}