Skip to content

fix(subtitles): shift tvOS size ladder down one notch - #55

Merged
zZebrahz merged 1 commit into
mainfrom
fix/tvos-subtitle-sizes-down-one
Jul 3, 2026
Merged

zZebrahz merged 1 commit into
mainfrom
fix/tvos-subtitle-sizes-down-one

Conversation

@zZebrahz

@zZebrahz zZebrahz commented Jul 3, 2026 •

Copy link
Copy Markdown
Contributor

Summary

tvOS default subtitles read one size too big in the living room. This shifts the tvOS size ladder down one notch so .large (the default) takes the old medium value, with every other preset moving down correspondingly.

Preset Old New
small 51 43 (new step)
medium 63 51
large (default) 74 63 ← old medium
xlarge 88 74
xxlarge 103 88

Only the tvOS block in SubtitleAppearance.swift changed; iOS and macOS ladders are untouched.

Test plan

  • Verify tvOS subtitle default (Large) renders at the intended size in the player
  • Confirm each size preset steps sensibly on a living-room screen

Note

The aspect-ratio scale fix that was briefly bundled here is now split into #56. This branch still carries that commit until it's rebased out — see #56.

tvOS default subtitles read one size too big in the living room. Shift
the ladder down so large (the default) takes the old medium value and
every other preset moves down correspondingly; small becomes a new
~1.2x step below medium.
@coderabbitai

coderabbitai Bot commented Jul 3, 2026 •

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

The tvOS-specific point-size values in SubtitleFontSizePreset.pointSize were shifted down one step for all preset sizes (small through xxlarge), with the explanatory comment updated accordingly.

Changes

Subtitle Font Size Preset Update

Layer / File(s) Summary
tvOS font-size ladder rebase
iosApp/iosApp/Screens/Player/Subtitles/SubtitleAppearance.swift
The tvOS switch in pointSize now maps small/medium/large/xlarge/xxlarge to a lower set of point values, with the comment updated to describe the new baseline.

Estimated code review effort: 1 (Trivial) | ~3 minutes

Possibly related issues

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately and concisely describes the tvOS subtitle size ladder adjustment.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/tvos-subtitle-sizes-down-one

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick comments (1)
iosApp/iosApp/Screens/Player/Subtitles/SubtitleAppearance.swift (1)

40-49: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Add tvOS test coverage for the new ladder.

The new tvOS values are internally consistent with the stated ~1.2x step ratios in the comment, and the naming/style conventions are followed. However, SubtitleStylingOverrideTests.swift (per the provided snippet) only asserts the iOS ladder inside #if os(iOS); there's no equivalent tvOS assertion. Given this file has already needed a correction once ("defaults read one size too big in the living room" per the comment), adding a #if os(tvOS) test block would prevent silent regressions on the next rebase.

♻️ Suggested test addition (in SubtitleStylingOverrideTests.swift)
func testFontSizePresetsRebasedForTVOS() {
    `#if` os(tvOS)
    XCTAssertEqual(SubtitleFontSizePreset.small.pointSize, 43)
    XCTAssertEqual(SubtitleFontSizePreset.medium.pointSize, 51)
    XCTAssertEqual(SubtitleFontSizePreset.large.pointSize, 63)
    XCTAssertEqual(SubtitleFontSizePreset.xlarge.pointSize, 74)
    XCTAssertEqual(SubtitleFontSizePreset.xxlarge.pointSize, 88)
    `#endif`
}
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@iosApp/iosApp/Screens/Player/Subtitles/SubtitleAppearance.swift` around lines
40 - 49, Add tvOS coverage for the subtitle font-size ladder so the new preset
values are asserted on that platform too. Update
SubtitleStylingOverrideTests.swift by adding a `#if` os(tvOS) test alongside the
existing iOS checks, and verify SubtitleFontSizePreset.small through .xxlarge
match the new pointSize values in SubtitleAppearance. Keep the test names and
enum references aligned with the existing subtitle styling tests so the tvOS
rebasing cannot regress silently.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Nitpick comments:
In `@iosApp/iosApp/Screens/Player/Subtitles/SubtitleAppearance.swift`:
- Around line 40-49: Add tvOS coverage for the subtitle font-size ladder so the
new preset values are asserted on that platform too. Update
SubtitleStylingOverrideTests.swift by adding a `#if` os(tvOS) test alongside the
existing iOS checks, and verify SubtitleFontSizePreset.small through .xxlarge
match the new pointSize values in SubtitleAppearance. Keep the test names and
enum references aligned with the existing subtitle styling tests so the tvOS
rebasing cannot regress silently.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 1e9e354c-5fa5-48ea-bdfb-daf8f8375b98

📥 Commits

Reviewing files that changed from the base of the PR and between 405765b and 1df13ac.

📒 Files selected for processing (1)
  • iosApp/iosApp/Screens/Player/Subtitles/SubtitleAppearance.swift

@zZebrahz
zZebrahz merged commit 984c867 into main Jul 3, 2026
1 check passed
@zZebrahz
zZebrahz deleted the fix/tvos-subtitle-sizes-down-one branch July 3, 2026 22:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant