Skip to content

Commit

Permalink
update version and add logo
Browse files Browse the repository at this point in the history
  • Loading branch information
huiyadanli committed Oct 28, 2023
1 parent 8ca4baa commit d57e67c
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 7 deletions.
Binary file added BetterGenshinImpact/Assets/logo.ico
Binary file not shown.
Binary file added BetterGenshinImpact/Assets/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions BetterGenshinImpact/BetterGenshinImpact.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,18 @@
<UseWindowsForms>True</UseWindowsForms>
<LangVersion>11.0</LangVersion>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<ApplicationIcon>Assets\logo.ico</ApplicationIcon>
</PropertyGroup>

<ItemGroup>
<None Remove="Assets\drag.png" />
<None Remove="Assets\logo.png" />
</ItemGroup>

<ItemGroup>
<Resource Include="Assets\drag.png" />
<Resource Include="Assets\logo.png" />
<Content Include="Assets\logo.ico" />
</ItemGroup>

<ItemGroup>
Expand Down
2 changes: 2 additions & 0 deletions BetterGenshinImpact/Core/Config/Global.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ namespace BetterGenshinImpact.Core.Config;

public class Global
{
public static string Version = "0.12.0";

public static string StartUpPath { get; private set; } = AppContext.BaseDirectory;

public static string AppPath { get; private set; } = Absolute("BetterGenshinImpact.exe");
Expand Down
10 changes: 5 additions & 5 deletions BetterGenshinImpact/View/MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@
x:Name="RootNavigation" Grid.Row="1"
OpenPaneLength="150"
IsBackButtonVisible="Collapsed"
IsPaneToggleVisible="True"
>
IsPaneToggleVisible="True">
<!--<ui:NavigationView.AutoSuggestBox>
<ui:AutoSuggestBox x:Name="AutoSuggestBox" PlaceholderText="Search">
<ui:AutoSuggestBox.Icon>
Expand Down Expand Up @@ -99,7 +98,7 @@
<ui:NavigationViewItem
Content="设置"
NavigationCacheMode="Enabled"
TargetPageType="{x:Type pages:CommonSettingsPage}" >
TargetPageType="{x:Type pages:CommonSettingsPage}">
<ui:NavigationViewItem.Icon>
<ui:SymbolIcon Symbol="Settings24" />
</ui:NavigationViewItem.Icon>
Expand All @@ -108,8 +107,9 @@
</ui:NavigationView>

<ui:TitleBar
Title="BetterGI · 更好的原神 · 0.11"
Grid.Row="0" />
Title="{Binding Title, Mode=OneWay}"
Grid.Row="0"
Icon="pack://application:,,,/Assets/logo.png" />

</Grid>
</ui:FluentWindow>
6 changes: 4 additions & 2 deletions BetterGenshinImpact/ViewModel/MainWindowViewModel.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using BetterGenshinImpact.Service.Interface;
using BetterGenshinImpact.Core.Config;
using BetterGenshinImpact.Service.Interface;
using CommunityToolkit.Mvvm.ComponentModel;
using CommunityToolkit.Mvvm.Input;
using CommunityToolkit.Mvvm.Messaging;
Expand All @@ -14,6 +15,7 @@ public partial class MainWindowViewModel : ObservableObject
{
private readonly ILogger<MainWindowViewModel> _logger;
private readonly IConfigService _configService;
public string Title => $"BetterGI · 更好的原神 · {Global.Version}";

public MainWindowViewModel(INavigationService navigationService, IConfigService configService)
{
Expand All @@ -25,7 +27,7 @@ public MainWindowViewModel(INavigationService navigationService, IConfigService
[RelayCommand]
private void OnLoaded()
{
_logger.LogInformation("更好的原神({Text}) Alpha {Ver}","内测版", 2.2);
_logger.LogInformation("更好的原神 {Version}", Global.Version);
}

[RelayCommand]
Expand Down

0 comments on commit d57e67c

Please sign in to comment.