Skip to content

Commit a64bed3

Browse files
committed
Resolve conflicts in SettingsPaneHotkey.xaml.cs
1 parent d36b8b2 commit a64bed3

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

Flow.Launcher/SettingPages/Views/SettingsPaneHotkey.xaml.cs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
using Flow.Launcher.Resources.Controls;
1111
using Flow.Launcher.SettingPages.ViewModels;
1212
using Flow.Launcher.ViewModel;
13+
using iNKORE.UI.WPF.Modern.Controls;
1314

1415
namespace Flow.Launcher.SettingPages.Views;
1516

@@ -50,9 +51,9 @@ private void PluginHotkeySettings_Loaded(object sender, RoutedEventArgs e)
5051
var allHotkeyInvisible = hotkeyInfo.All(h => !h.Visible);
5152
if (allHotkeyInvisible) continue;
5253

53-
var excard = new ExCard()
54+
var excard = new SettingsExpander()
5455
{
55-
Title = metadata.Name,
56+
Header = metadata.Name,
5657
Margin = new Thickness(0, 4, 0, 0),
5758
};
5859
var hotkeyStackPanel = new StackPanel
@@ -66,12 +67,11 @@ private void PluginHotkeySettings_Loaded(object sender, RoutedEventArgs e)
6667
// Skip invisible hotkeys
6768
if (!hotkey.Visible) continue;
6869

69-
var card = new Card()
70+
var card = new SettingsCard()
7071
{
71-
Title = hotkey.Name,
72-
Sub = hotkey.Description,
73-
Icon = hotkey.Glyph.Glyph,
74-
Type = Card.CardType.Inside
72+
Header = hotkey.Name,
73+
Description = hotkey.Description,
74+
HeaderIcon = new FontIcon() { Glyph = hotkey.Glyph.Glyph }
7575
};
7676
var hotkeySetting = metadata.PluginHotkeys.Find(h => h.Id == hotkey.Id)?.Hotkey ?? hotkey.DefaultHotkey;
7777
if (hotkey.Editable)
@@ -83,9 +83,9 @@ private void PluginHotkeySettings_Loaded(object sender, RoutedEventArgs e)
8383
HotkeyControl.HotkeyType.WindowPluginHotkey,
8484
DefaultHotkey = hotkey.DefaultHotkey,
8585
ValidateKeyGesture = false,
86-
Hotkey = hotkeySetting
86+
Hotkey = hotkeySetting,
87+
ChangeHotkey = new RelayCommand<HotkeyModel>((h) => ChangePluginHotkey(metadata, hotkey, h))
8788
};
88-
hotkeyControl.ChangeHotkey = new RelayCommand<HotkeyModel>((h) => ChangePluginHotkey(metadata, hotkey, h));
8989
card.Content = hotkeyControl;
9090
}
9191
else

0 commit comments

Comments
 (0)