Flow.Launcher/Flow.Launcher.Avalonia/Views/SettingPages/HotkeySettingsPage.axaml
taooceros b0dfd0b86c feat(avalonia): implement preview hotkey setting and update migration checklist
- Add PreviewHotkey property to HotkeySettingsViewModel
- Add preview hotkey UI to HotkeySettingsPage
- Implement dynamic hotkey handling in MainWindow code-behind
- Remove hardcoded F1 keybinding from XAML
- Update AVALONIA_MIGRATION_CHECKLIST.md with accurate progress:
  - Overall progress: 60-65% (was 35-40%)
  - Plugin Store: 95% done (was 0%)
  - Plugin Settings: 90% done (was 33%)
  - Proxy Settings: 100% done (was 59%)

💘 Generated with Crush

Assisted-by: Kimi for Coding via Crush <crush@charm.land>
2026-02-05 01:41:28 +08:00

34 lines
1.8 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"
xmlns:controls="using:Flow.Launcher.Avalonia.Views.Controls"
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
x:Class="Flow.Launcher.Avalonia.Views.SettingPages.HotkeySettingsPage"
x:DataType="vm:HotkeySettingsViewModel">
<StackPanel Spacing="20">
<TextBlock Text="{i18n:Localize hotkey}" FontSize="28" FontWeight="SemiBold" />
<ui:SettingsExpander Header="{i18n:Localize flowlauncherHotkey}"
Description="{i18n:Localize flowlauncherHotkeyToolTip}"
IconSource="Keyboard">
<ui:SettingsExpander.Footer>
<controls:HotkeyControl Hotkey="{Binding ToggleHotkey, Mode=TwoWay}" MinWidth="150" />
</ui:SettingsExpander.Footer>
</ui:SettingsExpander>
<ui:SettingsExpander Header="{i18n:Localize previewHotkey}"
Description="{i18n:Localize previewHotkeyToolTip}"
IconSource="PreviewLink">
<ui:SettingsExpander.Footer>
<controls:HotkeyControl Hotkey="{Binding PreviewHotkey, Mode=TwoWay}" MinWidth="150" />
</ui:SettingsExpander.Footer>
</ui:SettingsExpander>
<TextBlock Text="{i18n:Localize hotkeyFormatTip}" Foreground="Gray" FontSize="12" />
</StackPanel>
</UserControl>