Skip to content

Commit

Permalink
#903 外置字幕效果不好,暂时屏蔽入口
Browse files Browse the repository at this point in the history
  • Loading branch information
ywmoyue committed Nov 20, 2024
1 parent 13b7ef6 commit 1603bb0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/BiliLite.UWP/Controls/PlayerControl.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -605,10 +605,10 @@
<Slider x:Name="SubtitleSettingBottom" Value="20" Minimum="4" Maximum="200" StepFrequency="4"></Slider>
<TextBlock Margin="0 8">繁体字幕转简体</TextBlock>
<ToggleSwitch x:Name="SubtitleSettingToSimplified" OnContent="开启" OffContent="关闭"></ToggleSwitch>
<TextBlock Margin="0 8">外置字幕</TextBlock>
<!--<TextBlock Margin="0 8">外置字幕</TextBlock>
<Button Click="BtnImportSubFile_OnClick">选择文件</Button>
<TextBlock Margin="0 8">外置字幕大小</TextBlock>
<Slider x:Name="OutsideSubtitleSettingSize" Value="3" Minimum="1" Maximum="15" StepFrequency="1"></Slider>
<Slider x:Name="OutsideSubtitleSettingSize" Value="3" Minimum="1" Maximum="15" StepFrequency="1"></Slider>-->
</StackPanel>
</ScrollViewer>
</PivotItem>
Expand Down
14 changes: 7 additions & 7 deletions src/BiliLite.UWP/Controls/PlayerControl.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -605,13 +605,13 @@ private void LoadSutitleSetting()
UpdateSubtitle();
});
//外置字幕大小
OutsideSubtitleSettingSize.Value = 3;//SettingService.GetValue<double>(SettingConstants.Player.SUBTITLE_SIZE, 40);
OutsideSubtitleSettingSize.ValueChanged += new RangeBaseValueChangedEventHandler((e, args) =>
{
if (miniWin) return;
//SettingService.SetValue<double>(SettingConstants.Player.SUBTITLE_SIZE, SubtitleSettingSize.Value);
m_assSubtitleController.SetFontZoom((int)OutsideSubtitleSettingSize.Value);
});
//OutsideSubtitleSettingSize.Value = 3;//SettingService.GetValue<double>(SettingConstants.Player.SUBTITLE_SIZE, 40);
//OutsideSubtitleSettingSize.ValueChanged += new RangeBaseValueChangedEventHandler((e, args) =>
//{
// if (miniWin) return;
// //SettingService.SetValue<double>(SettingConstants.Player.SUBTITLE_SIZE, SubtitleSettingSize.Value);
// m_assSubtitleController.SetFontZoom((int)OutsideSubtitleSettingSize.Value);
//});
//字幕描边颜色
SubtitleSettingBorderColor.SelectedIndex = SettingService.GetValue<int>(SettingConstants.Player.SUBTITLE_BORDER_COLOR, 0);
SubtitleSettingBorderColor.SelectionChanged += new SelectionChangedEventHandler((e, args) =>
Expand Down

0 comments on commit 1603bb0

Please sign in to comment.