Skip to content

Commit 4a991e5

Browse files
committed
Add Images in custom query windows
1 parent 575fb73 commit 4a991e5

File tree

4 files changed

+16
-9
lines changed

4 files changed

+16
-9
lines changed

Flow.Launcher/CustomQueryHotkeySetting.xaml

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

8084
<StackPanel Margin="0,20,0,0" Orientation="Horizontal">

Flow.Launcher/CustomShortcutSetting.xaml

Lines changed: 12 additions & 9 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,9 +76,13 @@
7676
Text="{DynamicResource customeQueryShortcutTips}"
7777
TextAlignment="Left"
7878
TextWrapping="WrapWithOverflow" />
79+
<Image
80+
Width="470"
81+
Margin="0,10,0,0"
82+
Source="/Images/illustration_02.png" />
7983
</StackPanel>
8084

81-
<StackPanel Margin="0,20,0,0" Orientation="Horizontal">
85+
<StackPanel Margin="0,10,0,10" Orientation="Horizontal">
8286
<Grid Width="470">
8387
<Grid.RowDefinitions>
8488
<RowDefinition />
@@ -100,8 +104,7 @@
100104
Grid.Row="0"
101105
Grid.Column="1"
102106
Margin="10"
103-
Text="{Binding Key}"
104-
/>
107+
Text="{Binding Key}" />
105108
<TextBlock
106109
Grid.Row="1"
107110
Grid.Column="0"
@@ -124,18 +127,18 @@
124127
DockPanel.Dock="Right" />
125128
<TextBox
126129
x:Name="tbExpand"
127-
Margin="10"
130+
Margin="10,0,10,0"
128131
HorizontalAlignment="Stretch"
129-
Text="{Binding Value}"
130-
VerticalAlignment="Center" />
132+
VerticalAlignment="Center"
133+
Text="{Binding Value}" />
131134
</DockPanel>
132135
</Grid>
133136
</StackPanel>
134137
</StackPanel>
135138
</StackPanel>
136139
<Border
137140
Grid.Row="1"
138-
Margin="0,14,0,0"
141+
Margin="0,10,0,0"
139142
Background="{DynamicResource PopupButtonAreaBGColor}"
140143
BorderBrush="{DynamicResource PopupButtonAreaBorderColor}"
141144
BorderThickness="0,1,0,0">
43.9 KB
Loading
14 KB
Loading

0 commit comments

Comments
 (0)