Skip to content

Commit

Permalink
Use new icon
Browse files Browse the repository at this point in the history
  • Loading branch information
NotYoojun committed May 27, 2024
1 parent 82fc16f commit 20adf64
Show file tree
Hide file tree
Showing 17 changed files with 48 additions and 14 deletions.
Binary file removed assets/icons/Gallery.ico
Binary file not shown.
Binary file removed assets/icons/Gallery_1024.png
Binary file not shown.
Binary file removed assets/icons/Gallery_256.png
Binary file not shown.
Binary file removed assets/icons/Gallery_cool.png
Binary file not shown.
Binary file added assets/icons/WpfLibrary.ico
Binary file not shown.
Binary file added assets/icons/WpfLibrary_256w.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<GeneratePackageOnBuild>False</GeneratePackageOnBuild>
<PackageRequireLicenseAcceptance>True</PackageRequireLicenseAcceptance>
<ApplicationIcon>..\..\assets\images\iNKORE.ico</ApplicationIcon>
<ApplicationIcon>..\..\assets\icons\WpfLibrary.ico</ApplicationIcon>
<SignAssembly>True</SignAssembly>
<AssemblyOriginatorKeyFile>..\..\assets\misc\iNKORE.Pulic.snk</AssemblyOriginatorKeyFile>
<AssemblyOriginatorKeyFile>..\..\assets\others\iNKORE.Pulic.snk</AssemblyOriginatorKeyFile>
<RootNamespace>iNKORE.UI.WPF.Modern</RootNamespace>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<NoWarn>$(NoWarn);CS1591;1701;1702;CA1416;CS1573</NoWarn>
Expand Down
6 changes: 4 additions & 2 deletions source/iNKORE.UI.WPF.Modern.Gallery/MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,14 @@
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:ui="http://schemas.inkore.net/lib/ui/wpf/modern"
x:Name="Window"
Title="iNKORE.UI.WPF.Modern Sample App"
Title="iNKORE.UI.WPF.Modern | Gallery"
Width="1026"
Height="802"
ui:ThemeManager.IsThemeAware="True"
ui:TitleBar.ExtendViewIntoTitleBar="True"
ui:WindowHelper.SystemBackdropType="Mica"
ui:WindowHelper.UseModernWindowStyle="True"
ui:TitleBar.Height="36"
mc:Ignorable="d">
<Grid>
<Grid.RowDefinitions>
Expand All @@ -32,7 +33,8 @@
Grid.Column="1"
HorizontalAlignment="Stretch"
VerticalAlignment="Stretch"
Source="/Assets/Gallery_256.png" />
RenderOptions.BitmapScalingMode="HighQuality"
Source="/iNKORE.UI.WPF.Modern.Gallery;component/Assets/WpfLibrary_256w.png"/>
<ui:ProgressRing
Name="splashProgressRing"
Grid.Row="2"
Expand Down
15 changes: 12 additions & 3 deletions source/iNKORE.UI.WPF.Modern.Gallery/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Interop;
using System.Threading;

namespace iNKORE.UI.WPF.Modern.Gallery
{
Expand All @@ -39,9 +40,17 @@ private async void InitialzeApp()
ThemeHelper.Initialize();
await ControlInfoDataSource.Instance.GetGroupsAsync();
SubscribeToResourcesChanged();
NavigationRootPage NavigationRootPage = new NavigationRootPage();
Content = NavigationRootPage;
MicaHelper.Apply(this, BackdropType.Mica, true);

new Thread(() =>
{
Thread.Sleep(2000);
DispatcherHelper.RunOnMainThread(() =>
{
NavigationRootPage NavigationRootPage = new NavigationRootPage();
Content = NavigationRootPage;
MicaHelper.Apply(this, BackdropType.Mica, true);
});
}).Start();
}

protected override void OnSourceInitialized(EventArgs e)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,14 @@ public static string GetAppTitleFromSystem
}
else
{
return System.Reflection.Assembly.GetExecutingAssembly().GetName().Name.ToString();
if (Application.Current.MainWindow != null)
{
return Application.Current.MainWindow.Title;
}
else
{
return System.Reflection.Assembly.GetExecutingAssembly().GetName().Name.ToString();
}
}
}
}
Expand Down
17 changes: 16 additions & 1 deletion source/iNKORE.UI.WPF.Modern.Gallery/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System.Windows;
using System.Reflection;
using System.Windows;

[assembly: ThemeInfo(
ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
Expand All @@ -8,3 +9,17 @@
//(used if a resource is not found in the page,
// app, or any theme specific resource dictionaries)
)]

[assembly: AssemblyDescription("Modern (Fluent 2) styles and controls for your WPF applications")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("iNKORE Studios")]
[assembly: AssemblyProduct("iNKORE.UI.WPF.Modern Gallery")]
[assembly: AssemblyCopyright("Copyright © iNKORE! Studios 2024")]
[assembly: AssemblyTrademark("iNKORE!")]
[assembly: AssemblyCulture("")]

[assembly: AssemblyVersion("0.9.28.0")]
[assembly: AssemblyFileVersion("0.9.28.0")]

[assembly: AssemblyTitle("iNKORE.UI.WPF.Modern Gallery")]

Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
<OutputType>WinExe</OutputType>
<TargetFramework>net6.0-windows10.0.18362.0</TargetFramework>
<UseWPF>true</UseWPF>
<ApplicationIcon>..\..\assets\icons\Gallery.ico</ApplicationIcon>
<ApplicationIcon>..\..\assets\icons\WpfLibrary.ico</ApplicationIcon>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>

</PropertyGroup>

<PropertyGroup>
Expand Down Expand Up @@ -155,8 +157,7 @@
</ItemGroup>

<ItemGroup>
<Resource Include="..\..\assets\icons\Gallery_256.png" Link="Assets\Gallery_256.png" />
<Content Include="..\..\assets\icons\Gallery.ico" Link="Assets\Gallery.ico" />
<Resource Include="..\..\assets\icons\WpfLibrary_256w.png" Link="Assets\WpfLibrary_256w.png" />
<Content Include="Assets\AppIcon.ico">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
Expand Down
4 changes: 2 additions & 2 deletions source/iNKORE.UI.WPF.Modern/iNKORE.UI.WPF.Modern.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
<NeutralLanguage>en-US</NeutralLanguage>
<NoWarn>1701;1702;1573;1591;CA1416</NoWarn>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<ApplicationIcon>..\..\assets\images\iNKORE.ico</ApplicationIcon>
<ApplicationIcon>..\..\assets\icons\WpfLibrary.ico</ApplicationIcon>
<SignAssembly>True</SignAssembly>
<AssemblyOriginatorKeyFile>..\..\assets\misc\iNKORE.Pulic.snk</AssemblyOriginatorKeyFile>
<AssemblyOriginatorKeyFile>..\..\assets\others\iNKORE.Pulic.snk</AssemblyOriginatorKeyFile>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<NoWarn>$(NoWarn);CS1591;1701;1702;CA1416</NoWarn>
Expand Down

0 comments on commit 20adf64

Please sign in to comment.