Skip to content

Commit

Permalink
Merge pull request #49 from 0blu/new-ui
Browse files Browse the repository at this point in the history
New UI
  • Loading branch information
0blu authored Nov 10, 2023
2 parents 4431e60 + 5ebfbce commit e03cd29
Show file tree
Hide file tree
Showing 42 changed files with 1,791 additions and 1,319 deletions.
14 changes: 14 additions & 0 deletions WinterspringLauncher/App.axaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<Application xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:Class="WinterspringLauncher.App"
RequestedThemeVariant="Dark">
<Application.Styles>
<SimpleTheme />
<!--<FluentTheme />-->
</Application.Styles>
<Application.Resources>
<FontFamily x:Key="MonoFont">avares://WinterspringLauncher/Assets/fonts/RobotoMono-Regular.ttf#</FontFamily>
<!--<FontFamily x:Key="MonoFont">Assets\\fonts\\RobotoMono-Regular.ttf</FontFamily>-->
<SolidColorBrush x:Key="TerminalBackground">#111111</SolidColorBrush>
</Application.Resources>
</Application>
28 changes: 28 additions & 0 deletions WinterspringLauncher/App.axaml.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
using Avalonia;
using Avalonia.Controls.ApplicationLifetimes;
using Avalonia.Markup.Xaml;
using WinterspringLauncher.ViewModels;
using WinterspringLauncher.Views;

namespace WinterspringLauncher;

public partial class App : Application
{
public override void Initialize()
{
AvaloniaXamlLoader.Load(this);
}

public override void OnFrameworkInitializationCompleted()
{
if (ApplicationLifetime is IClassicDesktopStyleApplicationLifetime desktop)
{
desktop.MainWindow = new MainWindow
{
DataContext = new MainWindowViewModel() // <-- Will also initialize LauncherLogic
};
}

base.OnFrameworkInitializationCompleted();
}
}
3 changes: 3 additions & 0 deletions WinterspringLauncher/Assets/Resources.axaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<ResourceDictionary xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
</ResourceDictionary>
Binary file not shown.
Binary file added WinterspringLauncher/Assets/icons/folder.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added WinterspringLauncher/Assets/icons/github.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
https://www.flaticon.com/packs/countrys-flags
Binary file added WinterspringLauncher/Assets/icons/reset.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added WinterspringLauncher/Assets/icons/settings.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions WinterspringLauncher/Assets/translations/en.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"start_game": "Start Game"
}

This file was deleted.

Loading

0 comments on commit e03cd29

Please sign in to comment.