|
3 | 3 | xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
4 | 4 | xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
5 | 5 | xmlns:cc="clr-namespace:Flow.Launcher.Resources.Controls"
|
| 6 | + xmlns:converters="clr-namespace:Flow.Launcher.Converters" |
6 | 7 | xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
7 | 8 | xmlns:ext="clr-namespace:Flow.Launcher.Resources.MarkupExtensions"
|
8 | 9 | xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
9 | 10 | xmlns:settingsViewModels="clr-namespace:Flow.Launcher.SettingPages.ViewModels"
|
10 | 11 | xmlns:ui="http://schemas.modernwpf.com/2019"
|
11 |
| - xmlns:converters="clr-namespace:Flow.Launcher.Converters" |
12 | 12 | xmlns:userSettings="clr-namespace:Flow.Launcher.Infrastructure.UserSettings;assembly=Flow.Launcher.Infrastructure"
|
13 | 13 | Title="General"
|
14 | 14 | d:DataContext="{d:DesignInstance settingsViewModels:SettingsPaneGeneralViewModel}"
|
|
32 | 32 | Style="{StaticResource PageTitle}"
|
33 | 33 | Text="{DynamicResource general}"
|
34 | 34 | TextAlignment="left" />
|
35 |
| - |
| 35 | + |
36 | 36 | <cc:ExCard
|
37 | 37 | Title="{DynamicResource startFlowLauncherOnSystemStartup}"
|
38 | 38 | Margin="0 8 0 0"
|
|
317 | 317 | SelectedValue="{Binding Language}"
|
318 | 318 | SelectedValuePath="LanguageCode" />
|
319 | 319 | </cc:Card>
|
320 |
| - <cc:InfoBar Margin="0 12 0 0" |
321 |
| - Title="{DynamicResource KoreanImeTitle}" |
322 |
| - Closable="False" |
323 |
| - IsIconVisible="True" |
324 |
| - Length="Long" |
325 |
| - Message="{DynamicResource KoreanImeGuide}" |
326 |
| - Type="Warning" /> |
327 |
| - <cc:CardGroup Margin="0 4 0 0"> |
| 320 | + <Border Visibility="{Binding KoreanIMERegistryKeyExists, Converter={StaticResource BoolToVisibilityConverter}}"> |
| 321 | + <cc:InfoBar |
| 322 | + Title="{DynamicResource KoreanImeTitle}" |
| 323 | + Margin="0 12 0 0" |
| 324 | + Closable="False" |
| 325 | + IsIconVisible="True" |
| 326 | + Length="Long" |
| 327 | + Message="{DynamicResource KoreanImeGuide}" |
| 328 | + Type="Info" |
| 329 | + Visibility="{Binding LegacyKoreanIMEEnabled, Converter={StaticResource BoolToVisibilityConverter}, ConverterParameter=Inverted, Mode=OneWay, UpdateSourceTrigger=PropertyChanged}" /> |
| 330 | + </Border> |
| 331 | + <cc:CardGroup Margin="0 4 0 0" Visibility="{Binding KoreanIMERegistryKeyExists, Converter={StaticResource BoolToVisibilityConverter}}"> |
328 | 332 | <cc:Card
|
329 | 333 | Title="{DynamicResource KoreanImeRegistry}"
|
330 |
| - Icon="" Sub="{DynamicResource KoreanImeRegistryTooltip}"> |
| 334 | + Icon="" |
| 335 | + Sub="{DynamicResource KoreanImeRegistryTooltip}"> |
331 | 336 | <ui:ToggleSwitch
|
332 | 337 | IsOn="{Binding LegacyKoreanIMEEnabled}"
|
333 | 338 | OffContent="{DynamicResource disable}"
|
334 | 339 | OnContent="{DynamicResource enable}" />
|
335 | 340 | </cc:Card>
|
336 | 341 | <cc:Card
|
337 | 342 | Title="{DynamicResource KoreanImeOpenLink}"
|
338 |
| - Sub="{DynamicResource KoreanImeOpenLinkTooltip}" |
339 |
| - Icon=""> |
340 |
| - <Button Content="{DynamicResource KoreanImeOpenLinkButton}" Command="{Binding OpenImeSettingsCommand}"/> |
| 343 | + Icon="" |
| 344 | + Sub="{DynamicResource KoreanImeOpenLinkTooltip}"> |
| 345 | + <Button Command="{Binding OpenImeSettingsCommand}" Content="{DynamicResource KoreanImeOpenLinkButton}" /> |
341 | 346 | </cc:Card>
|
342 | 347 | </cc:CardGroup>
|
343 | 348 | </VirtualizingStackPanel>
|
|
0 commit comments