Skip to content

fix(tv): No background row toggles off again - #43

Merged
RXWatcher merged 1 commit into
Silo-Server:mainfrom
RXWatcher:fix/no-background-toggle
Jul 8, 2026
Merged

RXWatcher merged 1 commit into
Silo-Server:mainfrom
RXWatcher:fix/no-background-toggle

Conversation

@RXWatcher

@RXWatcher RXWatcher commented Jul 8, 2026 •

Copy link
Copy Markdown
Contributor

Problem

In the TV player's subtitle pane, the "No background" quick control could be switched On but never back Off — activating it unconditionally set backgroundStyle = None.

Fix

The row is now a real toggle: activating while On restores the default Box background (the Apple-parity default, per #31); activating while Off sets None as before. Source-guard test updated to pin the toggle behavior.

Reported on-device on the Shield (v0.3.2).

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Bug Fixes
    • The subtitle “No background” option now acts as a toggle, letting you switch between no background and the default box background.
    • Subtitle appearance updates now correctly preserve and restore the chosen background style instead of only turning it off.
    • Updated behavior in the on-screen controls to match the new toggle logic.

The subtitle pane's No background quick control unconditionally set
backgroundStyle=None, so once enabled it could never be turned off from
that row. Activating it while already On now restores the default Box
background (Apple parity default).

Co-Authored-By: Claude Fable 5 <[email protected]>
@coderabbitai

coderabbitai Bot commented Jul 8, 2026 •

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 08eb731a-c2f5-481c-932c-ed1e91684439

📥 Commits

Reviewing files that changed from the base of the PR and between 01e36e7 and d2e3e25.

📒 Files selected for processing (2)
  • androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/player/TvPlayerHud.kt
  • androidTvApp/src/androidUnitTest/kotlin/org/siloserver/silo/tv/ui/screens/player/TvPlayerControlsUsabilityTest.kt

📝 Walkthrough

Walkthrough

The "No background" subtitle setting row in the TV player HUD now toggles between None and Box background presets instead of always setting None. The corresponding usability test was updated to verify this toggle behavior.

Changes

Subtitle Background Toggle

Layer / File(s) Summary
Toggle behavior and test
androidTvApp/src/androidMain/.../TvPlayerHud.kt, androidTvApp/src/androidUnitTest/.../TvPlayerControlsUsabilityTest.kt
The "No background" row's onActivate handler toggles appearance.backgroundStyle between None and Box instead of always setting None; the usability test now asserts this toggle behavior using Box as the restore value.

Estimated code review effort: 1 (Trivial) | ~5 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 clearly describes the TV subtitle pane fix where the “No background” row now toggles back off and on again.
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 unit tests (beta)
  • Create PR with unit tests

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.

@RXWatcher
RXWatcher merged commit d2e3e25 into Silo-Server:main Jul 8, 2026
4 checks passed
@RXWatcher
RXWatcher deleted the fix/no-background-toggle branch July 13, 2026 19:37
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