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

Develop #28

Merged
merged 3 commits into from
Sep 29, 2021
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
4 changes: 2 additions & 2 deletions Yugen.Mosaic.Uwp/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ protected override async void OnLaunched(LaunchActivatedEventArgs e)

// Initial UI styling
TitleBarHelper.ExpandViewIntoTitleBar();
//TitleBarHelper.StyleTitleBar(...);
TitleBarHelper.StyleTitleBar();

// Create a Frame to act as the navigation context and navigate to the first page
rootFrame = new Frame();
Expand Down Expand Up @@ -152,7 +152,7 @@ private IServiceProvider ConfigureServices()

private async Task InitializeServices()
{
await Services.GetService<IThemeSelectorService>().InitializeAsync(true);
await Services.GetService<IThemeSelectorService>().InitializeAsync();
}
}
}
2 changes: 1 addition & 1 deletion Yugen.Mosaic.Uwp/Services/WhatsNewDisplayService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
using System;
using System.Threading.Tasks;
using Windows.System;
using Yugen.Mosaic.Uwp.Controls;
using Yugen.Mosaic.Uwp.Interfaces;
using Yugen.Mosaic.Uwp.Views.Dialogs;

namespace Yugen.Mosaic.Uwp.Services
{
Expand Down
3 changes: 1 addition & 2 deletions Yugen.Mosaic.Uwp/ViewModels/MainViewModel.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using Microsoft.AppCenter.Crashes;
using Microsoft.Toolkit.Mvvm.Input;
using Microsoft.Toolkit.Uwp;
using Microsoft.UI.Xaml.Controls;
using SixLabors.ImageSharp;
using SixLabors.ImageSharp.PixelFormats;
using System;
Expand All @@ -17,11 +16,11 @@
using Windows.System;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Media.Imaging;
using Yugen.Mosaic.Uwp.Controls;
using Yugen.Mosaic.Uwp.Enums;
using Yugen.Mosaic.Uwp.Helpers;
using Yugen.Mosaic.Uwp.Interfaces;
using Yugen.Mosaic.Uwp.Models;
using Yugen.Mosaic.Uwp.Views.Dialogs;
using Yugen.Toolkit.Standard.Core.Models;
using Yugen.Toolkit.Standard.Extensions;
using Yugen.Toolkit.Standard.Helpers;
Expand Down
2 changes: 1 addition & 1 deletion Yugen.Mosaic.Uwp/ViewModels/SettingsViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public ElementTheme ElementTheme
private async Task SwitchThemeCommandBehavior(ElementTheme param)
{
ElementTheme = param;
await _themeSelectorService.SetThemeAsync(param, true);
await _themeSelectorService.SetThemeAsync(param);
}
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<dialogs:YugenDialog x:Class="Yugen.Mosaic.Uwp.Controls.SettingsDialog"
<dialogs:YugenDialog x:Class="Yugen.Mosaic.Uwp.Views.Dialogs.SettingsDialog"
x:Uid="Settings"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using Microsoft.Extensions.DependencyInjection;
using Yugen.Mosaic.Uwp.ViewModels;

namespace Yugen.Mosaic.Uwp.Controls
namespace Yugen.Mosaic.Uwp.Views.Dialogs
{
public sealed partial class SettingsDialog
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<dialogs:YugenDialog x:Class="Yugen.Mosaic.Uwp.Controls.WhatsNewDialog"
<dialogs:YugenDialog x:Class="Yugen.Mosaic.Uwp.Views.Dialogs.WhatsNewDialog"
x:Uid="WhatsNew"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using Windows.UI.Xaml;
using Yugen.Mosaic.Uwp.ViewModels;

namespace Yugen.Mosaic.Uwp.Controls
namespace Yugen.Mosaic.Uwp.Views.Dialogs
{
public sealed partial class WhatsNewDialog
{
Expand Down
28 changes: 14 additions & 14 deletions Yugen.Mosaic.Uwp/Yugen.Mosaic.Uwp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
<Compile Include="App.xaml.cs">
<DependentUpon>App.xaml</DependentUpon>
</Compile>
<Compile Include="Controls\WhatsNewDialog.xaml.cs">
<Compile Include="Views\Dialogs\WhatsNewDialog.xaml.cs">
<DependentUpon>WhatsNewDialog.xaml</DependentUpon>
</Compile>
<Compile Include="Enums\FileFormat.cs" />
Expand Down Expand Up @@ -110,7 +110,7 @@
<Compile Include="Services\SearchAndReplacePlainColorService.cs" />
<Compile Include="Services\SearchAndReplaceRandomService.cs" />
<Compile Include="Services\SearchAndReplaceService.cs" />
<Compile Include="Controls\SettingsDialog.xaml.cs">
<Compile Include="Views\Dialogs\SettingsDialog.xaml.cs">
<DependentUpon>SettingsDialog.xaml</DependentUpon>
</Compile>
<Compile Include="ViewModels\MainViewModel.cs" />
Expand Down Expand Up @@ -183,46 +183,46 @@
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</ApplicationDefinition>
<Page Include="Controls\WhatsNewDialog.xaml">
<Page Include="Views\Dialogs\WhatsNewDialog.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="Views\MainPage.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="Controls\SettingsDialog.xaml">
<Page Include="Views\Dialogs\SettingsDialog.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.AppCenter.Analytics">
<Version>4.3.0</Version>
<Version>4.4.0</Version>
</PackageReference>
<PackageReference Include="Microsoft.AppCenter.Crashes">
<Version>4.3.0</Version>
<Version>4.4.0</Version>
</PackageReference>
<PackageReference Include="Microsoft.NETCore.UniversalWindowsPlatform">
<Version>6.2.12</Version>
</PackageReference>
<PackageReference Include="Microsoft.Toolkit.Uwp">
<Version>7.0.2</Version>
<Version>7.1.0</Version>
</PackageReference>
<PackageReference Include="Microsoft.Toolkit.Uwp.UI">
<Version>7.0.2</Version>
<Version>7.1.0</Version>
</PackageReference>
<PackageReference Include="Microsoft.Toolkit.Uwp.UI.Controls">
<Version>7.0.2</Version>
<Version>7.1.0</Version>
</PackageReference>
<PackageReference Include="Microsoft.UI.Xaml">
<Version>2.6.2</Version>
<Version>2.7.0</Version>
</PackageReference>
<PackageReference Include="Microsoft.Xaml.Behaviors.Uwp.Managed">
<Version>2.0.1</Version>
</PackageReference>
<PackageReference Include="SixLabors.ImageSharp">
<Version>1.0.3</Version>
<Version>1.0.4</Version>
</PackageReference>
<PackageReference Include="SixLabors.ImageSharp.Drawing">
<Version>1.0.0-beta13</Version>
Expand All @@ -234,13 +234,13 @@
<Version>1.6.8</Version>
</PackageReference>
<PackageReference Include="Yugen.Toolkit.Standard">
<Version>1.0.46</Version>
<Version>1.0.48</Version>
</PackageReference>
<PackageReference Include="Yugen.Toolkit.Uwp">
<Version>1.0.46</Version>
<Version>1.0.48</Version>
</PackageReference>
<PackageReference Include="Yugen.Toolkit.Uwp.Controls">
<Version>1.0.46</Version>
<Version>1.0.48</Version>
</PackageReference>
<PackageReference Include="Serilog.Extensions.Logging">
<Version>3.0.1</Version>
Expand Down