feat: Updates flagged status label styles
This commit is contained in:
@@ -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))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user