SF Symbols in Profile View Should Respond to Dark Mode
This commit is contained in:
committed by
William Casarin
parent
1fd8be9e2b
commit
eb0b1061d8
@@ -85,6 +85,7 @@ struct ProfileView: View {
|
|||||||
@StateObject var followers: FollowersModel
|
@StateObject var followers: FollowersModel
|
||||||
|
|
||||||
@Environment(\.dismiss) var dismiss
|
@Environment(\.dismiss) var dismiss
|
||||||
|
@Environment(\.colorScheme) var colorScheme
|
||||||
|
|
||||||
//@EnvironmentObject var profile: ProfileModel
|
//@EnvironmentObject var profile: ProfileModel
|
||||||
|
|
||||||
@@ -94,7 +95,7 @@ struct ProfileView: View {
|
|||||||
}) {
|
}) {
|
||||||
Image(systemName: "bolt.circle")
|
Image(systemName: "bolt.circle")
|
||||||
.symbolRenderingMode(.palette)
|
.symbolRenderingMode(.palette)
|
||||||
.foregroundStyle(.black, .gray)
|
.foregroundStyle(colorScheme == .dark ? .white : .black, .gray)
|
||||||
.font(.system(size: 27).weight(.thin))
|
.font(.system(size: 27).weight(.thin))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -107,7 +108,7 @@ struct ProfileView: View {
|
|||||||
Image(systemName: "bubble.left.circle")
|
Image(systemName: "bubble.left.circle")
|
||||||
.symbolRenderingMode(.palette)
|
.symbolRenderingMode(.palette)
|
||||||
.font(.system(size: 29).weight(.thin))
|
.font(.system(size: 29).weight(.thin))
|
||||||
.foregroundStyle(.black, .gray)
|
.foregroundStyle(colorScheme == .dark ? .white : .black, .gray)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user