1
+ <Window
2
+ x : Class =" Flow.Launcher.Plugin.Sys.CommandKeywordSettingWindow"
3
+ xmlns =" http://schemas.microsoft.com/winfx/2006/xaml/presentation"
4
+ xmlns : x =" http://schemas.microsoft.com/winfx/2006/xaml"
5
+ xmlns : d =" http://schemas.microsoft.com/expression/blend/2008"
6
+ xmlns : mc =" http://schemas.openxmlformats.org/markup-compatibility/2006"
7
+ Title =" {DynamicResource lowlauncher_plugin_sys_command_keyword_setting_window_title}"
8
+ Width =" 550"
9
+ Background =" {DynamicResource PopupBGColor}"
10
+ Foreground =" {DynamicResource PopupTextColor}"
11
+ ResizeMode =" NoResize"
12
+ SizeToContent =" Height"
13
+ WindowStartupLocation =" CenterScreen"
14
+ mc : Ignorable =" d" >
15
+ <WindowChrome .WindowChrome>
16
+ <WindowChrome CaptionHeight =" 32" ResizeBorderThickness =" {x:Static SystemParameters.WindowResizeBorderThickness}" />
17
+ </WindowChrome .WindowChrome>
18
+ <Grid >
19
+ <Grid .RowDefinitions>
20
+ <RowDefinition />
21
+ <RowDefinition Height =" 80" />
22
+ </Grid .RowDefinitions>
23
+
24
+ <StackPanel Grid.Row=" 0" >
25
+ <StackPanel >
26
+ <Grid >
27
+ <Grid .ColumnDefinitions>
28
+ <ColumnDefinition Width =" *" />
29
+ <ColumnDefinition Width =" Auto" />
30
+ </Grid .ColumnDefinitions>
31
+ <Button
32
+ Grid.Column=" 1"
33
+ Click =" OnCancelButtonClick"
34
+ Style =" {StaticResource TitleBarCloseButtonStyle}" >
35
+ <Path
36
+ Width =" 46"
37
+ Height =" 32"
38
+ Data =" M 18,11 27,20 M 18,20 27,11"
39
+ Stroke =" {Binding Path=Foreground, RelativeSource={RelativeSource AncestorType={x:Type Button}}}"
40
+ StrokeThickness =" 1" >
41
+ <Path .Style>
42
+ <Style TargetType =" Path" >
43
+ <Style .Triggers>
44
+ <DataTrigger Binding =" {Binding Path=IsActive, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Window}}}" Value =" False" >
45
+ <Setter Property =" Opacity" Value =" 0.5" />
46
+ </DataTrigger >
47
+ </Style .Triggers>
48
+ </Style >
49
+ </Path .Style>
50
+ </Path >
51
+ </Button >
52
+ </Grid >
53
+ </StackPanel >
54
+ <StackPanel Margin =" 26 12 26 0" >
55
+ <StackPanel Margin =" 0 0 0 12" >
56
+ <TextBlock
57
+ Grid.Column=" 0"
58
+ Margin =" 0 0 0 0"
59
+ FontSize =" 20"
60
+ FontWeight =" SemiBold"
61
+ Text =" {DynamicResource flowlauncher_plugin_sys_custom_command_keyword}"
62
+ TextAlignment =" Left" />
63
+ </StackPanel >
64
+
65
+ <StackPanel >
66
+ <TextBlock
67
+ x : Name =" CommandKeywordTips"
68
+ FontSize =" 14"
69
+ TextAlignment =" Left"
70
+ TextWrapping =" WrapWithOverflow" />
71
+ </StackPanel >
72
+
73
+ <Grid Margin =" 0 24 0 24" >
74
+ <Grid .ColumnDefinitions>
75
+ <ColumnDefinition Width =" Auto" />
76
+ <ColumnDefinition Width =" *" />
77
+ <ColumnDefinition Width =" Auto" />
78
+ </Grid .ColumnDefinitions>
79
+ <TextBlock
80
+ Grid.Column=" 0"
81
+ HorizontalAlignment =" Right"
82
+ VerticalAlignment =" Center"
83
+ FontSize =" 14"
84
+ Text =" {DynamicResource flowlauncher_plugin_sys_command_keyword}" />
85
+ <TextBox
86
+ x : Name =" CommandKeyword"
87
+ Grid.Column=" 1"
88
+ Margin =" 10"
89
+ HorizontalAlignment =" Stretch" />
90
+ <Button
91
+ x : Name =" btnTestActionKeyword"
92
+ Grid.Row=" 1"
93
+ Grid.Column=" 2"
94
+ Margin =" 0 0 10 0"
95
+ Padding =" 10 5 10 5"
96
+ Click =" OnResetButtonClick"
97
+ Content =" {DynamicResource flowlauncher_plugin_sys_reset}" />
98
+ </Grid >
99
+ </StackPanel >
100
+ </StackPanel >
101
+ <Border
102
+ Grid.Row=" 1"
103
+ Background =" {DynamicResource PopupButtonAreaBGColor}"
104
+ BorderBrush =" {DynamicResource PopupButtonAreaBorderColor}"
105
+ BorderThickness =" 0 1 0 0" >
106
+ <StackPanel HorizontalAlignment =" Center" Orientation =" Horizontal" >
107
+ <Button
108
+ MinWidth =" 140"
109
+ Margin =" 10 0 5 0"
110
+ Click =" OnCancelButtonClick"
111
+ Content =" {DynamicResource flowlauncher_plugin_sys_cancel}" />
112
+ <Button
113
+ MinWidth =" 140"
114
+ Margin =" 5 0 10 0"
115
+ Click =" OnConfirmButtonClick"
116
+ Content =" {DynamicResource flowlauncher_plugin_sys_confirm}"
117
+ Style =" {DynamicResource AccentButtonStyle}" />
118
+ </StackPanel >
119
+ </Border >
120
+ </Grid >
121
+ </Window >
0 commit comments