Skip to content

Commit 45335f2

Browse files
Merge pull request #1554 from onesounds/WindowIllustration
Add Illustrations in custom query windows
2 parents a6234c5 + 0446fee commit 45335f2

File tree

5 files changed

+23
-13
lines changed

5 files changed

+23
-13
lines changed

Flow.Launcher/CustomQueryHotkeySetting.xaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,14 @@
7575
Text="{DynamicResource customeQueryHotkeyTips}"
7676
TextAlignment="Left"
7777
TextWrapping="WrapWithOverflow" />
78+
<Image
79+
Width="478"
80+
Margin="0,20,0,0"
81+
Source="/Images/illustration_01.png" />
7882
</StackPanel>
7983

8084
<StackPanel Margin="0,20,0,0" Orientation="Horizontal">
81-
<Grid Width="470">
85+
<Grid Width="478">
8286
<Grid.RowDefinitions>
8387
<RowDefinition />
8488
<RowDefinition />
@@ -131,6 +135,7 @@
131135
LastChildFill="True">
132136
<Button
133137
x:Name="btnTestActionKeyword"
138+
Margin="0,0,10,0"
134139
Padding="10,5,10,5"
135140
Click="BtnTestActionKeyword_OnClick"
136141
Content="{DynamicResource preview}"

Flow.Launcher/CustomShortcutSetting.xaml

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66
Title="{DynamicResource customeQueryShortcutTitle}"
77
Width="530"
88
Background="{DynamicResource PopuBGColor}"
9+
DataContext="{Binding RelativeSource={RelativeSource Self}}"
910
Foreground="{DynamicResource PopupTextColor}"
1011
Icon="Images\app.png"
1112
ResizeMode="NoResize"
1213
SizeToContent="Height"
13-
WindowStartupLocation="CenterScreen"
14-
DataContext="{Binding RelativeSource={RelativeSource Self}}">
14+
WindowStartupLocation="CenterScreen">
1515
<WindowChrome.WindowChrome>
1616
<WindowChrome CaptionHeight="32" ResizeBorderThickness="{x:Static SystemParameters.WindowResizeBorderThickness}" />
1717
</WindowChrome.WindowChrome>
@@ -76,10 +76,14 @@
7676
Text="{DynamicResource customeQueryShortcutTips}"
7777
TextAlignment="Left"
7878
TextWrapping="WrapWithOverflow" />
79+
<Image
80+
Width="478"
81+
Margin="0,20,0,0"
82+
Source="/Images/illustration_02.png" />
7983
</StackPanel>
8084

81-
<StackPanel Margin="0,20,0,0" Orientation="Horizontal">
82-
<Grid Width="470">
85+
<StackPanel Margin="0,10,0,10" Orientation="Horizontal">
86+
<Grid Width="478">
8387
<Grid.RowDefinitions>
8488
<RowDefinition />
8589
<RowDefinition />
@@ -99,9 +103,10 @@
99103
<TextBox
100104
Grid.Row="0"
101105
Grid.Column="1"
106+
Width="180"
102107
Margin="10"
103-
Text="{Binding Key}"
104-
/>
108+
HorizontalAlignment="Left"
109+
Text="{Binding Key}" />
105110
<TextBlock
106111
Grid.Row="1"
107112
Grid.Column="0"
@@ -124,18 +129,18 @@
124129
DockPanel.Dock="Right" />
125130
<TextBox
126131
x:Name="tbExpand"
127-
Margin="10"
132+
Margin="10,0,10,0"
128133
HorizontalAlignment="Stretch"
129-
Text="{Binding Value}"
130-
VerticalAlignment="Center" />
134+
VerticalAlignment="Center"
135+
Text="{Binding Value}" />
131136
</DockPanel>
132137
</Grid>
133138
</StackPanel>
134139
</StackPanel>
135140
</StackPanel>
136141
<Border
137142
Grid.Row="1"
138-
Margin="0,14,0,0"
143+
Margin="0,10,0,0"
139144
Background="{DynamicResource PopupButtonAreaBGColor}"
140145
BorderBrush="{DynamicResource PopupButtonAreaBorderColor}"
141146
BorderThickness="0,1,0,0">
43.9 KB
Loading
14 KB
Loading

Flow.Launcher/Languages/en.xaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@
145145
<system:String x:Key="showOpenResultHotkeyToolTip">Show result selection hotkey with results.</system:String>
146146
<system:String x:Key="customQueryHotkey">Custom Query Hotkey</system:String>
147147
<system:String x:Key="customQueryShortcut">Custom Query Shortcut</system:String>
148-
<system:String x:Key="builtinShortcuts">Built-in Shortcuts</system:String>
148+
<system:String x:Key="builtinShortcuts">Built-in Shortcut</system:String>
149149
<system:String x:Key="customQuery">Query</system:String>
150150
<system:String x:Key="customShortcut">Shortcut</system:String>
151151
<system:String x:Key="customShortcutExpansion">Expansion</system:String>
@@ -245,7 +245,7 @@
245245

246246
<!-- Custom Query Hotkey Dialog -->
247247
<system:String x:Key="customeQueryHotkeyTitle">Custom Query Hotkey</system:String>
248-
<system:String x:Key="customeQueryHotkeyTips">Press the custom hotkey to automatically insert the specified query.</system:String>
248+
<system:String x:Key="customeQueryHotkeyTips">Press a custom hotkey to open Flow Laucher and input the specified query automatically.</system:String>
249249
<system:String x:Key="preview">Preview</system:String>
250250
<system:String x:Key="hotkeyIsNotUnavailable">Hotkey is unavailable, please select a new hotkey</system:String>
251251
<system:String x:Key="invalidPluginHotkey">Invalid plugin hotkey</system:String>

0 commit comments

Comments
 (0)