Skip to content

Commit

Permalink
歌词大小更加人性化
Browse files Browse the repository at this point in the history
+ 增加最小大小
  • Loading branch information
kengwang committed Feb 21, 2021
1 parent 284fca6 commit 9549610
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions HyPlayer/Controls/LyricItem.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ public LyricItem(SongLyric lrc)
private void Current_SizeChanged(object sender, Windows.UI.Core.WindowSizeChangedEventArgs e)
{

showsize = (int)Window.Current.Bounds.Width / 50;
hidsize = (int)Window.Current.Bounds.Width / 80;
showsize = Math.Max((int)Window.Current.Bounds.Width / 50, 18);
hidsize = Math.Max((int)Window.Current.Bounds.Width / 80, 14);
if (showing)
{
TextBoxTranslation.FontSize = showsize;
Expand Down

0 comments on commit 9549610

Please sign in to comment.