Skip to content

Commit 95c15d5

Browse files
committed
Redesign RegisterFinalizationPage
1 parent ad8bea4 commit 95c15d5

File tree

1 file changed

+20
-9
lines changed

1 file changed

+20
-9
lines changed

Signal-Windows/Views/RegisterFinalizationPage.xaml

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,27 @@
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
<Grid.RowDefinitions>
28-
<RowDefinition Height="Auto" />
29-
<RowDefinition Height="Auto" />
30-
<RowDefinition Height="Auto" />
31-
<RowDefinition Height="Auto" />
32-
<RowDefinition Height="Auto" />
40+
<RowDefinition Height="*" />
41+
<RowDefinition Height="*" />
3342
</Grid.RowDefinitions>
34-
<TextBlock Grid.Row="0" Foreground="White" FontSize="35" HorizontalAlignment="Center" Margin="20 20 20 20">Connect with Signal</TextBlock>
35-
<TextBlock Grid.Row="1" Foreground="White" HorizontalAlignment="Center">Please enter your SMS verification code below:</TextBlock>
36-
<TextBox Grid.Row="2" Width="200" Text="{x:Bind Vm.VerificationCode, Mode=TwoWay}" IsEnabled="{x:Bind Vm.UIEnabled, Mode=OneWay}"/>
37-
<Button Grid.Row="3" Background="White" Foreground="#2190EA" HorizontalAlignment="Center" Width="200" Margin="20 20 20 20" Click="FinishButton_Click" IsEnabled="{x:Bind Vm.UIEnabled, Mode=OneWay}">Finish Registration</Button>
43+
<TextBlock x:Name="TitleTextBlock" Grid.Row="0" Foreground="White" FontSize="34" HorizontalAlignment="Center" FontWeight="Light" Text="Connect with Signal" VerticalAlignment="Center"/>
44+
<StackPanel Grid.Row="1">
45+
<TextBlock Foreground="White" HorizontalAlignment="Center" Text="Enter your SMS verification code" FontSize="24" FontWeight="SemiLight"/>
46+
<TextBox Width="200" Text="{x:Bind Vm.VerificationCode, Mode=TwoWay}" IsEnabled="{x:Bind Vm.UIEnabled, Mode=OneWay}" Margin="0,16,0,0"/>
47+
<Button Background="White" Foreground="#2190EA" HorizontalAlignment="Center" Width="200" Margin="20 20 20 20" Click="FinishButton_Click" IsEnabled="{x:Bind Vm.UIEnabled, Mode=OneWay}" Content="Finish Registration"/>
48+
</StackPanel>
3849
</Grid>
3950
</Page>

0 commit comments

Comments
 (0)