feat: Updates flagged status label styles

This commit is contained in:
2024-06-07 18:37:49 -04:00
parent 280cb3b863
commit 11ec24586e
7 changed files with 211 additions and 34 deletions

View File

@@ -15,15 +15,23 @@ public struct FlaggedStatusLabel: View {
}
public var body: some View {
TextLabel(status.title)
.textLabelStyle(
.colored(status.flagColor)
.combining(style)
style.makeBody(
configuration: FlaggedStatusLabelStyleConfiguration(
status: status
)
)
}
}
#Preview {
FlaggedStatusLabel(status: .warning)
.flaggedStatusLabelStyle(.heavyTitle2)
VStack {
FlaggedStatusLabel(status: .warning)
.flaggedStatusLabelStyle(.textLabel(.heavyTitle2))
FlaggedStatusLabel(status: .warning)
.flaggedStatusLabelStyle(.pill)
// FlaggedStatusLabel(status: .warning
// .flaggedStatusLabelStyle(.pill(.heavyTitle2))
}
}