Skip to content

Commit

Permalink
More cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
WamWooWam committed Sep 9, 2024
1 parent e44f9b3 commit ea4e7e1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 17 deletions.
2 changes: 0 additions & 2 deletions Unicord.Universal/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ public App()
{
InitializeComponent();

var provider = VersionHelper.RegisterVersionProvider<UnicordVersionProvider>();
var theme = (ElementTheme)LocalSettings.Read(REQUESTED_COLOUR_SCHEME, (int)ElementTheme.Default);
switch (theme)
{
Expand All @@ -78,7 +77,6 @@ public App()
UnhandledException += OnUnhandledException;

Debug.WriteLine("Welcome to Unicord!");
Debug.WriteLine(provider.GetVersionString());
}

private void OnUnhandledException(object sender, UnhandledExceptionEventArgs e)
Expand Down
24 changes: 9 additions & 15 deletions Unicord.Universal/Pages/LoginPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,26 +6,20 @@
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:lib="using:Microsoft.UI.Xaml.Controls"
mc:Ignorable="d" SizeChanged="Page_SizeChanged"
mc:Ignorable="d"
Loaded="Page_Loaded">
<Grid>
<StackPanel MaxWidth="400" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="20">
<Image Source="{ThemeResource DiscordWordMark}" Margin="0,12" />
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition />
<ColumnDefinition />
</Grid.ColumnDefinitions>

<Button x:Name="TokenLoginButton"
x:Uid="/LoginPage/LoginWithTokenButton"
Content="Login with Token"
Click="TokenLoginButton_Click"
BorderThickness="0"
HorizontalAlignment="Stretch">
</Button>
</Grid>

<Button x:Name="TokenLoginButton"
x:Uid="/LoginPage/LoginWithTokenButton"
Content="Login with Token"
Click="TokenLoginButton_Click"
BorderThickness="0"
HorizontalAlignment="Stretch"
Style="{ThemeResource AccentButtonStyle}">
</Button>
</StackPanel>
</Grid>
</Page>

0 comments on commit ea4e7e1

Please sign in to comment.