mirror of
https://github.com/sp-tarkov/launcher.git
synced 2025-02-12 17:10:44 -05:00
scale text in detailed profile
This commit is contained in:
parent
1d7c232bb4
commit
6387edfb3d
@ -6,7 +6,8 @@
|
|||||||
xmlns:cvt="using:SPT.Launcher.Converters"
|
xmlns:cvt="using:SPT.Launcher.Converters"
|
||||||
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
|
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
|
||||||
x:Class="SPT.Launcher.CustomControls.DetailedProfileCard"
|
x:Class="SPT.Launcher.CustomControls.DetailedProfileCard"
|
||||||
MinWidth="250" MinHeight="250"
|
MinWidth="250" MinHeight="300"
|
||||||
|
MaxWidth="250" MaxHeight="300"
|
||||||
PointerEntered="InputElement_OnPointerEntered"
|
PointerEntered="InputElement_OnPointerEntered"
|
||||||
PointerExited="InputElement_OnPointerExited"
|
PointerExited="InputElement_OnPointerExited"
|
||||||
PointerPressed="InputElement_OnPointerPressed"
|
PointerPressed="InputElement_OnPointerPressed"
|
||||||
@ -26,22 +27,26 @@
|
|||||||
</Transitions>
|
</Transitions>
|
||||||
</Border.Transitions>
|
</Border.Transitions>
|
||||||
|
|
||||||
<Grid RowDefinitions="Auto, Auto, *, Auto, Auto" ColumnDefinitions="Auto, *, Auto" Margin="10">
|
<Grid RowDefinitions="30, Auto, *, 20, Auto" ColumnDefinitions="Auto, *, Auto" Margin="10">
|
||||||
<!-- SPT version -->
|
<!-- SPT version -->
|
||||||
<Label x:Name="SptVersion" Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="3"
|
<Viewbox Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="3" Stretch="Uniform">
|
||||||
|
<Label x:Name="SptVersion"
|
||||||
Background="Transparent" HorizontalAlignment="Center"
|
Background="Transparent" HorizontalAlignment="Center"
|
||||||
ToolTip.Tip="{Binding $parent[UserControl].ProfileInfo.MismatchMessage}"
|
ToolTip.Tip="{Binding $parent[UserControl].ProfileInfo.MismatchMessage}"
|
||||||
Classes.versionMismatch="{Binding $parent[UserControl].ProfileInfo.VersionMismatch}"
|
Classes.versionMismatch="{Binding $parent[UserControl].ProfileInfo.VersionMismatch}"
|
||||||
>
|
>
|
||||||
<StackPanel Orientation="Horizontal">
|
<TextBlock>
|
||||||
<TextBlock Text="{Binding $parent[UserControl].ProfileInfo.SPT.version}"
|
<Run Text="{Binding $parent[UserControl].ProfileInfo.SPT.version}"
|
||||||
/>
|
/>
|
||||||
|
<InlineUIContainer>
|
||||||
<Path Data="{StaticResource Alert}" Fill="{Binding ElementName=SptVersion, Path=Foreground}"
|
<Path Data="{StaticResource Alert}" Fill="{Binding ElementName=SptVersion, Path=Foreground}"
|
||||||
Margin="10 0"
|
Margin="10 0"
|
||||||
IsVisible="{Binding $parent[UserControl].ProfileInfo.VersionMismatch}"
|
IsVisible="{Binding $parent[UserControl].ProfileInfo.VersionMismatch}"
|
||||||
/>
|
/>
|
||||||
</StackPanel>
|
</InlineUIContainer>
|
||||||
|
</TextBlock>
|
||||||
</Label>
|
</Label>
|
||||||
|
</Viewbox>
|
||||||
|
|
||||||
<!-- Side image -->
|
<!-- Side image -->
|
||||||
<Image Grid.Row="1" Grid.Column="0"
|
<Image Grid.Row="1" Grid.Column="0"
|
||||||
@ -89,21 +94,16 @@
|
|||||||
</StackPanel>
|
</StackPanel>
|
||||||
|
|
||||||
<!-- remaining xp -->
|
<!-- remaining xp -->
|
||||||
<StackPanel Grid.Row="3" Grid.Column="0" Grid.ColumnSpan="3"
|
<Viewbox Grid.Row="3" Grid.Column="0" Grid.ColumnSpan="3" Stretch="Uniform" IsVisible="{Binding $parent[UserControl].ProfileInfo.HasData}">
|
||||||
HorizontalAlignment="Center"
|
<TextBlock>
|
||||||
Orientation="Horizontal"
|
<Run Text="{Binding Source={x:Static helpers:LocalizationProvider.Instance}, Path=next_level_in}"/>
|
||||||
IsVisible="{Binding $parent[UserControl].ProfileInfo.HasData}"
|
<Run Text="{Binding $parent[UserControl].ProfileInfo.RemainingExp}" Foreground="{DynamicResource AccentBrush}"/>
|
||||||
>
|
<Run>xp</Run>
|
||||||
<Label Content="{Binding Source={x:Static helpers:LocalizationProvider.Instance}, Path=next_level_in}"/>
|
</TextBlock>
|
||||||
<Label Content="{Binding $parent[UserControl].ProfileInfo.RemainingExp}"
|
</Viewbox>
|
||||||
FontWeight="SemiBold"
|
|
||||||
Classes="acc"
|
|
||||||
/>
|
|
||||||
<Label Content="xp"/>
|
|
||||||
</StackPanel>
|
|
||||||
|
|
||||||
<!-- xp progress -->
|
<!-- xp progress -->
|
||||||
<ProgressBar Grid.Row="4" Grid.Column="0" Grid.ColumnSpan="3"
|
<ProgressBar Grid.Row="4" Grid.Column="0" Grid.ColumnSpan="2" Margin="0 10"
|
||||||
Value="{Binding $parent[UserControl].ProfileInfo.XPLevelProgress}"
|
Value="{Binding $parent[UserControl].ProfileInfo.XPLevelProgress}"
|
||||||
IsVisible="{Binding $parent[UserControl].ProfileInfo.HasData}"
|
IsVisible="{Binding $parent[UserControl].ProfileInfo.HasData}"
|
||||||
/>
|
/>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user