Updated the profile look and feel

Closes: #203
Changelog-Changed: Updated profile page look and feel
This commit is contained in:
Ben Weeks
2023-01-02 19:09:56 -08:00
committed by William Casarin
parent 7f71ddce1d
commit 57dbb6a487
31 changed files with 758 additions and 152 deletions

View File

@@ -19,10 +19,11 @@ struct FollowButtonView: View {
follow_state = perform_follow_btn_action(follow_state, target: target)
} label: {
Text(follow_btn_txt(follow_state))
.frame(height: 30)
.padding(.horizontal, 25)
.padding(.vertical, 10)
//.padding(.vertical, 10)
.font(.caption.weight(.bold))
.foregroundColor(follow_state == .unfollows ? emptyColor() : fillColor())
.foregroundColor(follow_state == .unfollows ? filledTextColor() : borderColor())
.background(follow_state == .unfollows ? fillColor() : emptyColor())
.cornerRadius(20)
.overlay {
@@ -48,16 +49,20 @@ struct FollowButtonView: View {
}
}
func filledTextColor() -> Color {
colorScheme == .light ? Color("DamusWhite") : Color("DamusBlack")
}
func fillColor() -> Color {
colorScheme == .light ? .black : .white
colorScheme == .light ? Color("DamusBlack") : Color("DamusWhite")
}
func emptyColor() -> Color {
colorScheme == .light ? .white : .black
Color.black.opacity(0)
}
func borderColor() -> Color {
colorScheme == .light ? .black.opacity(0.1) : .white.opacity(0.2)
colorScheme == .light ? Color("DamusDarkGrey") : Color("DamusLightGrey")
}
}