From 6b45a72707648d472c18cdb6d7da26ebf80e295a Mon Sep 17 00:00:00 2001 From: Maurice Parker Date: Fri, 3 Jul 2020 20:03:36 -0500 Subject: [PATCH] Change unread indicator font and weight to match existing iOS parameters --- Multiplatform/Shared/Sidebar/UnreadCountView.swift | 3 ++- Shared/Extensions/NSAttributedString+NetNewsWire.swift | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Multiplatform/Shared/Sidebar/UnreadCountView.swift b/Multiplatform/Shared/Sidebar/UnreadCountView.swift index c46bc88f5..72cf9d5ec 100644 --- a/Multiplatform/Shared/Sidebar/UnreadCountView.swift +++ b/Multiplatform/Shared/Sidebar/UnreadCountView.swift @@ -14,7 +14,8 @@ struct UnreadCountView: View { var body: some View { Text(verbatim: String(count)) - .font(.footnote) + .font(.caption) + .fontWeight(.bold) .padding(.horizontal, 7) .padding(.vertical, 1) .background(AppAssets.sidebarUnreadCountBackground) diff --git a/Shared/Extensions/NSAttributedString+NetNewsWire.swift b/Shared/Extensions/NSAttributedString+NetNewsWire.swift index 0d028a283..f778dfb75 100644 --- a/Shared/Extensions/NSAttributedString+NetNewsWire.swift +++ b/Shared/Extensions/NSAttributedString+NetNewsWire.swift @@ -20,7 +20,6 @@ private let monoSpaceTrait = NSFontDescriptor.SymbolicTraits.monoSpace import UIKit typealias Font = UIFont typealias FontDescriptor = UIFontDescriptor -typealias Color = UIColor private let boldTrait = UIFontDescriptor.SymbolicTraits.traitBold private let italicTrait = UIFontDescriptor.SymbolicTraits.traitItalic