From 9486355102c12e4c99d00b941eda0380ce8e8716 Mon Sep 17 00:00:00 2001 From: DB P Date: Sat, 5 Apr 2025 20:14:31 +0900 Subject: [PATCH 01/22] Add check registry method --- .../SettingsPaneGeneralViewModel.cs | 46 +++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/Flow.Launcher/SettingPages/ViewModels/SettingsPaneGeneralViewModel.cs b/Flow.Launcher/SettingPages/ViewModels/SettingsPaneGeneralViewModel.cs index cec8c318c59..a1b38a53cfc 100644 --- a/Flow.Launcher/SettingPages/ViewModels/SettingsPaneGeneralViewModel.cs +++ b/Flow.Launcher/SettingPages/ViewModels/SettingsPaneGeneralViewModel.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using System.Diagnostics; using System.Linq; using System.Windows.Forms; using CommunityToolkit.Mvvm.Input; @@ -10,6 +11,8 @@ using Flow.Launcher.Infrastructure.UserSettings; using Flow.Launcher.Plugin; using Flow.Launcher.Plugin.SharedModels; +using Microsoft.Win32; +using OpenFileDialog = System.Windows.Forms.OpenFileDialog; namespace Flow.Launcher.SettingPages.ViewModels; @@ -25,6 +28,7 @@ public SettingsPaneGeneralViewModel(Settings settings, Updater updater, IPortabl _updater = updater; _portable = portable; UpdateEnumDropdownLocalizations(); + IsLegacyKoreanIMEEnabled(); } public class SearchWindowScreenData : DropdownDataGeneric { } @@ -187,6 +191,48 @@ public string Language } } + bool IsLegacyKoreanIMEEnabled() + { + const string subKeyPath = @"Software\Microsoft\input\tsf\tsf3override\{A028AE76-01B1-46C2-99C4-ACD9858AE02F}"; + const string valueName = "NoTsf3Override5"; + + try + { + using (RegistryKey key = Registry.CurrentUser.OpenSubKey(subKeyPath)) + { + if (key != null) + { + object value = key.GetValue(valueName); + if (value != null) + { + Debug.WriteLine($"[IME DEBUG] '{valueName}' 값: {value} (타입: {value.GetType()})"); + + if (value is int intValue) + return intValue == 1; + + if (int.TryParse(value.ToString(), out int parsed)) + return parsed == 1; + } + else + { + Debug.WriteLine($"[IME DEBUG] '{valueName}' 값이 존재하지 않습니다."); + } + } + else + { + Debug.WriteLine($"[IME DEBUG] 레지스트리 키를 찾을 수 없습니다: {subKeyPath}"); + } + } + } + catch (Exception ex) + { + Debug.WriteLine($"[IME DEBUG] 예외 발생: {ex.Message}"); + } + + return false; // 기본적으로 새 IME 사용 중으로 간주 + } + + public bool ShouldUsePinyin { get => Settings.ShouldUsePinyin; From 43330db96925fd595823516079168caf442cbda1 Mon Sep 17 00:00:00 2001 From: DB p Date: Sun, 6 Apr 2025 22:14:15 +0900 Subject: [PATCH 02/22] Add InfoBar Control --- Flow.Launcher/Resources/Dark.xaml | 16 ++++++++--- Flow.Launcher/Resources/Light.xaml | 14 ++++++++-- .../Views/SettingsPaneGeneral.xaml | 27 +++++++++++++++++++ 3 files changed, 52 insertions(+), 5 deletions(-) diff --git a/Flow.Launcher/Resources/Dark.xaml b/Flow.Launcher/Resources/Dark.xaml index ec089b378a6..1daddbfa7a7 100644 --- a/Flow.Launcher/Resources/Dark.xaml +++ b/Flow.Launcher/Resources/Dark.xaml @@ -114,10 +114,20 @@ - - - + + + + + + + + + + diff --git a/Flow.Launcher/Resources/Light.xaml b/Flow.Launcher/Resources/Light.xaml index aa6da9fb22d..53609954665 100644 --- a/Flow.Launcher/Resources/Light.xaml +++ b/Flow.Launcher/Resources/Light.xaml @@ -105,10 +105,20 @@ - + + + + + - + + + + diff --git a/Flow.Launcher/SettingPages/Views/SettingsPaneGeneral.xaml b/Flow.Launcher/SettingPages/Views/SettingsPaneGeneral.xaml index 3f8272ddafe..c53edd07e2e 100644 --- a/Flow.Launcher/SettingPages/Views/SettingsPaneGeneral.xaml +++ b/Flow.Launcher/SettingPages/Views/SettingsPaneGeneral.xaml @@ -28,6 +28,33 @@ Style="{StaticResource PageTitle}" Text="{DynamicResource general}" TextAlignment="left" /> + + + + Date: Sun, 6 Apr 2025 23:17:56 +0900 Subject: [PATCH 03/22] Adjust Inforbar --- Flow.Launcher/Resources/Controls/InfoBar.xaml | 78 +++++++ .../Resources/Controls/InfoBar.xaml.cs | 219 ++++++++++++++++++ .../Views/SettingsPaneGeneral.xaml | 13 +- 3 files changed, 307 insertions(+), 3 deletions(-) create mode 100644 Flow.Launcher/Resources/Controls/InfoBar.xaml create mode 100644 Flow.Launcher/Resources/Controls/InfoBar.xaml.cs diff --git a/Flow.Launcher/Resources/Controls/InfoBar.xaml b/Flow.Launcher/Resources/Controls/InfoBar.xaml new file mode 100644 index 00000000000..1713b3459b3 --- /dev/null +++ b/Flow.Launcher/Resources/Controls/InfoBar.xaml @@ -0,0 +1,78 @@ + + + + + + + + + + + + + + + + + + + + + +