Skip to content

Commit

Permalink
Merge pull request #405 from emoacht/hotfix
Browse files Browse the repository at this point in the history
Hotfix
  • Loading branch information
emoacht authored Jan 4, 2023
2 parents 3af6159 + 7997d28 commit 7f86a89
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Source/Installer/Product.wxs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<Product Id="*" Name="Monitorian" Manufacturer="emoacht" Version="4.0.0"
<Product Id="*" Name="Monitorian" Manufacturer="emoacht" Version="4.0.1"
Language="1033" Codepage="1252" UpgradeCode="{81A4D148-75D3-462E-938D-8C208FB48E3C}">
<Package Id="*" InstallerVersion="500" Compressed="yes"
InstallScope="perMachine" InstallPrivileges="elevated"
Expand Down
4 changes: 2 additions & 2 deletions Source/Monitorian.Core/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("4.0.0.0")]
[assembly: AssemblyFileVersion("4.0.0.0")]
[assembly: AssemblyVersion("4.0.1.0")]
[assembly: AssemblyFileVersion("4.0.1.0")]
[assembly: NeutralResourcesLanguage("en-US")]

// For unit test
Expand Down
3 changes: 1 addition & 2 deletions Source/Monitorian.Core/Views/WindowPainter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,8 @@ public string GetIconPath()
{
return Theme switch
{
ColorTheme.Dark => "pack://application:,,,/Monitorian.Core;component/Resources/Icons/DarkTrayIcon.ico",
ColorTheme.Light => "pack://application:,,,/Monitorian.Core;component/Resources/Icons/LightTrayIcon.ico",
_ => null
ColorTheme.Dark or _ => "pack://application:,,,/Monitorian.Core;component/Resources/Icons/DarkTrayIcon.ico",
};
}

Expand Down
4 changes: 2 additions & 2 deletions Source/Monitorian/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("4.0.0.0")]
[assembly: AssemblyFileVersion("4.0.0.0")]
[assembly: AssemblyVersion("4.0.1.0")]
[assembly: AssemblyFileVersion("4.0.1.0")]
[assembly: Guid("a4cc5362-9b08-465b-ad64-5cfabc72a4c7")]
[assembly: NeutralResourcesLanguage("en-US")]
4 changes: 2 additions & 2 deletions Source/ScreenFrame/Painter/ThemeInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ private static ColorTheme GetTheme(string valueName)
{
const string keyName = @"Software\Microsoft\Windows\CurrentVersion\Themes\Personalize"; // HKCU

// A specified value may not exist if light theme has never been selected.
using var key = Registry.CurrentUser.OpenSubKey(keyName);

return key?.GetValue(valueName) switch
{
0 => ColorTheme.Dark,
1 => ColorTheme.Light,
_ => ColorTheme.Unknown
0 or _ => ColorTheme.Dark
};
}
}
Expand Down
4 changes: 2 additions & 2 deletions Source/ScreenFrame/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("4.0.0.0")]
[assembly: AssemblyFileVersion("4.0.0.0")]
[assembly: AssemblyVersion("4.0.1.0")]
[assembly: AssemblyFileVersion("4.0.1.0")]
[assembly: NeutralResourcesLanguage("en-US")]

0 comments on commit 7f86a89

Please sign in to comment.