Skip to content

Commit

Permalink
Merge pull request #1091 from planetary-social/bugfix/heading3
Browse files Browse the repository at this point in the history
Make heading3 larger than body in Home and Profile posts
  • Loading branch information
mplorentz authored Jan 18, 2023
2 parents b4cb886 + 13b6df9 commit ad37d23
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

- Updated font of level 3 Headings in Posts to stand out from the body. #1034
- Fixed an issue where room names would not show up in the connected peers list.
- Update the color palette used in the navigation bars and the main tab bar. #1059
- Added new redesigned Discover screen. #587
Expand Down
4 changes: 2 additions & 2 deletions Source/Markdown/MarkdownStyler.swift
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ class MarkdownStyler: DownStyler {
body = .body
heading1 = .title3
heading2 = .headline
heading3 = .subheadline
heading3 = .headline
case .small:
body = .footnote
heading1 = .footnote
Expand All @@ -114,7 +114,7 @@ class MarkdownStyler: DownStyler {
fonts.heading3 = UIFont.preferredFont(forTextStyle: heading3)
case .small, .compact, .large:
let heading = font(
for: UIFontDescriptor.preferredFontDescriptor(withTextStyle: heading1),
for: UIFontDescriptor.preferredFontDescriptor(withTextStyle: heading1).withSymbolicTraits(.traitBold),
fallback: UIFont.preferredFont(forTextStyle: heading1)
)
fonts.heading1 = heading
Expand Down

0 comments on commit ad37d23

Please sign in to comment.