Skip to content

Commit ead14f2

Browse files
committed
- Redesign Priority Change Window
- Add Priority Window Title String
1 parent 21931a8 commit ead14f2

File tree

3 files changed

+39
-19
lines changed

3 files changed

+39
-19
lines changed

Flow.Launcher/Languages/en.xaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@
133133
<system:String x:Key="documentation">Usage Tips:</system:String>
134134

135135
<!--Priority Setting Dialog-->
136+
<system:String x:Key="changePriorityWindow">Change Priority</system:String>
136137
<system:String x:Key="priority_tips">Greater the number, the higher the result will be ranked. Try setting it as 5. If you want the results to be lower than any other plugin's, provide a negative number</system:String>
137138
<system:String x:Key="invalidPriority">Please provide an valid integer for Priority!</system:String>
138139

Flow.Launcher/Languages/ko.xaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,15 @@
5252
<system:String x:Key="enable">On</system:String>
5353
<system:String x:Key="disable">Off</system:String>
5454
<system:String x:Key="actionKeywords">액션 키워드</system:String>
55+
<system:String x:Key="currentPriority">현재 중요도:</system:String>
56+
<system:String x:Key="newPriority">새 중요도:</system:String>
57+
<system:String x:Key="priority">중요도</system:String>
5558
<system:String x:Key="pluginDirectory">플러그인 디렉토리</system:String>
5659
<system:String x:Key="author">저자</system:String>
5760
<system:String x:Key="plugin_init_time">초기화 시간:</system:String>
5861
<system:String x:Key="plugin_query_time">쿼리 시간:</system:String>
5962

63+
6064
<!--Setting Plugin Store-->
6165
<system:String x:Key="pluginStore">플러그인 스토어</system:String>
6266
<system:String x:Key="refresh">새로고침</system:String>
@@ -128,6 +132,7 @@
128132
<system:String x:Key="documentation">사용 팁:</system:String>
129133

130134
<!--Priority Setting Dialog-->
135+
<system:String x:Key="changePriorityWindow">중요도 변경</system:String>
131136
<system:String x:Key="priority_tips">높은 수를 넣을수록 상위 결과에 표시됩니다. 5를 시도해보세요. 다른 플러그인 보다 결과를 낮추고 싶다면, 그보다 낮은 수를 입력하세요.</system:String>
132137
<system:String x:Key="invalidPriority">중요도에 올바른 정수를 입력하세요.</system:String>
133138
<!--Action Keyword Setting Dialog-->

Flow.Launcher/PriorityChangeWindow.xaml

Lines changed: 33 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -7,37 +7,51 @@
77
Loaded="PriorityChangeWindow_Loaded"
88
mc:Ignorable="d"
99
WindowStartupLocation="CenterScreen"
10-
Title="PriorityChangeWindow" Height="250" Width="300">
10+
Title="{DynamicResource changePriorityWindow}" Height="400" Width="350" ResizeMode="NoResize" Background="#f3f3f3">
1111
<Grid>
1212
<Grid.RowDefinitions>
1313
<RowDefinition />
14-
<RowDefinition Height="60"/>
15-
<RowDefinition Height="75"/>
1614
<RowDefinition />
15+
<RowDefinition />
16+
<RowDefinition Height="80"/>
1717
</Grid.RowDefinitions>
1818
<Grid.ColumnDefinitions>
19-
<ColumnDefinition Width="20" />
2019
<ColumnDefinition />
2120
</Grid.ColumnDefinitions>
22-
<TextBlock FontSize="14" Grid.Row="0" Grid.Column="1" VerticalAlignment="Center"
23-
HorizontalAlignment="Left" Text="{DynamicResource currentPriority}" />
24-
<TextBlock x:Name="OldPriority" Grid.Row="0" Grid.Column="1" Margin="170 10 10 10" FontSize="14"
25-
VerticalAlignment="Center" HorizontalAlignment="Left" />
26-
27-
<TextBlock FontSize="14" Grid.Row="1" Grid.Column="1" VerticalAlignment="Center"
28-
HorizontalAlignment="Left" Text="{DynamicResource newPriority}" />
29-
<StackPanel Grid.Row="1" Orientation="Horizontal" Grid.Column="1">
30-
<TextBox x:Name="tbAction" Margin="140 10 15 10" Width="105" VerticalAlignment="Center" HorizontalAlignment="Left" />
21+
<StackPanel Grid.Row="0" VerticalAlignment="Center">
22+
<TextBlock Grid.Column="0" FontFamily="/Resources/#Segoe Fluent Icons" FontSize="40" TextAlignment="Center"
23+
Margin="0 0 0 0">
24+
&#xe8d0;
25+
</TextBlock>
3126
</StackPanel>
3227

33-
<TextBlock Grid.Row="2" Grid.ColumnSpan="1" Grid.Column="1" Foreground="Gray"
34-
Text="{DynamicResource priority_tips}" TextWrapping="Wrap"
35-
Margin="0,0,20,0"/>
28+
<Border Background="#ffffff" Grid.Row="1" BorderBrush="#cecece" BorderThickness="1" Margin="14 0 14 0" Padding="0 14 0 0" CornerRadius="5">
29+
<StackPanel Orientation="Vertical" >
30+
31+
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" Grid.Row="1">
32+
<TextBlock FontSize="14" Grid.Column="1" VerticalAlignment="Center"
33+
HorizontalAlignment="Left" Text="{DynamicResource currentPriority}" />
34+
<TextBlock x:Name="OldPriority" Grid.Row="0" Grid.Column="1" Margin="14 0 10 0" FontSize="14"
35+
VerticalAlignment="Center" HorizontalAlignment="Left" FontWeight="Bold" />
36+
</StackPanel>
3637

37-
<StackPanel Orientation="Horizontal" HorizontalAlignment="Right" Grid.Row="3" Grid.Column="1">
38-
<Button x:Name="btnCancel" Click="BtnCancel_OnClick" Margin="10 0 10 0" Width="80" Height="30"
38+
<StackPanel Orientation="Horizontal" Grid.Column="1" HorizontalAlignment="Center">
39+
<TextBlock FontSize="14" VerticalAlignment="Center"
40+
HorizontalAlignment="Right" Text="{DynamicResource newPriority}" />
41+
<TextBox x:Name="tbAction" Margin="14 10 15 10" Width="105" VerticalAlignment="Center" HorizontalAlignment="Left" />
42+
</StackPanel>
43+
44+
</StackPanel>
45+
</Border>
46+
<StackPanel Grid.Row="2" VerticalAlignment="Center">
47+
<TextBlock Foreground="Gray"
48+
Text="{DynamicResource priority_tips}" TextWrapping="WrapWithOverflow" TextAlignment="Center"
49+
Margin="20,0,20,0"/>
50+
</StackPanel>
51+
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" Grid.Row="3" Grid.Column="1">
52+
<Button x:Name="btnCancel" Click="BtnCancel_OnClick" Margin="0 0 10 0" Width="80" Height="30"
3953
Content="{DynamicResource cancel}" />
40-
<Button x:Name="btnDone" Margin="10 0 10 0" Width="80" Height="30" Click="btnDone_OnClick">
54+
<Button x:Name="btnDone" Margin="10 0 0 0" Width="80" Height="30" Click="btnDone_OnClick">
4155
<TextBlock x:Name="lblAdd" Text="{DynamicResource done}" />
4256
</Button>
4357
</StackPanel>

0 commit comments

Comments
 (0)