mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
- Rename Avalonia-specific keys to match existing WPF keys in en.xaml: - proxyEnabled -> enableProxy, proxyServer -> server, etc. - toggleFlowLauncher -> flowlauncherHotkey - install -> installLocalPluginTooltip - plugin_open_plugin_directory -> pluginDirectory - Add missing Avalonia-specific keys to en.xaml: - hotkeyFormatTip, sourceCode, loading - plugin_settings_open_in_wpf_window, openSettings - Fix Explorer plugin settings to not expand general section by default
47 lines
2.3 KiB
XML
47 lines
2.3 KiB
XML
<UserControl xmlns="https://github.com/avaloniaui"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:ui="using:FluentAvalonia.UI.Controls"
|
|
xmlns:vm="using:Flow.Launcher.Avalonia.ViewModel.SettingPages"
|
|
xmlns:i18n="using:Flow.Launcher.Avalonia.Resource"
|
|
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="600"
|
|
x:Class="Flow.Launcher.Avalonia.Views.SettingPages.ProxySettingsPage"
|
|
x:DataType="vm:ProxySettingsViewModel">
|
|
|
|
<StackPanel Spacing="20">
|
|
<TextBlock Text="{i18n:Localize proxy}" FontSize="28" FontWeight="SemiBold" />
|
|
|
|
<ui:SettingsExpander Header="{i18n:Localize enableProxy}"
|
|
IconSource="Globe">
|
|
<ui:SettingsExpander.Footer>
|
|
<ToggleSwitch IsChecked="{Binding ProxyEnabled}" />
|
|
</ui:SettingsExpander.Footer>
|
|
</ui:SettingsExpander>
|
|
|
|
<ui:SettingsExpander Header="{i18n:Localize server}">
|
|
<ui:SettingsExpander.Footer>
|
|
<TextBox Text="{Binding ProxyServer}" MinWidth="200" IsEnabled="{Binding ProxyEnabled}" />
|
|
</ui:SettingsExpander.Footer>
|
|
</ui:SettingsExpander>
|
|
|
|
<ui:SettingsExpander Header="{i18n:Localize port}">
|
|
<ui:SettingsExpander.Footer>
|
|
<NumericUpDown Value="{Binding ProxyPort}" Minimum="0" Maximum="65535" IsEnabled="{Binding ProxyEnabled}" />
|
|
</ui:SettingsExpander.Footer>
|
|
</ui:SettingsExpander>
|
|
|
|
<ui:SettingsExpander Header="{i18n:Localize userName}">
|
|
<ui:SettingsExpander.Footer>
|
|
<TextBox Text="{Binding ProxyUserName}" MinWidth="200" IsEnabled="{Binding ProxyEnabled}" />
|
|
</ui:SettingsExpander.Footer>
|
|
</ui:SettingsExpander>
|
|
|
|
<ui:SettingsExpander Header="{i18n:Localize password}">
|
|
<ui:SettingsExpander.Footer>
|
|
<TextBox Text="{Binding ProxyPassword}" PasswordChar="*" MinWidth="200" IsEnabled="{Binding ProxyEnabled}" />
|
|
</ui:SettingsExpander.Footer>
|
|
</ui:SettingsExpander>
|
|
|
|
</StackPanel>
|
|
</UserControl>
|