mirror of
https://github.com/jayfunc/BetterLyrics.git
synced 2026-01-12 10:54:55 +08:00
chores: improve layout
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
<Identity
|
||||
Name="37412.BetterLyrics"
|
||||
Publisher="CN=E1428B0E-DC1D-4EA4-ACB1-4556569D5BA9"
|
||||
Version="1.0.154.0" />
|
||||
Version="1.0.156.0" />
|
||||
|
||||
<mp:PhoneIdentity PhoneProductId="ca4a4830-fc19-40d9-b823-53e2bff3d816" PhonePublisherId="00000000-0000-0000-0000-000000000000"/>
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition x:Name="TrackSummaryRowDef" Height="*" />
|
||||
<RowDefinition x:Name="MiddleGapRowDef" Height="0" />
|
||||
<RowDefinition x:Name="LyricsRowDef" Height="2.5*" />
|
||||
<RowDefinition x:Name="LyricsRowDef" Height="2*" />
|
||||
</Grid.RowDefinitions>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition x:Name="LeftGapDef" Width="0" />
|
||||
@@ -48,8 +48,7 @@
|
||||
x:Name="TrackSummaryGrid"
|
||||
Grid.Row="0"
|
||||
Grid.Column="1"
|
||||
VerticalAlignment="Center"
|
||||
SizeChanged="TrackSummaryGrid_SizeChanged">
|
||||
VerticalAlignment="Center">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition x:Name="TrackSummaryGridRow0" Height="0" />
|
||||
<RowDefinition x:Name="TrackSummaryGridRow1" Height="*" />
|
||||
|
||||
@@ -345,7 +345,7 @@ namespace BetterLyrics.WinUI3.Views
|
||||
}
|
||||
else
|
||||
{
|
||||
middleGapCol = Math.Max(16, width * 0.1);
|
||||
middleGapCol = Math.Max(16, width * 0.15);
|
||||
}
|
||||
|
||||
if (height < 100)
|
||||
@@ -360,12 +360,12 @@ namespace BetterLyrics.WinUI3.Views
|
||||
switch (status.LyricsLayoutOrientation)
|
||||
{
|
||||
case LyricsLayoutOrientation.Horizontal:
|
||||
xMargin = Math.Max(16, Math.Min(width, height) * 0.3);
|
||||
xMargin = Math.Max(16, Math.Min(width, height) * 0.25);
|
||||
yMargin = Math.Max(16, Math.Min(width, height) * 0.15);
|
||||
break;
|
||||
case LyricsLayoutOrientation.Vertical:
|
||||
xMargin = Math.Max(16, Math.Min(width, height) * 0.05);
|
||||
yMargin = xMargin;
|
||||
xMargin = Math.Max(16, Math.Min(width, height) * 0.15);
|
||||
yMargin = Math.Max(16, Math.Min(width, height) * 0.10);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
@@ -631,26 +631,6 @@ namespace BetterLyrics.WinUI3.Views
|
||||
OnLayoutChanged();
|
||||
}
|
||||
|
||||
private void TrackSummaryGrid_SizeChanged(object sender, SizeChangedEventArgs e)
|
||||
{
|
||||
//var status = _liveStatesService.LiveStates.LyricsWindowStatus;
|
||||
//switch (status.LyricsLayoutOrientation)
|
||||
//{
|
||||
// case LyricsLayoutOrientation.Horizontal:
|
||||
// TitleAutoScrollHoverEffectView.Width = AlbumArtImage.ActualWidth;
|
||||
// ArtistsAutoScrollHoverEffectView.Width = AlbumArtImage.ActualWidth;
|
||||
// AlbumAutoScrollHoverEffectView.Width = AlbumArtImage.ActualWidth;
|
||||
// break;
|
||||
// case LyricsLayoutOrientation.Vertical:
|
||||
// TitleAutoScrollHoverEffectView.Width = AlbumArtImage.ActualWidth * 3;
|
||||
// ArtistsAutoScrollHoverEffectView.Width = AlbumArtImage.ActualWidth * 3;
|
||||
// AlbumAutoScrollHoverEffectView.Width = AlbumArtImage.ActualWidth * 3;
|
||||
// break;
|
||||
// default:
|
||||
// break;
|
||||
//}
|
||||
}
|
||||
|
||||
private void ShadowCastGrid_SizeChanged(object sender, SizeChangedEventArgs e)
|
||||
{
|
||||
UpdateAlbumArtCornerRadius();
|
||||
|
||||
Reference in New Issue
Block a user