1
0
Fork 0
mirror of https://github.com/Nioux/AideDeJeu.git synced 2025-12-21 17:43:38 +00:00
This commit is contained in:
Yan Maniez 2018-08-05 22:26:31 +02:00
parent 55f522cb55
commit 6f92156b14
4 changed files with 59 additions and 19 deletions

View file

@ -181,18 +181,28 @@
<Setter Property="FontSize" Value="26" />
<Setter Property="TextColor" Value="{StaticResource titlered}" />
<Setter Property="FontFamily" Value="{DynamicResource LinuxLibertineCapitalsBold}" />
<Setter Property="FontAttributes" Value="Bold" />
</Style>
<Style TargetType="Label" x:Key="heading2">
<Setter Property="FontSize" Value="22" />
<Setter Property="TextColor" Value="{StaticResource titlered}" />
<Setter Property="FontFamily" Value="{DynamicResource LinuxLibertineCapitalsBold}" />
<Setter Property="FontAttributes" Value="Bold" />
</Style>
<Style TargetType="Label" x:Key="heading3">
<Setter Property="FontSize" Value="20" />
<Setter Property="TextColor" Value="{StaticResource titlered}" />
<Setter Property="FontFamily" Value="{DynamicResource LinuxLibertineCapitalsBold}" />
<Setter Property="FontAttributes" Value="Bold" />
</Style>
<Style TargetType="Label" x:Key="heading4">
<Setter Property="FontSize" Value="18" />
<Setter Property="TextColor" Value="{StaticResource titlered}" />
<Setter Property="FontFamily" Value="{DynamicResource LinuxLibertineCapitalsBold}" />
<Setter Property="FontAttributes" Value="Bold" />
</Style>
<Style TargetType="NavigationPage">

View file

@ -8,13 +8,6 @@ namespace AideDeJeuLib
{
public string Name { get; set; }
public int NameLevel { get; set; }
public string DisplayName
{
get
{
return new string(' ', NameLevel * 4) + Name;
}
}
public string AltName { get; set; }
public string AltNameText
{

View file

@ -30,7 +30,7 @@
<DataTemplate>
<ViewCell AutomationProperties.IsInAccessibleTree="True" AutomationId="machin" AutomationProperties.Name="hop">
<StackLayout Padding="10" Orientation="Vertical">
<Label Text="{Binding DisplayName}" LineBreakMode="NoWrap" Style="{Binding NameLevel,Converter={StaticResource HeaderLevelToStyleConverter}}" />
<Label Text="{Binding Name}" LineBreakMode="NoWrap" Style="{Binding NameLevel,Converter={StaticResource HeaderLevelToStyleConverter}}" />
<Label Text="{Binding AltNameText}" LineBreakMode="NoWrap" Style="{DynamicResource subsubsection}" FontSize="12" />
</StackLayout>
</ViewCell>