Skip to content
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
16 changes: 16 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,19 @@ bld/
*.[Cc]ache
# but keep track of directories ending in .cache
!?*.[Cc]ache/

# User-specific files
*.rsuser
*.suo
*.user
*.userosscache
*.sln.docstates

# Windows Store app package directories and files
AppPackages/
BundleArtifacts/
Package.StoreAssociation.xml
_pkginfo.txt
*.appx
*.appxbundle
*.appxupload
25 changes: 12 additions & 13 deletions FolderIconPainter.sln
Original file line number Diff line number Diff line change
Expand Up @@ -79,22 +79,22 @@ Global
{A96C7535-FB23-472C-AB4D-7CA2B52B8043}.Release|x86.ActiveCfg = Release|x86
{A96C7535-FB23-472C-AB4D-7CA2B52B8043}.Release|x86.Build.0 = Release|x86
{A96C7535-FB23-472C-AB4D-7CA2B52B8043}.Release|x86.Deploy.0 = Release|x86
{79CBE5DC-9AE0-4182-882E-FC3D832C0156}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{79CBE5DC-9AE0-4182-882E-FC3D832C0156}.Debug|Any CPU.Build.0 = Debug|Any CPU
{79CBE5DC-9AE0-4182-882E-FC3D832C0156}.Debug|ARM64.ActiveCfg = Debug|Any CPU
{79CBE5DC-9AE0-4182-882E-FC3D832C0156}.Debug|ARM64.Build.0 = Debug|Any CPU
{79CBE5DC-9AE0-4182-882E-FC3D832C0156}.Debug|Any CPU.ActiveCfg = Debug|x64
{79CBE5DC-9AE0-4182-882E-FC3D832C0156}.Debug|Any CPU.Build.0 = Debug|x64
{79CBE5DC-9AE0-4182-882E-FC3D832C0156}.Debug|ARM64.ActiveCfg = Debug|ARM64
{79CBE5DC-9AE0-4182-882E-FC3D832C0156}.Debug|ARM64.Build.0 = Debug|ARM64
{79CBE5DC-9AE0-4182-882E-FC3D832C0156}.Debug|x64.ActiveCfg = Debug|x64
{79CBE5DC-9AE0-4182-882E-FC3D832C0156}.Debug|x64.Build.0 = Debug|x64
{79CBE5DC-9AE0-4182-882E-FC3D832C0156}.Debug|x86.ActiveCfg = Debug|Any CPU
{79CBE5DC-9AE0-4182-882E-FC3D832C0156}.Debug|x86.Build.0 = Debug|Any CPU
{79CBE5DC-9AE0-4182-882E-FC3D832C0156}.Release|Any CPU.ActiveCfg = Release|Any CPU
{79CBE5DC-9AE0-4182-882E-FC3D832C0156}.Release|Any CPU.Build.0 = Release|Any CPU
{79CBE5DC-9AE0-4182-882E-FC3D832C0156}.Release|ARM64.ActiveCfg = Release|Any CPU
{79CBE5DC-9AE0-4182-882E-FC3D832C0156}.Release|ARM64.Build.0 = Release|Any CPU
{79CBE5DC-9AE0-4182-882E-FC3D832C0156}.Debug|x86.ActiveCfg = Debug|x86
{79CBE5DC-9AE0-4182-882E-FC3D832C0156}.Debug|x86.Build.0 = Debug|x86
{79CBE5DC-9AE0-4182-882E-FC3D832C0156}.Release|Any CPU.ActiveCfg = Release|x64
{79CBE5DC-9AE0-4182-882E-FC3D832C0156}.Release|Any CPU.Build.0 = Release|x64
{79CBE5DC-9AE0-4182-882E-FC3D832C0156}.Release|ARM64.ActiveCfg = Release|ARM64
{79CBE5DC-9AE0-4182-882E-FC3D832C0156}.Release|ARM64.Build.0 = Release|ARM64
{79CBE5DC-9AE0-4182-882E-FC3D832C0156}.Release|x64.ActiveCfg = Release|x64
{79CBE5DC-9AE0-4182-882E-FC3D832C0156}.Release|x64.Build.0 = Release|x64
{79CBE5DC-9AE0-4182-882E-FC3D832C0156}.Release|x86.ActiveCfg = Release|Any CPU
{79CBE5DC-9AE0-4182-882E-FC3D832C0156}.Release|x86.Build.0 = Release|Any CPU
{79CBE5DC-9AE0-4182-882E-FC3D832C0156}.Release|x86.ActiveCfg = Release|x86
{79CBE5DC-9AE0-4182-882E-FC3D832C0156}.Release|x86.Build.0 = Release|x86
{5A8F69B7-F888-8969-85EF-0AA22433D75A}.Debug|Any CPU.ActiveCfg = Debug|x64
{5A8F69B7-F888-8969-85EF-0AA22433D75A}.Debug|Any CPU.Build.0 = Debug|x64
{5A8F69B7-F888-8969-85EF-0AA22433D75A}.Debug|Any CPU.Deploy.0 = Debug|x64
Expand All @@ -103,7 +103,6 @@ Global
{5A8F69B7-F888-8969-85EF-0AA22433D75A}.Debug|ARM64.Deploy.0 = Debug|ARM64
{5A8F69B7-F888-8969-85EF-0AA22433D75A}.Debug|x64.ActiveCfg = Debug|x64
{5A8F69B7-F888-8969-85EF-0AA22433D75A}.Debug|x64.Build.0 = Debug|x64
{5A8F69B7-F888-8969-85EF-0AA22433D75A}.Debug|x64.Deploy.0 = Debug|x64
{5A8F69B7-F888-8969-85EF-0AA22433D75A}.Debug|x86.ActiveCfg = Debug|x86
{5A8F69B7-F888-8969-85EF-0AA22433D75A}.Debug|x86.Build.0 = Debug|x86
{5A8F69B7-F888-8969-85EF-0AA22433D75A}.Debug|x86.Deploy.0 = Debug|x86
Expand Down
Binary file not shown.
97 changes: 74 additions & 23 deletions src/FIP.App/FIP.App (Package)/FIP.App (Package).wapproj
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,31 @@
<PropertyGroup>
<WapProjPath Condition="'$(WapProjPath)'==''">$(MSBuildExtensionsPath)\Microsoft\DesktopBridge\</WapProjPath>
<PathToXAMLWinRTImplementations>FIP.App\</PathToXAMLWinRTImplementations>
<GenerateAppInstallerFile>False</GenerateAppInstallerFile>
<AppxPackageSigningTimestampDigestAlgorithm>SHA256</AppxPackageSigningTimestampDigestAlgorithm>
<AppxAutoIncrementPackageRevision>True</AppxAutoIncrementPackageRevision>
<GenerateTestArtifacts>True</GenerateTestArtifacts>
<AppxBundlePlatforms>x86|x64</AppxBundlePlatforms>
<GenerateTemporaryStoreCertificate>True</GenerateTemporaryStoreCertificate>
<HoursBetweenUpdateChecks>0</HoursBetweenUpdateChecks>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<AppxBundle>Always</AppxBundle>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<AppxBundle>Always</AppxBundle>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x86'">
<AppxBundle>Always</AppxBundle>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64'">
<AppxBundle>Always</AppxBundle>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'">
<AppxBundle>Always</AppxBundle>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x86'">
<AppxBundle>Always</AppxBundle>
</PropertyGroup>
<Import Project="$(WapProjPath)\Microsoft.DesktopBridge.props" />
<ItemGroup>
Expand All @@ -51,6 +76,31 @@
</AppxManifest>
</ItemGroup>
<ItemGroup>
<Content Include="Images\AppIcon.altform-lightunplated_targetsize-16.png" />
<Content Include="Images\AppIcon.altform-lightunplated_targetsize-24.png" />
<Content Include="Images\AppIcon.altform-lightunplated_targetsize-256.png" />
<Content Include="Images\AppIcon.altform-lightunplated_targetsize-32.png" />
<Content Include="Images\AppIcon.altform-lightunplated_targetsize-48.png" />
<Content Include="Images\AppIcon.altform-unplated_targetsize-16.png" />
<Content Include="Images\AppIcon.altform-unplated_targetsize-256.png" />
<Content Include="Images\AppIcon.altform-unplated_targetsize-32.png" />
<Content Include="Images\AppIcon.altform-unplated_targetsize-48.png" />
<Content Include="Images\AppIcon.scale-100.png" />
<Content Include="Images\AppIcon.scale-125.png" />
<Content Include="Images\AppIcon.scale-150.png" />
<Content Include="Images\AppIcon.scale-200.png" />
<Content Include="Images\AppIcon.scale-400.png" />
<Content Include="Images\AppIcon.targetsize-16.png" />
<Content Include="Images\AppIcon.targetsize-24.png" />
<Content Include="Images\AppIcon.targetsize-24_altform-unplated.png" />
<Content Include="Images\AppIcon.targetsize-256.png" />
<Content Include="Images\AppIcon.targetsize-32.png" />
<Content Include="Images\AppIcon.targetsize-48.png" />
<Content Include="Images\BadgeLogo.scale-100.png" />
<Content Include="Images\BadgeLogo.scale-125.png" />
<Content Include="Images\BadgeLogo.scale-150.png" />
<Content Include="Images\BadgeLogo.scale-200.png" />
<Content Include="Images\BadgeLogo.scale-400.png" />
<Content Include="Images\LargeTile.scale-100.png" />
<Content Include="Images\LargeTile.scale-125.png" />
<Content Include="Images\LargeTile.scale-150.png" />
Expand All @@ -72,26 +122,26 @@
<Content Include="Images\Square150x150Logo.scale-150.png" />
<Content Include="Images\Square150x150Logo.scale-200.png" />
<Content Include="Images\Square150x150Logo.scale-400.png" />
<Content Include="Images\Square44x44Logo.altform-lightunplated_targetsize-16.png" />
<Content Include="Images\Square44x44Logo.altform-lightunplated_targetsize-24.png" />
<Content Include="Images\Square44x44Logo.altform-lightunplated_targetsize-256.png" />
<Content Include="Images\Square44x44Logo.altform-lightunplated_targetsize-32.png" />
<Content Include="Images\Square44x44Logo.altform-lightunplated_targetsize-48.png" />
<Content Include="Images\Square44x44Logo.altform-unplated_targetsize-16.png" />
<Content Include="Images\Square44x44Logo.altform-unplated_targetsize-256.png" />
<Content Include="Images\Square44x44Logo.altform-unplated_targetsize-32.png" />
<Content Include="Images\Square44x44Logo.altform-unplated_targetsize-48.png" />
<Content Include="Images\Square44x44Logo.scale-100.png" />
<Content Include="Images\Square44x44Logo.scale-125.png" />
<Content Include="Images\Square44x44Logo.scale-150.png" />
<Content Include="Images\Square44x44Logo.scale-200.png" />
<Content Include="Images\Square44x44Logo.scale-400.png" />
<Content Include="Images\Square44x44Logo.targetsize-16.png" />
<Content Include="Images\Square44x44Logo.targetsize-24.png" />
<Content Include="Images\Square44x44Logo.targetsize-24_altform-unplated.png" />
<Content Include="Images\Square44x44Logo.targetsize-256.png" />
<Content Include="Images\Square44x44Logo.targetsize-32.png" />
<Content Include="Images\Square44x44Logo.targetsize-48.png" />
<Content Include="Images\AppIcon.altform-lightunplated_targetsize-16.png" />
<Content Include="Images\AppIcon.altform-lightunplated_targetsize-24.png" />
<Content Include="Images\AppIcon.altform-lightunplated_targetsize-256.png" />
<Content Include="Images\AppIcon.altform-lightunplated_targetsize-32.png" />
<Content Include="Images\AppIcon.altform-lightunplated_targetsize-48.png" />
<Content Include="Images\AppIcon.altform-unplated_targetsize-16.png" />
<Content Include="Images\AppIcon.altform-unplated_targetsize-256.png" />
<Content Include="Images\AppIcon.altform-unplated_targetsize-32.png" />
<Content Include="Images\AppIcon.altform-unplated_targetsize-48.png" />
<Content Include="Images\AppIcon.scale-100.png" />
<Content Include="Images\AppIcon.scale-125.png" />
<Content Include="Images\AppIcon.scale-150.png" />
<Content Include="Images\AppIcon.scale-200.png" />
<Content Include="Images\AppIcon.scale-400.png" />
<Content Include="Images\AppIcon.targetsize-16.png" />
<Content Include="Images\AppIcon.targetsize-24.png" />
<Content Include="Images\AppIcon.targetsize-24_altform-unplated.png" />
<Content Include="Images\AppIcon.targetsize-256.png" />
<Content Include="Images\AppIcon.targetsize-32.png" />
<Content Include="Images\AppIcon.targetsize-48.png" />
<Content Include="Images\StoreLogo.scale-100.png" />
<Content Include="Images\StoreLogo.scale-125.png" />
<Content Include="Images\StoreLogo.scale-150.png" />
Expand All @@ -102,16 +152,17 @@
<Content Include="Images\Wide310x150Logo.scale-150.png" />
<Content Include="Images\Wide310x150Logo.scale-200.png" />
<Content Include="Images\Wide310x150Logo.scale-400.png" />
<None Include="Package.StoreAssociation.xml" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\FIP.App\FIP.App.csproj">
<SkipGetTargetFrameworkProperties>True</SkipGetTargetFrameworkProperties>
<PublishProfile>Properties\PublishProfiles\win10-$(Platform).pubxml</PublishProfile>
<PublishProfile>Properties\PublishProfiles\win-$(Platform).pubxml</PublishProfile>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Windows.SDK.BuildTools" Version="10.0.26100.7175" />
<PackageReference Include="Microsoft.WindowsAppSDK" Version="1.8.251106002" />
<PackageReference Include="Microsoft.Windows.SDK.BuildTools" Version="10.0.26100.7705" />
<PackageReference Include="Microsoft.WindowsAppSDK" Version="1.8.260317003" />
</ItemGroup>
<Import Project="$(WapProjPath)\Microsoft.DesktopBridge.targets" />
</Project>
17 changes: 0 additions & 17 deletions src/FIP.App/FIP.App (Package)/FIP.App (Package).wapproj.user

This file was deleted.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/FIP.App/FIP.App (Package)/Images/StoreLogo.scale-100.png
Binary file modified src/FIP.App/FIP.App (Package)/Images/StoreLogo.scale-125.png
Binary file modified src/FIP.App/FIP.App (Package)/Images/StoreLogo.scale-150.png
Binary file modified src/FIP.App/FIP.App (Package)/Images/StoreLogo.scale-200.png
Binary file modified src/FIP.App/FIP.App (Package)/Images/StoreLogo.scale-400.png
9 changes: 5 additions & 4 deletions src/FIP.App/FIP.App (Package)/Package.appxmanifest
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
IgnorableNamespaces="uap rescap">

<Identity
Name="c8dd2b97-cef4-4e7f-91d2-7bd09b448b31"
Publisher="CN=George Radchuk"
Version="1.0.0.0" />
Name="GeorgeRadchuk.FolderIconPainter"
Publisher="CN=456F105E-8C42-4336-90BA-66BA6A287BBA"
Version="1.0.2.0" />

<Properties>
<DisplayName>Folder Icon Painter</DisplayName>
Expand All @@ -35,7 +35,7 @@
Description="This program can help you change the color of the default folder icon on Windows 11 and 10."
BackgroundColor="transparent"
Square150x150Logo="Images\Square150x150Logo.png"
Square44x44Logo="Images\Square44x44Logo.png">
Square44x44Logo="Images\AppIcon.png">
<uap:DefaultTile Wide310x150Logo="Images\Wide310x150Logo.png" Square71x71Logo="Images\SmallTile.png" Square310x310Logo="Images\LargeTile.png">
<uap:ShowNameOnTiles>
<uap:ShowOn Tile="square150x150Logo"/>
Expand All @@ -44,6 +44,7 @@
</uap:ShowNameOnTiles>
</uap:DefaultTile >
<uap:SplashScreen Image="Images\SplashScreen.png" BackgroundColor="transparent"/>
<uap:LockScreen BadgeLogo="Images\BadgeLogo.png" Notification="badge"/>
</uap:VisualElements>
</Application>
</Applications>
Expand Down
4 changes: 3 additions & 1 deletion src/FIP.App/FIP.App/App.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@
</ResourceDictionary>
</ResourceDictionary.ThemeDictionaries>

<!-- Breakpoints -->
<!-- Application-specific resources -->
<x:String x:Key="AppTitleName">Folder Icon Painter</x:String>
<x:String x:Key="GitHubIconPath">M48.854 0C21.839 0 0 22 0 49.217c0 21.756 13.993 40.172 33.405 46.69 2.427.49 3.316-1.059 3.316-2.362 0-1.141-.08-5.052-.08-9.127-13.59 2.934-16.42-5.867-16.42-5.867-2.184-5.704-5.42-7.17-5.42-7.17-4.448-3.015.324-3.015.324-3.015 4.934.326 7.523 5.052 7.523 5.052 4.367 7.496 11.404 5.378 14.235 4.074.404-3.178 1.699-5.378 3.074-6.6-10.839-1.141-22.243-5.378-22.243-24.283 0-5.378 1.94-9.778 5.014-13.2-.485-1.222-2.184-6.275.486-13.038 0 0 4.125-1.304 13.426 5.052a46.97 46.97 0 0 1 12.214-1.63c4.125 0 8.33.571 12.213 1.63 9.302-6.356 13.427-5.052 13.427-5.052 2.67 6.763.97 11.816.485 13.038 3.155 3.422 5.015 7.822 5.015 13.2 0 18.905-11.404 23.06-22.324 24.283 1.78 1.548 3.316 4.481 3.316 9.126 0 6.6-.08 11.897-.08 13.526 0 1.304.89 2.853 3.316 2.364 19.412-6.52 33.405-24.935 33.405-46.691C97.707 22 75.788 0 48.854 0z</x:String>
<x:Double x:Key="Breakpoint640Plus">641</x:Double>

<Thickness x:Key="PageHeaderDefaultPadding">0</Thickness>
Expand Down
2 changes: 1 addition & 1 deletion src/FIP.App/FIP.App/AppShell.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
IsHitTestVisible="True"
Canvas.ZIndex="1">
<StackPanel VerticalAlignment="Center" Orientation="Horizontal">
<Image Width="18" Source="ms-appx:///Images/Square44x44Logo.png"/>
<Image Width="18" Source="ms-appx:///Images/AppIcon.png"/>
<TextBlock x:Name="AppTitle"
Margin="12,0,0,0"
VerticalAlignment="Center"
Expand Down
14 changes: 7 additions & 7 deletions src/FIP.App/FIP.App/FIP.App.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="CommunityToolkit.Mvvm" Version="8.4.0" />
<PackageReference Include="CommunityToolkit.WinUI" Version="7.1.2" />
<PackageReference Include="CommunityToolkit.WinUI.Behaviors" Version="8.0.240109" />
<PackageReference Include="CommunityToolkit.WinUI.Extensions" Version="8.0.240109" />
<PackageReference Include="CommunityToolkit.Mvvm" Version="8.4.1" />
<PackageReference Include="CommunityToolkit.WinUI.Controls.Primitives" Version="8.2.251219" />
<PackageReference Include="CommunityToolkit.WinUI.Controls.SettingsControls" Version="8.2.251219" />
<PackageReference Include="CommunityToolkit.WinUI.Extensions" Version="8.2.251219" />
<PackageReference Include="CommunityToolkit.WinUI.Helpers" Version="8.2.251219" />
<PackageReference Include="CommunityToolkit.WinUI.Notifications" Version="7.1.2" />
<PackageReference Include="CommunityToolkit.WinUI.UI.Controls" Version="7.1.2" />
<PackageReference Include="Microsoft.Windows.CsWin32" Version="0.3.49-beta" />
<PackageReference Include="Microsoft.Windows.CsWinRT" Version="2.2.0" />
<PackageReference Include="Serilog" Version="3.1.1" />
Expand All @@ -52,8 +52,8 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Windows.SDK.BuildTools" Version="10.0.26100.7175" />
<PackageReference Include="Microsoft.WindowsAppSDK" Version="1.8.251106002" />
<PackageReference Include="Microsoft.Windows.SDK.BuildTools" Version="10.0.26100.7705" />
<PackageReference Include="Microsoft.WindowsAppSDK" Version="1.8.260317003" />
</ItemGroup>

<ItemGroup>
Expand Down
26 changes: 26 additions & 0 deletions src/FIP.App/FIP.App/Helpers/EnumHelper.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

using System;
using System.Reflection;

namespace FIP.App.Helpers;

internal static partial class EnumHelper
{
/// <summary>
/// Converts a string into an enum.
/// </summary>
/// <typeparam name="TEnum">The output enum type.</typeparam>
/// <param name="text">The input text.</param>
/// <returns>The parsed enum.</returns>
/// <exception cref="InvalidOperationException">Thrown when the TEnum type is not a enum.</exception>
public static TEnum GetEnum<TEnum>(string text) where TEnum : struct
{
if (!typeof(TEnum).GetTypeInfo().IsEnum)
{
throw new InvalidOperationException("Generic parameter 'TEnum' must be an enum.");
}
return (TEnum)Enum.Parse(typeof(TEnum), text);
}
}
Loading