Skip to content

Commit 5565b58

Browse files
onesoundsjjw24
authored andcommitted
Merge pull request #3683 from onesounds/250609-FixLaunguageLayout
Fix issue with multilingual display
1 parent f684f5b commit 5565b58

File tree

8 files changed

+26
-25
lines changed

8 files changed

+26
-25
lines changed

Flow.Launcher/HotkeyControlDialog.xaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -125,12 +125,12 @@
125125
BorderThickness="0 1 0 0"
126126
CornerRadius="0 0 8 8">
127127
<StackPanel
128-
Margin="10"
128+
Margin="10 9 10 10"
129129
HorizontalAlignment="Center"
130130
Orientation="Horizontal">
131131
<Button
132132
x:Name="OverwriteBtn"
133-
Height="30"
133+
MinHeight="36"
134134
MinWidth="100"
135135
Margin="0 0 4 0"
136136
Click="Overwrite"
@@ -139,26 +139,26 @@
139139
Visibility="Collapsed" />
140140
<Button
141141
x:Name="SaveBtn"
142-
Height="30"
142+
MinHeight="36"
143143
MinWidth="100"
144144
Margin="0 0 4 0"
145145
Click="Save"
146146
Content="{DynamicResource commonSave}"
147147
Style="{StaticResource AccentButtonStyle}" />
148148
<Button
149-
Height="30"
149+
MinHeight="36"
150150
MinWidth="100"
151151
Margin="4 0 4 0"
152152
Click="Reset"
153153
Content="{DynamicResource commonReset}" />
154154
<Button
155-
Height="30"
155+
MinHeight="36"
156156
MinWidth="100"
157157
Margin="4 0 4 0"
158158
Click="Delete"
159159
Content="{DynamicResource commonDelete}" />
160160
<Button
161-
Height="30"
161+
MinHeight="36"
162162
MinWidth="100"
163163
Margin="4 0 0 0"
164164
Click="Cancel"

Flow.Launcher/Resources/Pages/WelcomePage1.xaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@
103103
<Grid>
104104
<Grid.RowDefinitions>
105105
<RowDefinition Height="250" />
106-
<RowDefinition />
106+
<RowDefinition Height="340"/>
107107
</Grid.RowDefinitions>
108108

109109
<Border Grid.Row="0" HorizontalAlignment="Stretch">
@@ -140,7 +140,7 @@
140140
</Border>
141141

142142

143-
<Canvas Grid.Row="1" Height="288">
143+
<Canvas Grid.Row="1" Height="338">
144144
<Image
145145
Name="wizard"
146146
Canvas.Right="30"
@@ -156,7 +156,7 @@
156156
<TextBlock
157157
FontSize="20"
158158
FontWeight="SemiBold"
159-
Text="{DynamicResource Welcome_Page1_Title}" />
159+
Text="{DynamicResource Welcome_Page1_Title}" TextWrapping="WrapWithOverflow"/>
160160
<TextBlock
161161
Margin="0 10 24 0"
162162
FontSize="14"

Flow.Launcher/Resources/Pages/WelcomePage2.xaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
<Grid>
3939
<Grid.RowDefinitions>
4040
<RowDefinition Height="250" />
41-
<RowDefinition />
41+
<RowDefinition Height="340"/>
4242
</Grid.RowDefinitions>
4343

4444
<Border Grid.Row="0" HorizontalAlignment="Stretch">
@@ -89,12 +89,12 @@
8989
</StackPanel>
9090
</Border>
9191

92-
<StackPanel Grid.Row="1" Margin="24 20 24 20">
93-
<StackPanel>
92+
<ScrollViewer Grid.Row="1" VerticalScrollBarVisibility="Visible">
93+
<StackPanel Margin="24 20 24 20">
9494
<TextBlock
9595
FontSize="20"
9696
FontWeight="SemiBold"
97-
Text="{DynamicResource Welcome_Page2_Title}" />
97+
Text="{DynamicResource Welcome_Page2_Title}" TextWrapping="WrapWithOverflow"/>
9898
<TextBlock
9999
Margin="0 10 0 0"
100100
FontSize="14"
@@ -119,7 +119,7 @@
119119
WindowTitle="{DynamicResource flowlauncherHotkey}" />
120120
</StackPanel>
121121

122-
</StackPanel>
122+
</ScrollViewer>
123123
</Grid>
124124
</ScrollViewer>
125125
</ui:Page>

Flow.Launcher/Resources/Pages/WelcomePage4.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
<TextBlock
9494
FontSize="20"
9595
FontWeight="SemiBold"
96-
Text="{DynamicResource Welcome_Page4_Title}" />
96+
Text="{DynamicResource Welcome_Page4_Title}" TextWrapping="WrapWithOverflow"/>
9797
<TextBlock
9898
Margin="0 10 0 10"
9999
FontSize="14"

Flow.Launcher/Resources/Pages/WelcomePage5.xaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
<Grid>
5454
<Grid.RowDefinitions>
5555
<RowDefinition Height="250" />
56-
<RowDefinition />
56+
<RowDefinition Height="340"/>
5757
</Grid.RowDefinitions>
5858

5959
<Border Grid.Row="0" HorizontalAlignment="Stretch">
@@ -79,18 +79,18 @@
7979
</StackPanel>
8080
</Border>
8181

82-
<StackPanel Grid.Row="1" Margin="24 20 24 20">
82+
<StackPanel Grid.Row="1" Margin="24 20 24 20" >
8383
<StackPanel>
8484
<TextBlock
8585
FontSize="20"
8686
FontWeight="SemiBold"
87-
Text="{DynamicResource Welcome_Page5_Title}" />
87+
Text="{DynamicResource Welcome_Page5_Title}" TextWrapping="WrapWithOverflow"/>
8888
<TextBlock
8989
Margin="0 10 0 0"
9090
FontSize="14"
9191
Text="{DynamicResource Welcome_Page5_Text01}"
9292
TextWrapping="WrapWithOverflow" />
93-
<StackPanel Margin="0 30 0 0" Orientation="Horizontal">
93+
<StackPanel Margin="0 20 0 0" Orientation="Horizontal">
9494
<CheckBox
9595
Checked="OnAutoStartupChecked"
9696
Content="{DynamicResource startFlowLauncherOnSystemStartup}"
@@ -109,7 +109,7 @@
109109
<Button
110110
Width="150"
111111
Height="40"
112-
Margin="0 60 0 0"
112+
Margin="0 102 0 0"
113113
HorizontalAlignment="Right"
114114
Click="BtnCancel_OnClick"
115115
Content="{DynamicResource done}"

Flow.Launcher/SettingPages/ViewModels/SettingsPaneGeneralViewModel.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,8 @@ private void UpdateEnumDropdownLocalizations()
177177
DropdownDataGeneric<SearchWindowAligns>.UpdateLabels(SearchWindowAligns);
178178
DropdownDataGeneric<SearchPrecisionScore>.UpdateLabels(SearchPrecisionScores);
179179
DropdownDataGeneric<LastQueryMode>.UpdateLabels(LastQueryModes);
180+
// Since we are using Binding instead of DynamicResource, we need to manually trigger the update
181+
OnPropertyChanged(nameof(AlwaysPreviewToolTip));
180182
}
181183

182184
public string Language

Flow.Launcher/SettingPages/Views/SettingsPaneGeneral.xaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@
154154
Title="{DynamicResource AlwaysPreview}"
155155
Margin="0 14 0 0"
156156
Icon="&#xe8a1;"
157-
Sub="{DynamicResource AlwaysPreviewToolTip}">
157+
Sub="{Binding AlwaysPreviewToolTip}">
158158
<ui:ToggleSwitch
159159
IsOn="{Binding Settings.AlwaysPreview}"
160160
OffContent="{DynamicResource disable}"
@@ -352,7 +352,6 @@
352352
Title="{DynamicResource KoreanImeTitle}"
353353
Margin="0 14 0 0"
354354
Closable="False"
355-
DataContext="{Binding RelativeSource={RelativeSource AncestorType=Border}, Path=DataContext}"
356355
IsIconVisible="True"
357356
Length="Long"
358357
Message="{DynamicResource KoreanImeGuide}"

Flow.Launcher/WelcomeWindow.xaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@
1010
Name="FlowWelcomeWindow"
1111
Title="{DynamicResource Welcome_Page1_Title}"
1212
Width="550"
13-
Height="650"
13+
Height="700"
1414
MinWidth="550"
15-
MinHeight="650"
15+
MinHeight="700"
1616
MaxWidth="550"
17-
MaxHeight="650"
17+
MaxHeight="700"
1818
d:DataContext="{d:DesignInstance Type=vm:WelcomeViewModel}"
1919
Activated="OnActivated"
2020
Background="{DynamicResource Color00B}"

0 commit comments

Comments
 (0)