Skip to content

Commit

Permalink
Merge pull request #5 from Hen676/DataGrid
Browse files Browse the repository at this point in the history
Data grid
  • Loading branch information
Hen676 committed Oct 2, 2022
2 parents b47cb81 + 6ae1f04 commit 9f76067
Show file tree
Hide file tree
Showing 18 changed files with 1,238 additions and 310 deletions.
5 changes: 5 additions & 0 deletions FadedVanguardLogUploader/App.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,9 @@
<Application.DataTemplates>
<local:ViewLocator/>
</Application.DataTemplates>

<Application.Styles>
<StyleInclude Source="avares://Avalonia.Controls.DataGrid/Themes/Fluent.xaml"/>
</Application.Styles>

</Application>
4 changes: 1 addition & 3 deletions FadedVanguardLogUploader/App.axaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,13 @@ namespace FadedVanguardLogUploader
public partial class App : Application
{
public static AppSettings Settings = new();
public static FluentTheme Fluent = new(new Uri("avares://ControlCatalog/Styles"));

private static FluentTheme Fluent = new(new Uri("avares://ControlCatalog/Styles"));
public override void Initialize()
{
if (Settings.ApiToggle)
GW2ApiHttps.Init();

Fluent.Mode = Settings.ModeToggle ? FluentThemeMode.Dark : FluentThemeMode.Light;

Thread.CurrentThread.CurrentUICulture = CultureInfo.GetCultureInfoByIetfLanguageTag(Settings.Lang);

Styles.Insert(0, Fluent);
Expand Down
2 changes: 1 addition & 1 deletion FadedVanguardLogUploader/Enums/SortingType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ public enum SortingType
Date,
Length,
User,
Charcter,
Charcter
}
}
9 changes: 5 additions & 4 deletions FadedVanguardLogUploader/FadedVanguardLogUploader.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,12 @@
<TrimmableAssembly Include="Avalonia.Themes.Default" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Avalonia" Version="0.10.12" />
<PackageReference Include="Avalonia.Desktop" Version="0.10.12" />
<PackageReference Include="Avalonia" Version="0.10.18" />
<PackageReference Include="Avalonia.Controls.DataGrid" Version="0.10.18" />
<PackageReference Include="Avalonia.Desktop" Version="0.10.18" />
<!--Condition below is needed to remove Avalonia.Diagnostics package from build output in Release configuration.-->
<PackageReference Condition="'$(Configuration)' == 'Debug'" Include="Avalonia.Diagnostics" Version="0.10.12" />
<PackageReference Include="Avalonia.ReactiveUI" Version="0.10.12" />
<PackageReference Condition="'$(Configuration)' == 'Debug'" Include="Avalonia.Diagnostics" Version="0.10.18" />
<PackageReference Include="Avalonia.ReactiveUI" Version="0.10.18" />
<PackageReference Include="Microsoft.Data.Sqlite" Version="6.0.8" />
<PackageReference Include="Microsoft.Data.Sqlite.Core" Version="6.0.8" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
Expand Down
Loading

0 comments on commit 9f76067

Please sign in to comment.