mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-16 11:48:06 +01:00
Fix for Warning CA1822 Member 'GetHighContrastBaseType' does not access instance data and can be marked as static PowerLauncher C:\Repos\PowerToys\src\modules\launcher\PowerLauncher\ThemeManager.cs 65 Active
This commit is contained in:
@@ -62,7 +62,7 @@ namespace Wox.Core.Resource
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public Theme GetHighContrastBaseType()
|
public static Theme GetHighContrastBaseType()
|
||||||
{
|
{
|
||||||
string RegistryKey = @"HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Themes";
|
string RegistryKey = @"HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Themes";
|
||||||
string theme = (string) Registry.GetValue(RegistryKey, "CurrentTheme", string.Empty);
|
string theme = (string) Registry.GetValue(RegistryKey, "CurrentTheme", string.Empty);
|
||||||
|
|||||||
Reference in New Issue
Block a user