Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New UI #49

Merged
merged 12 commits into from
Nov 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
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