Specify the default display type in Card and HotkeyDisplay controls

This commit is contained in:
Yusyuriv 2024-04-23 07:54:42 +06:00
parent 5a0f1f8a04
commit a3b13ef6ac
No known key found for this signature in database
GPG key ID: A91C52E6F73148E0
2 changed files with 3 additions and 2 deletions

View file

@ -7,6 +7,7 @@ namespace Flow.Launcher.Resources.Controls
{ {
public enum CardType public enum CardType
{ {
Default,
Inside, Inside,
InsideFit InsideFit
} }
@ -57,6 +58,6 @@ namespace Flow.Launcher.Resources.Controls
} }
public static readonly DependencyProperty TypeProperty = public static readonly DependencyProperty TypeProperty =
DependencyProperty.Register(nameof(Type), typeof(CardType), typeof(Card), DependencyProperty.Register(nameof(Type), typeof(CardType), typeof(Card),
new PropertyMetadata(null)); new PropertyMetadata(CardType.Default));
} }
} }

View file

@ -38,7 +38,7 @@ namespace Flow.Launcher.Resources.Controls
public static readonly DependencyProperty TypeProperty = public static readonly DependencyProperty TypeProperty =
DependencyProperty.Register(nameof(Type), typeof(DisplayType), typeof(HotkeyDisplay), DependencyProperty.Register(nameof(Type), typeof(DisplayType), typeof(HotkeyDisplay),
new PropertyMetadata(null)); new PropertyMetadata(DisplayType.Default));
private static void keyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) private static void keyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
{ {