Skip to content
This repository has been archived by the owner on Feb 16, 2021. It is now read-only.

Commit

Permalink
Revert "小改登录UI"
Browse files Browse the repository at this point in the history
This reverts commit c5a0901.
  • Loading branch information
tobiichiamane committed Jun 1, 2020
1 parent 3d620d1 commit df76be1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
5 changes: 2 additions & 3 deletions PixivFSUWP/LoginPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
</Page.Resources>
<Grid>
<Image Source="Assets/LoginBG.jpg" Stretch="UniformToFill"/>
<Grid MinHeight="480" Width="400"
<Grid Height="480" Width="400"
HorizontalAlignment="Center" VerticalAlignment="Center">
<Grid.Background>
<AcrylicBrush BackgroundSource="Backdrop" TintOpacity="0.4" TintColor="{ThemeResource SystemAltHighColor}" FallbackColor="{ThemeResource SystemAltMediumColor}"/>
Expand All @@ -103,8 +103,6 @@
<Button x:Name="btnLogin" Click="BtnLogin_Click" Margin="5,3" HorizontalAlignment="Stretch" x:Uid="Login"
Style="{StaticResource LoginButtonStyle}" Background="{ThemeResource SystemAccentColor}" Foreground="{ThemeResource ButtonForegroundThemeBrush}"/>
<Button x:Name="btnReg" Click="BtnReg_Click" Margin="5,3" HorizontalAlignment="Stretch" x:Uid="Register"/>
<HyperlinkButton x:Name="btnTrouble" Click="BtnTrouble_Click" Grid.Row="2" HorizontalAlignment="Stretch" VerticalAlignment="Center" Margin="5" x:Uid="LoginFailed"/>

</StackPanel>
<Grid x:Name="grdLoading" Margin="20" Visibility="Collapsed" Grid.Row="1" Grid.RowSpan="2">
<Grid.RowDefinitions>
Expand All @@ -114,6 +112,7 @@
</Grid.RowDefinitions>
<TextBlock HorizontalAlignment="Center" VerticalAlignment="Center" x:Uid="LoggingIn"/>
<ProgressRing x:Name="ringProgress" IsActive="False" Margin="20" Height="100" Width="100" Grid.Row="1"/>
<Button x:Name="btnTrouble" Click="BtnTrouble_Click" Grid.Row="2" HorizontalAlignment="Stretch" VerticalAlignment="Center" Margin="5" x:Uid="LoginFailed"/>
</Grid>
</Grid>
<Grid HorizontalAlignment="Right" VerticalAlignment="Bottom">
Expand Down
7 changes: 2 additions & 5 deletions PixivFSUWP/LoginPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -150,17 +150,14 @@ private async void Login()
if (isCancelled) resetView();
else Frame.Navigate(typeof(MainPage),null, App.FromRightTransitionInfo);
}
else
{
resetView();
btnTrouble.Visibility = Visibility.Visible;
}
else btnTrouble.Visibility = Visibility.Visible;
}

private async void BtnTrouble_Click(object sender, RoutedEventArgs e)
{
await Launcher.LaunchUriAsync(new
Uri(@"https://github.com/tobiichiamane/pixivfs-uwp/blob/master/TroubleShoot.md"));
resetView();
}

private void resetView()
Expand Down

0 comments on commit df76be1

Please sign in to comment.