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
.frame(minWidth: 16, minHeight: 16)
.font(.footnote.monospacedDigit())
.fontWeight(.bold)
.foregroundStyle(theme.labelColor)
}
.accessibilityLabel("accessibility.tabs.timeline.unread-posts.label-\(observer.pendingStatusesCount)")
.accessibilityHint("accessibility.tabs.timeline.unread-posts.hint")
#if os(visionOS)
.buttonStyle(.bordered)
.tint(Material.thick)
.tint(Material.ultraThick)
#else
.buttonStyle(.bordered)
.background(.thinMaterial)
.background(Material.ultraThick)
#endif
.cornerRadius(8)
.overlay(

View File

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