Skip to content

Commit

Permalink
Enlarge Game font in List Mode
Browse files Browse the repository at this point in the history
  • Loading branch information
ashpynov committed Dec 22, 2024
1 parent 321b21a commit 9f8db8d
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 22 deletions.
1 change: 1 addition & 0 deletions Constants.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@
<sys:Double x:Key="FontSize">32</sys:Double>
<sys:Double x:Key="FontSizeLarge">40</sys:Double>
<sys:Double x:Key="FontSizeMedium">32</sys:Double>
<sys:Double x:Key="FontSizeExtraLarge">46</sys:Double>

<FontFamily x:Key="FontAltIcoFont">Segoe MDL2 Assets</FontFamily>
<FontFamily x:Key="FontThemeMain">Segoe UI Light</FontFamily>
Expand Down
33 changes: 15 additions & 18 deletions DerivedStyles/ListGameItemTemplate.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
<StackPanel Orientation="Horizontal" Margin="10"
Background="Transparent">
<!-- Contenu principal du modèle -->
<Grid x:Name="ImageCover" Width="75" MaxHeight="100" VerticalAlignment="Center">
<Grid x:Name="ImageCover" Width="105" MaxHeight="140" VerticalAlignment="Center">
<!-- Masque pour l'opacité de l'image -->
<Border x:Name="Mask" Background="#181A1E"
BorderThickness="0" CornerRadius="0" />
Expand All @@ -111,8 +111,9 @@
Source="{Binding CoverImageObject}"
StretchDirection="Both"
VerticalAlignment="Top"
MaxHeight="100"
HorizontalAlignment="Center"
MaxHeight="140"
Width="105"
HorizontalAlignment="Right"
Stretch="UniformToFill" />
<!-- Indicateur visuel de jeu en cours -->
<Canvas x:Name="Playing" Visibility="Collapsed">
Expand All @@ -131,24 +132,20 @@
</Grid.OpacityMask>
</Grid>
<StackPanel MinWidth="300" Orientation="Vertical"
Margin="10,0,0,0" VerticalAlignment="Center">
Margin="20,0,0,0" VerticalAlignment="Center">
<TextBlock Text="{Binding DisplayName}"
TextTrimming="CharacterEllipsis"
Style="{DynamicResource ThemeTextBlockBaseStyle}"
FontSize="{DynamicResource FontSizeSmall}"
FontSize="{DynamicResource FontSizeExtraLarge}"
HorizontalAlignment="Left" VerticalAlignment="Top"
TextAlignment="Left"
Padding="0,0,0,5"
Background="Transparent" />
<Canvas x:Name="GameIsRunningLine" Visibility="Collapsed" Margin="0, 0, 0, 14">
<Polygon Points="3,0 33,0 30,3 0,3" Fill="{DynamicResource StatusBadgeBrush}"
Opacity="1" />
<Polygon Points="35,0 43,0 40,3 32,3" Fill="{DynamicResource StatusBadgeBrush}"
Opacity="1" />
<Polygon Points="45,0 50,0 47,3 42,3" Fill="{DynamicResource StatusBadgeBrush}"
Opacity="1" />
<Polygon Points="52,0 55,0 52,3 49,3" Fill="{DynamicResource StatusBadgeBrush}"
Opacity="1" />
<Canvas x:Name="GameIsRunningLine" Visibility="Collapsed" Margin="0, 0, 0, 14">
<Polygon Points="9,0 99,0 90,9 0,9" Fill="{DynamicResource StatusBadgeBrush}" Opacity="1" />
<Polygon Points="105,0 129,0 120,9 96,9" Fill="{DynamicResource StatusBadgeBrush}" Opacity="1" />
<Polygon Points="135,0 150,0 141,9 126,9" Fill="{DynamicResource StatusBadgeBrush}" Opacity="1" />
<Polygon Points="156,0 165,0 156,9 147,9" Fill="{DynamicResource StatusBadgeBrush}" Opacity="1" />
</Canvas>
<StackPanel x:Name="GameInfoPanel" HorizontalAlignment="Left"
Orientation="Horizontal" VerticalAlignment="Center">
Expand All @@ -162,7 +159,7 @@
TextAlignment="Center"
MinWidth="220"
Padding="5,0,5,4"
FontSize="{DynamicResource FontSizeSmall}"
FontSize="{DynamicResource FontSizeMedium}"
Style="{DynamicResource ButtonTextBlockBoldStyle}">
<TextBlock.Style>
<Style TargetType="TextBlock">
Expand All @@ -179,13 +176,13 @@
Margin="10,0,5,0"
VerticalAlignment="Center"
FontFamily="{StaticResource FontIcoFont}"
FontSize="{DynamicResource FontSizeSmall}"
FontSize="{DynamicResource FontSizeMedium}"
Style="{StaticResource HltbAltStyle}" />
<TextBlock
Text="{Binding Playtime, Converter={StaticResource PlayTimeToStringConverter}}"
Margin="0,0,0,4"
VerticalAlignment="Center"
FontSize="{DynamicResource FontSizeSmall}"
FontSize="{DynamicResource FontSizeMedium}"
Style="{StaticResource HltbAltStyle}" />
</StackPanel>
</StackPanel>
Expand Down Expand Up @@ -235,7 +232,7 @@
<Setter TargetName="MainBorder" Property="Visibility" Value="Visible"/>
</Trigger>
<Trigger Property="IsSelected" Value="False">
<Setter TargetName="Content" Property="Margin" Value="38,0,0,0"/>
<Setter TargetName="Content" Property="Margin" Value="52,0,0,0"/>
<Setter TargetName="Content" Property="Opacity" Value="0.8"/>
</Trigger>
</ControlTemplate.Triggers>
Expand Down
Binary file modified Icons/Filter/Sega Genesis.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
39 changes: 35 additions & 4 deletions Views/Main.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -1970,6 +1970,8 @@

</StackPanel>
</Grid>

<!-- Chemin du logo -->
<!--Wallpaper Vertical List-->
<Grid x:Name="DetailsPanel"
Grid.Row="1"
Expand All @@ -1989,7 +1991,7 @@
<ControlTemplate
TargetType="{x:Type GameDetails}">
<DockPanel x:Name="ListDetailsPannel"
Width="860"
Width="800"
Margin="20,5,0,0"
HorizontalAlignment="Left"
VerticalAlignment="Stretch"
Expand Down Expand Up @@ -2193,6 +2195,35 @@
</Style>
</ContentControl.Style>
</ContentControl>
<TextBlock Name="BezelPath" Tag="{Api Paths.ConfigurationPath}"
Visibility="Collapsed">
<TextBlock.Style>
<Style TargetType="TextBlock">
<Setter Property="Text">
<Setter.Value>
<MultiBinding StringFormat="{}{0}{1}{2}{3}">
<Binding RelativeSource="{RelativeSource Self}"
Path="Tag" />
<Binding Source="\ExtraMetadata\games\" />
<Binding Path="Id" />
<Binding Source="\bezel.png" />
</MultiBinding>
</Setter.Value>
</Setter>
</Style>
</TextBlock.Style>
</TextBlock>
<Image Name="BezelImage" Stretch="Uniform"
RenderOptions.BitmapScalingMode="Fant"
VerticalAlignment="Center" HorizontalAlignment="Center"
Tag="{Api Paths.ConfigurationPath}">
<Image.Style>
<Style TargetType="Image">
<Setter Property="Source"
Value="{Binding ElementName=BezelPath, Path=Text, Converter={StaticResource ImageStringToImageConverter}}" />
</Style>
</Image.Style>
</Image>
</Grid>


Expand Down Expand Up @@ -2618,7 +2649,7 @@
<!-- <Setter Property="Grid.RowSpan" Value="2" /> -->
<Setter Property="Grid.ColumnSpan" Value="2" />
<Setter Property="Height" Value="920" />
<Setter Property="Width" Value="900" />
<Setter Property="Width" Value="1000" />
<Setter Property="VerticalAlignment" Value="Top" />
<Setter Property="Opacity" Value="0" />
<Setter Property="Margin"
Expand All @@ -2629,8 +2660,8 @@
<Storyboard FillBehavior="HoldEnd">
<ThicknessAnimation
Storyboard.TargetProperty="Margin"
From="850,0,-670,-550"
To="850,0,-100,-570"
From="750,0,-670,-550"
To="750,0,-100,-570"
Duration="0:0:1"
DecelerationRatio="0.5" />
<DoubleAnimation
Expand Down

0 comments on commit 9f8db8d

Please sign in to comment.