mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Fix ToggleSwitch localization in settings
This commit is contained in:
parent
aad9fdc1c5
commit
cc9656c8a3
3 changed files with 51 additions and 16 deletions
|
|
@ -30,19 +30,31 @@
|
||||||
TextAlignment="left" />
|
TextAlignment="left" />
|
||||||
|
|
||||||
<cc:Card Title="{DynamicResource startFlowLauncherOnSystemStartup}" Icon="">
|
<cc:Card Title="{DynamicResource startFlowLauncherOnSystemStartup}" Icon="">
|
||||||
<ui:ToggleSwitch IsOn="{Binding StartFlowLauncherOnSystemStartup}" />
|
<ui:ToggleSwitch
|
||||||
|
IsOn="{Binding StartFlowLauncherOnSystemStartup}"
|
||||||
|
OffContent="{DynamicResource disable}"
|
||||||
|
OnContent="{DynamicResource enable}" />
|
||||||
</cc:Card>
|
</cc:Card>
|
||||||
|
|
||||||
<cc:Card Title="{DynamicResource hideOnStartup}" Icon="">
|
<cc:Card Title="{DynamicResource hideOnStartup}" Icon="">
|
||||||
<ui:ToggleSwitch IsOn="{Binding Settings.HideOnStartup}" />
|
<ui:ToggleSwitch
|
||||||
|
IsOn="{Binding Settings.HideOnStartup}"
|
||||||
|
OffContent="{DynamicResource disable}"
|
||||||
|
OnContent="{DynamicResource enable}" />
|
||||||
</cc:Card>
|
</cc:Card>
|
||||||
|
|
||||||
<cc:Card Title="{DynamicResource hideFlowLauncherWhenLoseFocus}" Margin="0 30 0 0">
|
<cc:Card Title="{DynamicResource hideFlowLauncherWhenLoseFocus}" Margin="0 30 0 0">
|
||||||
<ui:ToggleSwitch IsOn="{Binding Settings.HideWhenDeactivated}" />
|
<ui:ToggleSwitch
|
||||||
|
IsOn="{Binding Settings.HideWhenDeactivated}"
|
||||||
|
OffContent="{DynamicResource disable}"
|
||||||
|
OnContent="{DynamicResource enable}" />
|
||||||
</cc:Card>
|
</cc:Card>
|
||||||
|
|
||||||
<cc:Card Title="{DynamicResource hideNotifyIcon}" Sub="{DynamicResource hideNotifyIconToolTip}">
|
<cc:Card Title="{DynamicResource hideNotifyIcon}" Sub="{DynamicResource hideNotifyIconToolTip}">
|
||||||
<ui:ToggleSwitch IsOn="{Binding Settings.HideNotifyIcon}" />
|
<ui:ToggleSwitch
|
||||||
|
IsOn="{Binding Settings.HideNotifyIcon}"
|
||||||
|
OffContent="{DynamicResource disable}"
|
||||||
|
OnContent="{DynamicResource enable}" />
|
||||||
</cc:Card>
|
</cc:Card>
|
||||||
|
|
||||||
<cc:CardGroup Margin="0 30 0 0">
|
<cc:CardGroup Margin="0 30 0 0">
|
||||||
|
|
@ -107,7 +119,10 @@
|
||||||
Title="{DynamicResource ignoreHotkeysOnFullscreen}"
|
Title="{DynamicResource ignoreHotkeysOnFullscreen}"
|
||||||
Icon=""
|
Icon=""
|
||||||
Sub="{DynamicResource ignoreHotkeysOnFullscreenToolTip}">
|
Sub="{DynamicResource ignoreHotkeysOnFullscreenToolTip}">
|
||||||
<ui:ToggleSwitch IsOn="{Binding Settings.IgnoreHotkeysOnFullscreen}" />
|
<ui:ToggleSwitch
|
||||||
|
IsOn="{Binding Settings.IgnoreHotkeysOnFullscreen}"
|
||||||
|
OffContent="{DynamicResource disable}"
|
||||||
|
OnContent="{DynamicResource enable}" />
|
||||||
</cc:Card>
|
</cc:Card>
|
||||||
|
|
||||||
<cc:Card
|
<cc:Card
|
||||||
|
|
@ -115,21 +130,31 @@
|
||||||
Margin="0 30 0 0"
|
Margin="0 30 0 0"
|
||||||
Icon=""
|
Icon=""
|
||||||
Sub="{DynamicResource AlwaysPreviewToolTip}">
|
Sub="{DynamicResource AlwaysPreviewToolTip}">
|
||||||
<ui:ToggleSwitch IsOn="{Binding Settings.AlwaysPreview}" ToolTip="{Binding AlwaysPreviewToolTip}" />
|
<ui:ToggleSwitch
|
||||||
|
IsOn="{Binding Settings.AlwaysPreview}"
|
||||||
|
OffContent="{DynamicResource disable}"
|
||||||
|
OnContent="{DynamicResource enable}"
|
||||||
|
ToolTip="{Binding AlwaysPreviewToolTip}" />
|
||||||
</cc:Card>
|
</cc:Card>
|
||||||
|
|
||||||
<cc:Card
|
<cc:Card
|
||||||
Title="{DynamicResource autoUpdates}"
|
Title="{DynamicResource autoUpdates}"
|
||||||
Margin="0 30 0 0"
|
Margin="0 30 0 0"
|
||||||
Icon="">
|
Icon="">
|
||||||
<ui:ToggleSwitch IsOn="{Binding AutoUpdates}" />
|
<ui:ToggleSwitch
|
||||||
|
IsOn="{Binding AutoUpdates}"
|
||||||
|
OffContent="{DynamicResource disable}"
|
||||||
|
OnContent="{DynamicResource enable}" />
|
||||||
</cc:Card>
|
</cc:Card>
|
||||||
|
|
||||||
<cc:Card
|
<cc:Card
|
||||||
Title="{DynamicResource portableMode}"
|
Title="{DynamicResource portableMode}"
|
||||||
Icon=""
|
Icon=""
|
||||||
Sub="{DynamicResource portableModeToolTIp}">
|
Sub="{DynamicResource portableModeToolTIp}">
|
||||||
<ui:ToggleSwitch IsOn="{Binding PortableMode}" />
|
<ui:ToggleSwitch
|
||||||
|
IsOn="{Binding PortableMode}"
|
||||||
|
OffContent="{DynamicResource disable}"
|
||||||
|
OnContent="{DynamicResource enable}" />
|
||||||
</cc:Card>
|
</cc:Card>
|
||||||
|
|
||||||
<cc:CardGroup Margin="0 30 0 0">
|
<cc:CardGroup Margin="0 30 0 0">
|
||||||
|
|
@ -216,15 +241,21 @@
|
||||||
Margin="0 30 0 0"
|
Margin="0 30 0 0"
|
||||||
Icon=""
|
Icon=""
|
||||||
Sub="{DynamicResource typingStartEnTooltip}">
|
Sub="{DynamicResource typingStartEnTooltip}">
|
||||||
<ui:ToggleSwitch IsOn="{Binding Settings.AlwaysStartEn}" />
|
<ui:ToggleSwitch
|
||||||
|
IsOn="{Binding Settings.AlwaysStartEn}"
|
||||||
|
OffContent="{DynamicResource disable}"
|
||||||
|
OnContent="{DynamicResource enable}" />
|
||||||
</cc:Card>
|
</cc:Card>
|
||||||
|
|
||||||
<cc:Card
|
<cc:Card
|
||||||
Title="{DynamicResource ShouldUsePinyin}"
|
Title="{DynamicResource ShouldUsePinyin}"
|
||||||
Icon=""
|
Icon=""
|
||||||
Sub="{DynamicResource ShouldUsePinyinToolTip}">
|
Sub="{DynamicResource ShouldUsePinyinToolTip}">
|
||||||
<ui:ToggleSwitch IsOn="{Binding Settings.ShouldUsePinyin}"
|
<ui:ToggleSwitch
|
||||||
ToolTip="{DynamicResource ShouldUsePinyinToolTip}" />
|
IsOn="{Binding Settings.ShouldUsePinyin}"
|
||||||
|
OffContent="{DynamicResource disable}"
|
||||||
|
OnContent="{DynamicResource enable}"
|
||||||
|
ToolTip="{DynamicResource ShouldUsePinyinToolTip}" />
|
||||||
</cc:Card>
|
</cc:Card>
|
||||||
|
|
||||||
<cc:Card
|
<cc:Card
|
||||||
|
|
|
||||||
|
|
@ -63,10 +63,11 @@
|
||||||
SelectedValue="{Binding Settings.OpenResultModifiers}" />
|
SelectedValue="{Binding Settings.OpenResultModifiers}" />
|
||||||
</cc:Card>
|
</cc:Card>
|
||||||
|
|
||||||
<cc:Card
|
<cc:Card Title="{DynamicResource showOpenResultHotkey}" Sub="{DynamicResource showOpenResultHotkeyToolTip}">
|
||||||
Title="{DynamicResource showOpenResultHotkey}"
|
<ui:ToggleSwitch
|
||||||
Sub="{DynamicResource showOpenResultHotkeyToolTip}">
|
IsOn="{Binding Settings.ShowOpenResultHotkey}"
|
||||||
<ui:ToggleSwitch IsOn="{Binding Settings.ShowOpenResultHotkey}" />
|
OffContent="{DynamicResource disable}"
|
||||||
|
OnContent="{DynamicResource enable}" />
|
||||||
</cc:Card>
|
</cc:Card>
|
||||||
</cc:CardGroup>
|
</cc:CardGroup>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,10 @@
|
||||||
|
|
||||||
<cc:CardGroup>
|
<cc:CardGroup>
|
||||||
<cc:Card Title="{DynamicResource enableProxy}">
|
<cc:Card Title="{DynamicResource enableProxy}">
|
||||||
<ui:ToggleSwitch IsOn="{Binding Settings.Proxy.Enabled}" />
|
<ui:ToggleSwitch
|
||||||
|
IsOn="{Binding Settings.Proxy.Enabled}"
|
||||||
|
OffContent="{DynamicResource disable}"
|
||||||
|
OnContent="{DynamicResource enable}" />
|
||||||
</cc:Card>
|
</cc:Card>
|
||||||
|
|
||||||
<cc:Card Title="{DynamicResource server}">
|
<cc:Card Title="{DynamicResource server}">
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue