Skip to content

Commit 7392458

Browse files
committed
Make StartPage better on phones
1 parent 8034b25 commit 7392458

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

Signal-Windows/Views/StartPage.xaml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,21 @@
2424
</Page.Resources>
2525

2626
<Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
27+
<VisualStateManager.VisualStateGroups>
28+
<VisualStateGroup>
29+
<VisualState>
30+
<VisualState.StateTriggers>
31+
<AdaptiveTrigger MinWindowWidth="640"/>
32+
</VisualState.StateTriggers>
33+
<VisualState.Setters>
34+
<Setter Target="TitleTextBlock.FontSize" Value="46"/>
35+
</VisualState.Setters>
36+
</VisualState>
37+
</VisualStateGroup>
38+
</VisualStateManager.VisualStateGroups>
2739
<StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
2840
<Image Source="ms-appx:///Assets/logo-idea-2.png" Width="256"/>
29-
<TextBlock Text="Welcome to Signal for Windows" Foreground="White" FontSize="46" FontWeight="Light" HorizontalAlignment="Center" Margin="0,50,0,0"/>
41+
<TextBlock x:Name="TitleTextBlock" Text="Welcome to Signal for Windows" Foreground="White" FontSize="24" FontWeight="Light" HorizontalAlignment="Center" Margin="0,50,0,0"/>
3042
<Button x:Name="RegisterButton" HorizontalAlignment="Center" Foreground="#2190EA" Background="White" Content="Register a new Signal account" Margin="0,50,0,0" Click="RegisterButton_Click"/>
3143
<Button x:Name="LinkButton" HorizontalAlignment="Center" Foreground="#2190EA" Background="White" Content="Link to an existing Signal account" Margin="0,20,0,0" Click="LinkButton_Click"/>
3244
</StackPanel>

0 commit comments

Comments
 (0)