mirror of
https://github.com/narrrl/proton-stream.git
synced 2026-11-13 17:37:03 +01:00
fix(core,player,app): styled subtitles keep their size and place unless restyled
mpv's default sub-ass-override, `scale`, hands an ASS track sub-scale, and sub-pos reaches it under every mode but `no`. So with "Restyle styled subtitles" off, the subtitle size and position settings still resized and moved typeset dialogue and signs. The override is now `yes` when restyling is off, which keeps sub-scale off ASS. A styled track also ignores the style's position, and moves only to stay clear of the player's controls. A frame from an ASS track rendered with every other option changed now matches the untouched one pixel for pixel. Plain (SRT) tracks still take the whole style.
This commit is contained in:
1 parent
69d961d7b8
commit
ffd6e959bb
6 files changed
+78
-29
No files matched your search
@@ -432,14 +432,14 @@ fn languages(ui: &mut egui::Ui, playback: &PlaybackPrefs, actions: &mut Vec<Acti
|
||||
/// How subtitles look, with a sample line to judge it by.
|
||||
///
|
||||
/// Every change reaches a playing file as it is made, so the film itself is
|
||||
/// the other preview. A styled track takes only the size and the position
|
||||
/// unless it is asked to take the rest; see [`SubtitleStyle`].
|
||||
/// the other preview. A styled track takes none of it unless it is asked to;
|
||||
/// see [`SubtitleStyle`].
|
||||
fn subtitle_form(ui: &mut egui::Ui, style: &SubtitleStyle, actions: &mut Vec<Action>) {
|
||||
ui::widgets::settings_group(
|
||||
ui,
|
||||
"Subtitles",
|
||||
Some(
|
||||
"Changes show on the playing video straight away. Plain subtitles (SRT) take all of this; styled ones (ASS) only the size and the position, unless you restyle them below.",
|
||||
"Changes show on the playing video straight away. Plain subtitles (SRT) take all of this; styled ones (ASS) keep their own look unless you restyle them below.",
|
||||
),
|
||||
|ui| {
|
||||
let mut chosen = style.clone();
|
||||
@@ -532,7 +532,7 @@ fn subtitle_form(ui: &mut egui::Ui, style: &SubtitleStyle, actions: &mut Vec<Act
|
||||
ui,
|
||||
"Restyle styled subtitles",
|
||||
Some(
|
||||
"Repaint styled (ASS) dialogue in this style too. Signs, songs and karaoke can come out wrong.",
|
||||
"Draw styled (ASS) dialogue in this style too, size and position included. Signs, songs and karaoke can come out wrong.",
|
||||
),
|
||||
|ui| {
|
||||
ui::widgets::toggle(ui, &mut chosen.restyle_styled, "");
|
||||
|
||||
Reference in new issue
Block a user