Move comments pill mode into the comments page settings

The pill mode now lives on CommentsPageSettings and is edited in the
comments page editor instead of a standalone settings section. The
legacy value on PlayerPillSettings is kept for decoding old presets
and migrated by effectivePanelSettings. Comments are loaded when
either the comments page is enabled or the pill is not disabled.
This commit is contained in:
Arkadiusz Fal
2026-09-23 22:45:38 +02:00
parent 924facacc4
commit e7458ba629
10 changed files with 84 additions and 115 deletions

View File

@@ -625,19 +625,6 @@ final class PlayerControlsSettingsViewModel {
playerPillSettings.buttons
}
/// Current comments pill mode.
var commentsPillMode: CommentsPillMode {
playerPillSettings.effectiveCommentsPillMode
}
/// Synchronously updates the comments pill mode with immediate UI feedback.
/// - Parameter mode: The new comments pill mode.
func syncCommentsPillMode(_ mode: CommentsPillMode) {
updatePlayerPillSettingsSync { settings in
settings.commentsPillMode = mode
}
}
/// Synchronously updates the pill visibility with immediate UI feedback.
/// - Parameter visibility: The new visibility mode.
func syncPillVisibility(_ visibility: PillVisibility) {