-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Complete rewrite in avalonia, uses nativeaot for compiling the binary.
- Loading branch information
1 parent
30a6e7b
commit fb1f815
Showing
37 changed files
with
1,270 additions
and
4,704 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 15 additions & 14 deletions
29
PresenceClient/PresenceClient-CLI/PresenceClient-CLI.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,21 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<OutputType>Exe</OutputType> | ||
<TargetFramework>net6.0</TargetFramework> | ||
<RootNamespace>PresenceClient_CLI</RootNamespace> | ||
<ApplicationIcon>Icon.ico</ApplicationIcon> | ||
<LangVersion>latestmajor</LangVersion> | ||
</PropertyGroup> | ||
<PropertyGroup> | ||
<OutputType>Exe</OutputType> | ||
<TargetFramework>net8.0</TargetFramework> | ||
<RootNamespace>PresenceClient_CLI</RootNamespace> | ||
<ApplicationIcon>Icon.ico</ApplicationIcon> | ||
<LangVersion>latestmajor</LangVersion> | ||
<PublishAot>true</PublishAot> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="CommandLineParser" Version="2.9.1" /> | ||
<PackageReference Include="DiscordRichPresence" Version="1.0.175" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<PackageReference Include="CommandLineParser" Version="2.9.1"/> | ||
<PackageReference Include="DiscordRichPresence" Version="1.2.1.24"/> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\PresenceCommon\PresenceCommon.csproj" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<ProjectReference Include="..\PresenceCommon\PresenceCommon.csproj"/> | ||
</ItemGroup> | ||
|
||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<Application xmlns="https://github.com/avaloniaui" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
x:Class="PresenceClient.App" | ||
RequestedThemeVariant="Default"> | ||
<Application.Styles> | ||
<Style Selector="Button.accent"> | ||
<Setter Property="Background" Value="#FF6200EE"/> | ||
<Setter Property="Foreground" Value="White"/> | ||
<Setter Property="FontWeight" Value="Bold"/> | ||
<Setter Property="CornerRadius" Value="4"/> | ||
</Style> | ||
</Application.Styles> | ||
|
||
<Application.Styles> | ||
<FluentTheme /> | ||
</Application.Styles> | ||
|
||
<Application.Resources> | ||
<SolidColorBrush x:Key="PrimaryBackgroundColor">#FFFFFF</SolidColorBrush> | ||
<SolidColorBrush x:Key="PrimaryForegroundColor">#000000</SolidColorBrush> | ||
<SolidColorBrush x:Key="AccentColor">#0078D7</SolidColorBrush> | ||
</Application.Resources> | ||
</Application> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
using Avalonia; | ||
using Avalonia.Controls.ApplicationLifetimes; | ||
using Avalonia.Markup.Xaml; | ||
using PresenceClient.Views; | ||
using PresenceClient.ViewModels; | ||
|
||
namespace PresenceClient; | ||
|
||
public class App : Application | ||
{ | ||
public override void Initialize() | ||
{ | ||
AvaloniaXamlLoader.Load(this); | ||
} | ||
|
||
public override void OnFrameworkInitializationCompleted() | ||
{ | ||
if (ApplicationLifetime is IClassicDesktopStyleApplicationLifetime desktop) | ||
{ | ||
var mainWindow = new MainWindow | ||
{ | ||
DataContext = new MainWindowViewModel(), | ||
}; | ||
desktop.MainWindow = mainWindow; | ||
} | ||
|
||
base.OnFrameworkInitializationCompleted(); | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.