patch settings

This commit is contained in:
cheykrym 2025-12-13 01:03:48 +03:00
parent 42e9e4984a
commit cacb25d34a

View File

@ -167,7 +167,7 @@ struct SettingsView: View {
avatar: messengerAvatar(for: profile), avatar: messengerAvatar(for: profile),
displayName: messengerDisplayName(for: profile), displayName: messengerDisplayName(for: profile),
presenceStatus: nil, presenceStatus: nil,
statusTags: [], statusTags: messengerStatusTags(for: profile),
isOfficial: self.messengerProfile?.isVerified ?? false isOfficial: self.messengerProfile?.isVerified ?? false
) )
.listRowInsets(EdgeInsets(top: 16, leading: 0, bottom: 8, trailing: 0)) .listRowInsets(EdgeInsets(top: 16, leading: 0, bottom: 8, trailing: 0))
@ -273,8 +273,8 @@ struct SettingsView: View {
return "@\(profile.login)" return "@\(profile.login)"
} }
// private func messengerStatusTags(for profile: ProfileDataPayload) -> [ProfileHeaderCardView.StatusTag] { private func messengerStatusTags(for profile: ProfileDataPayload) -> [ProfileHeaderCardView.StatusTag] {
// var tags: [ProfileHeaderCardView.StatusTag] = [] var tags: [ProfileHeaderCardView.StatusTag] = []
// tags.append( // tags.append(
// ProfileHeaderCardView.StatusTag( // ProfileHeaderCardView.StatusTag(
// icon: "at", // icon: "at",
@ -283,7 +283,7 @@ struct SettingsView: View {
// tint: .white // tint: .white
// ) // )
// ) // )
//
// if let createdAt = profile.createdAt { // if let createdAt = profile.createdAt {
// let formatted = SettingsView.membershipFormatter.string(from: createdAt) // let formatted = SettingsView.membershipFormatter.string(from: createdAt)
// tags.append( // tags.append(
@ -298,9 +298,20 @@ struct SettingsView: View {
// ) // )
// ) // )
// } // }
//
// return tags if profile.isVerified {
// } tags.append(
ProfileHeaderCardView.StatusTag(
icon: "checkmark.seal.fill",
text: NSLocalizedString("Подтверждённый профиль", comment: "Message profile verified tag"),
background: Color.white.opacity(0.18),
tint: .white
)
)
}
return tags
}
private func themeRow(for option: ThemeOption) -> some View { private func themeRow(for option: ThemeOption) -> some View {
let isSelected = option == selectedThemeOption let isSelected = option == selectedThemeOption