diff --git a/.github/actions/spell-check/expect.txt b/.github/actions/spell-check/expect.txt index 66a2032b21..3f8c36cd10 100644 --- a/.github/actions/spell-check/expect.txt +++ b/.github/actions/spell-check/expect.txt @@ -582,6 +582,7 @@ GUITHREADINFO GValue gwl GWLP +GWLSTYLE hangeul Hanzi Hardlines @@ -1705,6 +1706,9 @@ TLayout tlb tlbimp tlc +TPMLEFTALIGN +TPMRETURNCMD +TMPVAR TNP Toolhelp toolkitconverters @@ -1916,6 +1920,7 @@ WMI WMICIM wmimgmt wmp +WMSYSCOMMAND wnd WNDCLASS WNDCLASSEX diff --git a/PowerToys.sln b/PowerToys.sln index 2c9c1c6c64..cbcd42c254 100644 --- a/PowerToys.sln +++ b/PowerToys.sln @@ -702,6 +702,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Hosts.FuzzTests", "src\modu EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Hosts.UITests", "src\modules\Hosts\Hosts.UITests\Hosts.UITests.csproj", "{4E0AE3A4-2EE0-44D7-A2D0-8769977254A0}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RegistryPreview.FuzzTests", "src\modules\registrypreview\RegistryPreview.FuzzTests\RegistryPreview.FuzzTests.csproj", "{5702B3CC-8575-48D5-83D8-15BB42269CD3}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|ARM64 = Debug|ARM64 @@ -2558,6 +2560,14 @@ Global {4E0AE3A4-2EE0-44D7-A2D0-8769977254A0}.Release|ARM64.Build.0 = Release|ARM64 {4E0AE3A4-2EE0-44D7-A2D0-8769977254A0}.Release|x64.ActiveCfg = Release|x64 {4E0AE3A4-2EE0-44D7-A2D0-8769977254A0}.Release|x64.Build.0 = Release|x64 + {5702B3CC-8575-48D5-83D8-15BB42269CD3}.Debug|ARM64.ActiveCfg = Debug|ARM64 + {5702B3CC-8575-48D5-83D8-15BB42269CD3}.Debug|ARM64.Build.0 = Debug|ARM64 + {5702B3CC-8575-48D5-83D8-15BB42269CD3}.Debug|x64.ActiveCfg = Debug|x64 + {5702B3CC-8575-48D5-83D8-15BB42269CD3}.Debug|x64.Build.0 = Debug|x64 + {5702B3CC-8575-48D5-83D8-15BB42269CD3}.Release|ARM64.ActiveCfg = Release|ARM64 + {5702B3CC-8575-48D5-83D8-15BB42269CD3}.Release|ARM64.Build.0 = Release|ARM64 + {5702B3CC-8575-48D5-83D8-15BB42269CD3}.Release|x64.ActiveCfg = Release|x64 + {5702B3CC-8575-48D5-83D8-15BB42269CD3}.Release|x64.Build.0 = Release|x64 EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -2826,6 +2836,7 @@ Global {4382A954-179A-4078-92AF-715187DFFF50} = {38BDB927-829B-4C65-9CD9-93FB05D66D65} {EBED240C-8702-452D-B764-6DB9DA9179AF} = {F05E590D-AD46-42BE-9C25-6A63ADD2E3EA} {4E0AE3A4-2EE0-44D7-A2D0-8769977254A0} = {F05E590D-AD46-42BE-9C25-6A63ADD2E3EA} + {5702B3CC-8575-48D5-83D8-15BB42269CD3} = {929C1324-22E8-4412-A9A8-80E85F3985A5} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {C3A2F9D1-7930-4EF4-A6FC-7EE0A99821D0} diff --git a/src/modules/MouseWithoutBorders/App/Core/Logger.cs b/src/modules/MouseWithoutBorders/App/Core/Logger.cs index 520f1671e3..812fc8ad9a 100644 --- a/src/modules/MouseWithoutBorders/App/Core/Logger.cs +++ b/src/modules/MouseWithoutBorders/App/Core/Logger.cs @@ -46,13 +46,13 @@ internal static class Logger Logger.Log(log); } - internal static void Log(Exception e) + internal static void Log(Exception e, [System.Runtime.CompilerServices.CallerMemberName] string memberName = "", [System.Runtime.CompilerServices.CallerFilePath] string sourceFilePath = "", [System.Runtime.CompilerServices.CallerLineNumber] int sourceLineNumber = 0) { if (e is not KnownException) { string exText = e.ToString(); - Log($"!Exception!: {exText}"); + Log($"!Exception!: {exText}", memberName, sourceFilePath, sourceLineNumber); if (DateTime.UtcNow.Hour != lastHour) { @@ -77,18 +77,18 @@ internal static class Logger private const string HeaderRECEIVED = "Be{0},Ke{1},Mo{2},He{3},Mx{4},Tx{5},Im{6},By{7},Cl{8},Dr{9},De{10},Ed{11},In{12},Ni{13},Pc{14}/{15}"; - internal static void LogDebug(string log, bool clearLog = false) + internal static void LogDebug(string log, bool clearLog = false, [System.Runtime.CompilerServices.CallerMemberName] string memberName = "", [System.Runtime.CompilerServices.CallerFilePath] string sourceFilePath = "", [System.Runtime.CompilerServices.CallerLineNumber] int sourceLineNumber = 0) { #if DEBUG - Log(log, clearLog); + Log(log, clearLog, memberName, sourceFilePath, sourceLineNumber); #endif } - internal static void Log(string log, bool clearLog = false) + internal static void Log(string log, bool clearLog = false, [System.Runtime.CompilerServices.CallerMemberName] string memberName = "", [System.Runtime.CompilerServices.CallerFilePath] string sourceFilePath = "", [System.Runtime.CompilerServices.CallerLineNumber] int sourceLineNumber = 0) { log = DateTime.Now.ToString("MM/dd HH:mm:ss.fff", CultureInfo.InvariantCulture) + $"({Thread.CurrentThread.ManagedThreadId})" + log; - ManagedCommon.Logger.LogInfo(log); + ManagedCommon.Logger.LogInfo(log, memberName, sourceFilePath, sourceLineNumber); lock (AllLogsLock) { if (clearLog) diff --git a/src/modules/colorPicker/ColorPickerUI/App.xaml b/src/modules/colorPicker/ColorPickerUI/App.xaml index a6e26f31e2..58d7afb7f3 100644 --- a/src/modules/colorPicker/ColorPickerUI/App.xaml +++ b/src/modules/colorPicker/ColorPickerUI/App.xaml @@ -2,13 +2,11 @@ x:Class="ColorPickerUI.App" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" - xmlns:ui="http://schemas.lepo.co/wpfui/2022/xaml" - StartupUri="MainWindow.xaml"> + StartupUri="MainWindow.xaml" + ThemeMode="System"> - - diff --git a/src/modules/colorPicker/ColorPickerUI/ColorEditorWindow.xaml b/src/modules/colorPicker/ColorPickerUI/ColorEditorWindow.xaml index e8ec0a0a7a..7b2b3172e7 100644 --- a/src/modules/colorPicker/ColorPickerUI/ColorEditorWindow.xaml +++ b/src/modules/colorPicker/ColorPickerUI/ColorEditorWindow.xaml @@ -1,4 +1,4 @@ - - - - - - - - - - - - - - + + + + + + + + + + +