Skip to content

Commit

Permalink
dropshadow for flyleaf subtitles
Browse files Browse the repository at this point in the history
  • Loading branch information
insomniachi committed Dec 31, 2023
1 parent 5eedea2 commit c52fa29
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 13 deletions.
2 changes: 1 addition & 1 deletion Totoro.Core/Totoro.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
<PackageReference Include="Microsoft.Extensions.Http" Version="8.0.0" />
<PackageReference Include="Splat.Serilog" Version="14.8.12" />
<PackageReference Include="System.ServiceModel.Syndication" Version="8.0.0" />
<PackageReference Include="YoutubeExplode" Version="6.3.9" />
<PackageReference Include="YoutubeExplode" Version="6.3.10" />
<PackageReference Include="DiscordRichPresence" Version="1.2.1.24" />
</ItemGroup>

Expand Down
34 changes: 23 additions & 11 deletions Totoro.WinUI/Media/Flyleaf/FlyleafTransportControls.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,29 @@
<SolidColorBrush Opacity="0.5" Color="Black" />
</Button.Background>
</Button>
<TextBlock
Margin="0,0,0,50"
HorizontalAlignment="Center"
VerticalAlignment="Bottom"
FontSize="50"
FontWeight="SemiBold"
Foreground="White"
Text="{x:Bind Player.Subtitles.SubsText, Mode=OneWay}"
TextAlignment="Center"
TextWrapping="Wrap"
Visibility="{x:Bind help:Converters.StringToVisibility(Player.Subtitles.SubsText), Mode=OneWay}" />
<Grid>
<Border x:Name="ShadowTarget" />
<TextBlock
Margin="0,0,0,50"
HorizontalAlignment="Center"
VerticalAlignment="Bottom"
FontSize="50"
FontWeight="SemiBold"
Foreground="White"
Text="{x:Bind Player.Subtitles.SubsText, Mode=OneWay}"
TextAlignment="Center"
TextWrapping="Wrap"
Visibility="{x:Bind help:Converters.StringToVisibility(Player.Subtitles.SubsText), Mode=OneWay}">
<ui:Effects.Shadow>
<ui:AttachedDropShadow
BlurRadius="10"
CastTo="{x:Bind ShadowTarget}"
CornerRadius="0"
Offset="0" />
</ui:Effects.Shadow>
</TextBlock>
</Grid>

</Grid>

<Grid
Expand Down
2 changes: 1 addition & 1 deletion Totoro.WinUI/Totoro.WinUI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
<PackageReference Include="CommunityToolkit.WinUI.UI.Controls.DataGrid" Version="7.1.2" />
<PackageReference Include="CommunityToolkit.WinUI.UI.Controls.Layout" Version="7.1.2" />
<PackageReference Include="CommunityToolkit.WinUI.UI.Controls.Primitives" Version="7.1.2" />
<PackageReference Include="FlyleafLib.Controls.WinUI" Version="1.0.20" />
<PackageReference Include="FlyleafLib.Controls.WinUI" Version="1.0.21" />

<PackageReference Include="H.NotifyIcon.WinUI" Version="2.0.123" />
<PackageReference Include="Microsoft.Extensions.Hosting" Version="8.0.0" />
Expand Down

0 comments on commit c52fa29

Please sign in to comment.