Skip to content
This repository has been archived by the owner on Jun 4, 2022. It is now read-only.

Commit

Permalink
feat: Fix ThemeHeler + Added DotnetRuntimeBootsrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Leopold committed Dec 7, 2021
1 parent ee1f907 commit 917849b
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 6 deletions.
8 changes: 6 additions & 2 deletions Clock11/Clock11.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
<ApplicationManifest>app.manifest</ApplicationManifest>
<ApplicationIcon>Assets\icon\clock.ico</ApplicationIcon>
<StartupObject>Clock11.SingleInstanceManager</StartupObject>
<AssemblyVersion>1.3.0</AssemblyVersion>
<FileVersion>1.3.0</FileVersion>
<AssemblyVersion>1.3.2</AssemblyVersion>
<FileVersion>1.3.2</FileVersion>
</PropertyGroup>

<ItemGroup>
Expand All @@ -22,6 +22,10 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="DotnetRuntimeBootstrapper" Version="2.0.2">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="System.Management" Version="6.0.0" />
</ItemGroup>

Expand Down
3 changes: 2 additions & 1 deletion Clock11/Helper/ThemeHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ public static class ThemeHelper
{
private const string RegistryKeyPath = @"Software\Microsoft\Windows\CurrentVersion\Themes\Personalize";

private const string RegistryValueName = "AppsUseLightTheme";
// private const string RegistryValueName = "AppsUseLightTheme"; // App-Theme
private const string RegistryValueName = "SystemUsesLightTheme"; // System-Theme (Taskbar)

public enum WindowsTheme
{
Expand Down
2 changes: 1 addition & 1 deletion Clock11/Resources.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Clock11/Resources.de.resx
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@
Programmiert von Andreas L.</value>
</data>
<data name="strReleaseDate" xml:space="preserve">
<value>03.12.2021 12:50 Uhr</value>
<value>07.12.2021 15:17 Uhr</value>
</data>
<data name="strSettingsDialog_ShowSeconds" xml:space="preserve">
<value>Sekunden anzeigen</value>
Expand Down
2 changes: 1 addition & 1 deletion Clock11/Resources.resx
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@
Programmed by Andreas L.</value>
</data>
<data name="strReleaseDate" xml:space="preserve">
<value>03/12/2021 12:50 AM</value>
<value>07/12/2021 3:18 PM</value>
</data>
<data name="strSettingsDialog_ShowSeconds" xml:space="preserve">
<value>Show seconds</value>
Expand Down

0 comments on commit 917849b

Please sign in to comment.