refactor: add customizable properties to neutral button style

Closes: https://github.com/damus-io/damus/pull/1805
Reviewed-by: William Casarin <jb55@jb55.com>
Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
ericholguin
2023-12-08 21:57:25 -07:00
committed by William Casarin
parent da2bdad18d
commit f2fe02032e
2 changed files with 48 additions and 27 deletions

View File

@@ -58,7 +58,7 @@ struct ProfileActionSheetView: View {
.profile_button_style(scheme: colorScheme)
}
)
.buttonStyle(NeutralCircleButtonStyle())
.buttonStyle(NeutralButtonShape.circle.style)
Text(NSLocalizedString("Message", comment: "Button label that allows the user to start a direct message conversation with the user shown on-screen"))
.foregroundStyle(.secondary)
.font(.caption)
@@ -121,8 +121,7 @@ struct ProfileActionSheetView: View {
}
)
.buttonStyle(NeutralCircleButtonStyle())
.buttonStyle(NeutralButtonShape.circle.style)
}
.padding()
.padding(.top, 20)
@@ -165,7 +164,7 @@ fileprivate struct ProfileActionSheetFollowButton: View {
}
)
.buttonStyle(NeutralCircleButtonStyle())
.buttonStyle(NeutralButtonShape.circle.style)
Text(verbatim: "\(follow_btn_txt(follow_state, follows_you: follows_you))")
.foregroundStyle(.secondary)
@@ -292,7 +291,7 @@ fileprivate struct ProfileActionSheetZapButton: View {
return true
}
}())
.buttonStyle(NeutralCircleButtonStyle())
.buttonStyle(NeutralButtonShape.circle.style)
Text(button_label)
.foregroundStyle(.secondary)