Increase contrast on the unread counter

This commit is contained in:
Thomas Ricouard 2024-01-02 12:14:53 +01:00
parent 13e87b41e9
commit f19ab2b130
2 changed files with 4 additions and 3 deletions

View file

@ -45,15 +45,17 @@ struct TimelineUnreadStatusesView: View {
// Accessibility: this results in a frame with a size of at least 44x44 at regular font size // Accessibility: this results in a frame with a size of at least 44x44 at regular font size
.frame(minWidth: 16, minHeight: 16) .frame(minWidth: 16, minHeight: 16)
.font(.footnote.monospacedDigit()) .font(.footnote.monospacedDigit())
.fontWeight(.bold)
.foregroundStyle(theme.labelColor)
} }
.accessibilityLabel("accessibility.tabs.timeline.unread-posts.label-\(observer.pendingStatusesCount)") .accessibilityLabel("accessibility.tabs.timeline.unread-posts.label-\(observer.pendingStatusesCount)")
.accessibilityHint("accessibility.tabs.timeline.unread-posts.hint") .accessibilityHint("accessibility.tabs.timeline.unread-posts.hint")
#if os(visionOS) #if os(visionOS)
.buttonStyle(.bordered) .buttonStyle(.bordered)
.tint(Material.thick) .tint(Material.ultraThick)
#else #else
.buttonStyle(.bordered) .buttonStyle(.bordered)
.background(.thinMaterial) .background(Material.ultraThick)
#endif #endif
.cornerRadius(8) .cornerRadius(8)
.overlay( .overlay(

View file

@ -41,7 +41,6 @@ struct TimelineQuickAccessPills: View {
} }
pinnedFilters = filters pinnedFilters = filters
}) })
} }
@ViewBuilder @ViewBuilder