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" />
|
||||
|
||||
<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 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 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 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:CardGroup Margin="0 30 0 0">
|
||||
|
|
@ -107,7 +119,10 @@
|
|||
Title="{DynamicResource ignoreHotkeysOnFullscreen}"
|
||||
Icon=""
|
||||
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
|
||||
|
|
@ -115,21 +130,31 @@
|
|||
Margin="0 30 0 0"
|
||||
Icon=""
|
||||
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
|
||||
Title="{DynamicResource autoUpdates}"
|
||||
Margin="0 30 0 0"
|
||||
Icon="">
|
||||
<ui:ToggleSwitch IsOn="{Binding AutoUpdates}" />
|
||||
<ui:ToggleSwitch
|
||||
IsOn="{Binding AutoUpdates}"
|
||||
OffContent="{DynamicResource disable}"
|
||||
OnContent="{DynamicResource enable}" />
|
||||
</cc:Card>
|
||||
|
||||
<cc:Card
|
||||
Title="{DynamicResource portableMode}"
|
||||
Icon=""
|
||||
Sub="{DynamicResource portableModeToolTIp}">
|
||||
<ui:ToggleSwitch IsOn="{Binding PortableMode}" />
|
||||
<ui:ToggleSwitch
|
||||
IsOn="{Binding PortableMode}"
|
||||
OffContent="{DynamicResource disable}"
|
||||
OnContent="{DynamicResource enable}" />
|
||||
</cc:Card>
|
||||
|
||||
<cc:CardGroup Margin="0 30 0 0">
|
||||
|
|
@ -216,15 +241,21 @@
|
|||
Margin="0 30 0 0"
|
||||
Icon=""
|
||||
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
|
||||
Title="{DynamicResource ShouldUsePinyin}"
|
||||
Icon=""
|
||||
Sub="{DynamicResource ShouldUsePinyinToolTip}">
|
||||
<ui:ToggleSwitch IsOn="{Binding Settings.ShouldUsePinyin}"
|
||||
ToolTip="{DynamicResource ShouldUsePinyinToolTip}" />
|
||||
<ui:ToggleSwitch
|
||||
IsOn="{Binding Settings.ShouldUsePinyin}"
|
||||
OffContent="{DynamicResource disable}"
|
||||
OnContent="{DynamicResource enable}"
|
||||
ToolTip="{DynamicResource ShouldUsePinyinToolTip}" />
|
||||
</cc:Card>
|
||||
|
||||
<cc:Card
|
||||
|
|
|
|||
|
|
@ -63,10 +63,11 @@
|
|||
SelectedValue="{Binding Settings.OpenResultModifiers}" />
|
||||
</cc:Card>
|
||||
|
||||
<cc:Card
|
||||
Title="{DynamicResource showOpenResultHotkey}"
|
||||
Sub="{DynamicResource showOpenResultHotkeyToolTip}">
|
||||
<ui:ToggleSwitch IsOn="{Binding Settings.ShowOpenResultHotkey}" />
|
||||
<cc:Card Title="{DynamicResource showOpenResultHotkey}" Sub="{DynamicResource showOpenResultHotkeyToolTip}">
|
||||
<ui:ToggleSwitch
|
||||
IsOn="{Binding Settings.ShowOpenResultHotkey}"
|
||||
OffContent="{DynamicResource disable}"
|
||||
OnContent="{DynamicResource enable}" />
|
||||
</cc:Card>
|
||||
</cc:CardGroup>
|
||||
|
||||
|
|
|
|||
|
|
@ -33,7 +33,10 @@
|
|||
|
||||
<cc:CardGroup>
|
||||
<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 Title="{DynamicResource server}">
|
||||
|
|
|
|||
Loading…
Reference in a new issue