10
10
using Flow . Launcher . Resources . Controls ;
11
11
using Flow . Launcher . SettingPages . ViewModels ;
12
12
using Flow . Launcher . ViewModel ;
13
+ using iNKORE . UI . WPF . Modern . Controls ;
13
14
14
15
namespace Flow . Launcher . SettingPages . Views ;
15
16
@@ -50,9 +51,9 @@ private void PluginHotkeySettings_Loaded(object sender, RoutedEventArgs e)
50
51
var allHotkeyInvisible = hotkeyInfo . All ( h => ! h . Visible ) ;
51
52
if ( allHotkeyInvisible ) continue ;
52
53
53
- var excard = new ExCard ( )
54
+ var excard = new SettingsExpander ( )
54
55
{
55
- Title = metadata . Name ,
56
+ Header = metadata . Name ,
56
57
Margin = new Thickness ( 0 , 4 , 0 , 0 ) ,
57
58
} ;
58
59
var hotkeyStackPanel = new StackPanel
@@ -66,12 +67,11 @@ private void PluginHotkeySettings_Loaded(object sender, RoutedEventArgs e)
66
67
// Skip invisible hotkeys
67
68
if ( ! hotkey . Visible ) continue ;
68
69
69
- var card = new Card ( )
70
+ var card = new SettingsCard ( )
70
71
{
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 }
75
75
} ;
76
76
var hotkeySetting = metadata . PluginHotkeys . Find ( h => h . Id == hotkey . Id ) ? . Hotkey ?? hotkey . DefaultHotkey ;
77
77
if ( hotkey . Editable )
@@ -83,9 +83,9 @@ private void PluginHotkeySettings_Loaded(object sender, RoutedEventArgs e)
83
83
HotkeyControl . HotkeyType . WindowPluginHotkey ,
84
84
DefaultHotkey = hotkey . DefaultHotkey ,
85
85
ValidateKeyGesture = false ,
86
- Hotkey = hotkeySetting
86
+ Hotkey = hotkeySetting ,
87
+ ChangeHotkey = new RelayCommand < HotkeyModel > ( ( h ) => ChangePluginHotkey ( metadata , hotkey , h ) )
87
88
} ;
88
- hotkeyControl . ChangeHotkey = new RelayCommand < HotkeyModel > ( ( h ) => ChangePluginHotkey ( metadata , hotkey , h ) ) ;
89
89
card . Content = hotkeyControl ;
90
90
}
91
91
else
0 commit comments