Commit graph

10694 commits

Author SHA1 Message Date
Shengkai Lin
fbcd700cd8 ci(github): add avalonia_migration branch to build triggers
Enable automatic GitHub Actions builds for pushes to the avalonia_migration branch.
2026-02-01 13:28:52 +08:00
Shengkai Lin
c507bb982d chore(git): remove codemap files from tracking and add to gitignore
- Remove 13 codemap.md files from git index (Plugins/Flow.Launcher.Plugin.Explorer)
- Add **/codemap.md pattern to .gitignore
- Add .slim/ to .gitignore
2026-02-01 13:26:50 +08:00
Shengkai Lin
9c99c7c65a feat(avalonia): implement HighlightTextConverter with theme-aware styling
- Add gold foreground color (#FFD700) for highlighted search matches
- Update HighlightTextConverter to use theme resource with fallback
- Fix TextBlockHelper to preserve Foreground property when copying Runs
- Fix highlight update bug: sync TitleHighlightData/SubTitleHighlightData/Score
  for reused ResultViewModel instances when query changes
- Update migration checklist to mark HighlightTextConverter as done
2026-02-01 13:25:11 +08:00
Shengkai Lin
830023513f fix(avalonia): fix enum translation in settings pages
- Add DropdownDataGeneric<T> helper for translated enum dropdowns
- Fix GeneralSettingsViewModel to use DropdownDataGeneric for enums:
  - SearchWindowScreens, SearchWindowAligns, SearchPrecisionScore, LastQueryMode
- Fix ThemeSettingsViewModel to use DropdownDataGeneric for ColorSchemes
- Fix PluginsSettingsViewModel DisplayMode to use correct translation keys:
  - DisplayModeOnOff, DisplayModePriority, DisplayModeSearchDelay, DisplayModeHomeOnOff
- Add missing translation keys to en.xaml for plugin types and display modes
- Update XAML bindings to use DisplayMemberPath/SelectedValuePath pattern
2026-02-01 12:33:52 +08:00
Shengkai Lin
8ee32dfab7 fix(avalonia): fix localization keys in settings pages
- 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
2026-02-01 12:05:01 +08:00
Shengkai Lin
0681332238 fix(explorer): complete Avalonia migration and fix action keyword crashes
- Remove WPF views (ActionKeywordSetting, ExplorerSettings, PreviewPanel, QuickAccessLinkSettings)
- Fix NullReferenceException in ActionKeywordModel by initializing settings
- Fix (false,false) crash case in EditActionKeywordAsync
- Add null-safe dialog patterns for owner window
- Move Focus() to OnOpened for reliable control attachment
- Add using for Avalonia PreviewPanel namespace in ResultManager
- Update Main.cs to use AvaloniaControl return type
2026-01-31 23:09:41 +08:00
Hongtao Zhang
e337f9e6c5 feat(explorer): add Avalonia ActionKeywordSetting dialog
- Port ActionKeywordSetting window to Avalonia
- Includes keyword editing, enable/disable toggle, validation
- Handles Enter key to submit, Space key blocked in keyword input
2026-01-26 16:32:03 -08:00
Hongtao Zhang
e726c44559 ci: add self-contained publish for Avalonia build
- Add Net9.0-SelfContained.pubxml publish profile for Avalonia
- Add Publish-Self-Contained-Avalonia function to post_build.ps1
- Call Avalonia publish before cleanup in Main function
2026-01-26 16:30:24 -08:00
Hongtao Zhang
82390b580e ci: add Avalonia build processing to post_build script
- Add Delete-Unused-Avalonia function to remove duplicate DLLs in Avalonia output
- Add Remove-CreateDumpExe-Avalonia function to clean up createdump.exe
- Call Avalonia processing functions in Main after WPF processing
2026-01-26 16:28:47 -08:00
Hongtao Zhang
ae0bdbc6bc ci: trigger builds on draft PRs and add Avalonia artifact
- Add pull_request types to trigger on opened, synchronize, reopened, ready_for_review
- Add 'Flow Launcher Avalonia' artifact uploading Output/Release/Avalonia/
2026-01-26 16:24:17 -08:00
Hongtao Zhang
5e1411f099 feat(avalonia): add Plugin Store settings page with virtualized grid
- Add PluginStoreSettingsPage with header, language filters, and search
- Add PluginStoreSettingsViewModel with async loading and filtering
- Add PluginStoreItemViewModel for individual plugin cards with install/update/uninstall
- Connect AvaloniaPublicAPI to real PluginsManifest instead of empty stubs
- Use FluentAvalonia ItemsRepeater with UniformGridLayout for virtualization
- Fix icon visibility using ObjectConverters instead of StringConverters
2026-01-26 16:20:56 -08:00
Hongtao Zhang
c0d17672af feat(avalonia): add Avalonia settings views for 8 plugins
- Add i18n injection to Application.Resources for DynamicResource bindings
- Create Avalonia settings views for plugins:
  - Explorer (ExplorerSettings + QuickAccessLinkSettings dialog)
  - BrowserBookmark (SettingsControl + CustomBrowserSettingWindow)
  - Calculator (CalculatorSettings)
  - ProcessKiller (SettingsControl)
  - PluginsManager (PluginsManagerSettings)
  - WebSearch (SettingsControl)
  - Shell (ShellSetting + converter)
  - Program (ProgramSetting)
- Add IsAvalonia detection pattern for dual-framework dialog support
- Update 11 plugin .csproj files with CopyToAvaloniaOutput targets
- Add System.Threading.Tasks using for async RelayCommand support
2026-01-26 15:30:33 -08:00
Hongtao Zhang
0c2f026d01 Implement comprehensive Plugins Settings page in Avalonia
- Add plugin search with filtering across name, description, and action keywords
- Implement display mode switcher (On/Off, Priority, Search Delay, Home On/Off)
- Add plugin management controls (enable/disable, priority, search delays, home visibility)
- Integrate both native Avalonia settings and WPF fallback support
- Add action keywords editing dialog
- Include plugin directory access, source code links, and uninstall functionality
- Add help dialog explaining priority, search delay, and home features
- Improve UI with FluentAvalonia controls and proper layout
- Load plugin icons asynchronously and display plugin metrics (init time, query time)

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
2026-01-26 14:19:30 -08:00
Hongtao Zhang
d9bfe4995f Fix MainWindow startup visibility and OpenSettings logic
- Delay setting desktop.MainWindow until plugins are initialized to prevent auto-show on startup
- Restore missing Hide() method in MainViewModel
- Fix Show() method which was incorrectly calling HideRequested
- Ensure OpenSettings cleanly hides MainWindow before showing SettingsWindow
2026-01-19 00:19:15 -08:00
Hongtao Zhang
32aa3ffdc5 Fix MainWindow visibility logic:
- Restore Hide() method in MainViewModel (accidentally deleted)
- Fix Show() method which was incorrectly calling HideRequested
- Ensure OpenSettings cleanly hides MainWindow before showing SettingsWindow
2026-01-19 00:16:59 -08:00
Hongtao Zhang
2b328e552a Fix OpenSettings command: ensure Main Window hides before showing Settings
- Call Hide() before scheduling SettingsWindow.Show() to ensure proper visibility state transition
- Use Dispatcher.UIThread.Post for showing the new window to avoid focus conflicts
2026-01-19 00:13:42 -08:00
Hongtao Zhang
19913fa1e6 Fix OpenSettings command: ensure Main Window hides before showing Settings
- Remove Dispatcher.UIThread.Post which might cause timing issues
- Call Hide() before showing SettingsWindow to ensure proper focus and visibility transition
2026-01-19 00:10:33 -08:00
Hongtao Zhang
dda587493b Migrate Program plugin settings to Avalonia and fix scroll issues
- Update ISettingProvider to support CreateSettingPanelAvalonia
- Create native Avalonia settings UI for Program Plugin (ProgramSetting.axaml)
- Implement ProgramSettingViewModel using CommunityToolkit.Mvvm
- Update PluginsSettingsViewModel to detect and load native Avalonia settings
- Replace ListBox with ItemsControl in PluginsSettingsPage to fix auto-scroll issues when expanding settings
- Align Avalonia package versions (11.2.3) across projects to fix type load errors
2026-01-19 00:06:36 -08:00
Hongtao Zhang
fb9721c7f2 refactor: move history storage to infrastructure and implement WPF settings window host in Avalonia 2026-01-18 23:28:56 -08:00
Hongtao Zhang
0e1af2279b Implement WPF plugin settings hosting in Avalonia
- Created WpfControlHost to host WPF controls using HwndSource

- Updated PluginItemViewModel to load settings via ISettingProvider

- Updated PluginsSettingsPage to display settings in an expander
2026-01-18 20:01:00 -08:00
Hongtao Zhang
1209ca5194 Fix flickering & add result highlighting
- Implemented channel-based debouncing (20ms) in MainViewModel to fix result flickering (matches WPF behavior)

- Added ResultForUpdate struct and ProcessResultUpdatesAsync for batching updates

- Added HighlightTextConverter and TextBlockHelper for bolding matched query terms

- Updated ResultListBox to display highlighted title and subtitle
2026-01-18 13:13:05 -08:00
Hongtao Zhang
1d945654c1 Expand GeneralSettingsPage with ~25 settings using FluentAvalonia SettingsExpander
- Add Card, ExCard, CardGroup custom controls for settings pages
- Update GeneralSettingsViewModel with new properties:
  - Startup: UseLogonTaskForStartup, HideOnStartup
  - Behavior: HideNotifyIcon, IgnoreHotkeysOnFullscreen, AlwaysPreview
  - Updates: AutoUpdates, AutoUpdatePlugins
  - Search: SearchPrecision, LastQueryMode, SearchDelay
  - Home: ShowHomePage, ShowHistoryResults, MaxHistoryResults
  - Misc: AutoRestart, ShowWarning, AlwaysStartEn, ShouldUsePinyin
- Rewrite GeneralSettingsPage.axaml using SettingsExpander pattern
- Update migration checklist to ~35-40% progress
2026-01-18 02:25:47 -08:00
Hongtao Zhang
8a99881799 Add detailed Avalonia migration checklist 2026-01-18 02:16:15 -08:00
Hongtao Zhang
0f9b9329dd Add hotkey recorder with manual modifier tracking
- Add HotkeyRecorderDialog with global keyboard hook for capturing hotkeys
- Implement manual modifier state tracking to handle swallowed key events
- Add HotkeyControl button that opens the recorder dialog
- Add CheckAvailability and RemoveToggleHotkey to HotKeyMapper
- Expose GetKeyFromVk helper in GlobalHotkey infrastructure
- Add Settings pages (General, Plugin, Theme, Proxy, About)
- Add PreviewPanel for result previews in main window
- Fix hook reuse issue by clearing callback on close instead of disposing
2026-01-18 02:10:53 -08:00
Hongtao Zhang
29b26643cc Improve glyph support and embed Segoe Fluent Icons
- Embed SegoeFluentIcons.ttf as an AvaloniaResource
- Register SegoeFluentIcons FontFamily in App.axaml using avares URI
- Create FontLoader helper for robust font resolution (Embedded > System > File)
- Add safety checks to FontLoader to prevent rendering crashes if fonts are invalid
- Update ResultViewModel and ResultListBox to use resolved GlyphFontFamily
2026-01-17 12:50:07 -08:00
Hongtao Zhang
ed668f3716 Add glyph icon support for results
- Add Glyph and GlyphAvailable properties to ResultViewModel
- Set Glyph from plugin Result when creating result items
- Add resultGlyph style matching icon size (32x32)
- Update ResultListBox to show glyph or image icon based on ShowGlyph property
- ShowGlyph = true when UseGlyphIcons is enabled AND glyph is available
2026-01-15 23:41:11 -08:00
Hongtao Zhang
c68a03e193 Delay window show until plugins are initialized
- MainWindowVisibility starts as false (window hidden)
- Window IsVisible bound to MainWindowVisibility
- Set MainWindowVisibility = true in OnPluginsReady() after plugins load
2026-01-15 23:31:30 -08:00
Hongtao Zhang
5d80816f84 Refactor i18n to be self-initializing via DI
- Internationalization.Initialize() called in constructor when DI creates it
- Remove InitializeInternationalization() method from App.axaml.cs
- Update AvaloniaPublicAPI and LocalizeExtension to use Ioc.Default.GetService
- Reorder ConfigureDI before i18n initialization
2026-01-15 01:17:29 -08:00
Hongtao Zhang
36e3530a59 Add internationalization support for Avalonia UI
- Create Internationalization service that parses WPF XAML language files
- Load translations from main Languages/ folder and all plugin Languages/ folders
- Add LocalizeExtension markup extension and Translator helper for XAML/code
- Fix IPublicAPI.GetTranslation to use the i18n service for plugin context menus
- Update MainWindow to use localized placeholder text
2026-01-15 01:10:53 -08:00
Hongtao Zhang
192eb4d1c0 Add context menu support for results in Avalonia UI
- Add ActiveView enum to track Results vs ContextMenu view state
- Add ContextMenu ResultsViewModel and view switching logic
- Implement LoadContextMenuCommand using PluginManager.GetContextMenusForPlugin
- Add keyboard navigation: Shift+Enter/Right to open, Left/Escape to close
- Update SelectNextItem/SelectPrevItem to navigate appropriate list
- Update EscCommand to return from context menu before hiding
2026-01-15 00:53:14 -08:00
Hongtao Zhang
2466b907c4 Fix UI blocking by running plugin queries on thread pool
- Wrap each plugin query in Task.Run() to ensure synchronous plugin code
  doesn't block the UI thread
- Show results progressively as each plugin completes using ConcurrentBag
- Update UI after each plugin returns instead of waiting for all plugins
2026-01-15 00:30:46 -08:00
Hongtao Zhang
f3d3f80db8 Add DynamicData sorting, result persistence, and Windows Shell icon loading
- Use DynamicData SourceList with automatic sorting by score descending
- Add ReplaceResults() with EditDiff for minimal UI updates (reduces flickering)
- Keep previous results visible while typing until new results arrive
- Add ImageLoader with Windows Shell API (IShellItemImageFactory) for exe/ico icons
- Use AlphaFormat.Unpremul to correctly render transparent icons without white borders
- Query all plugins in parallel and merge/sort results globally
2026-01-15 00:26:27 -08:00
Hongtao Zhang
065dc191ce Add global hotkey support for Avalonia UI 2026-01-14 23:50:54 -08:00
Hongtao Zhang
207953159a Fix MainWindow to use shared ViewModel from DI and add console logging 2026-01-14 23:29:10 -08:00
Hongtao Zhang
e961dc5668 Wire up Avalonia UI to actual plugin system
- Load settings from disk via FlowLauncherJsonStorage
- Initialize PluginManager and query plugins on text change
- Add minimal AvaloniaPublicAPI implementing IPublicAPI
- Execute plugin results on Enter key
- Add WPF framework reference for IPublicAPI compatibility
2026-01-14 23:20:19 -08:00
Hongtao Zhang
4120407ac3 Add initial Avalonia UI project for migration
Create Flow.Launcher.Avalonia project as foundation for migrating from WPF to Avalonia UI framework.

Key components:
- MainWindow with query box and results list (matching WPF layout)
- ViewModels: MainViewModel, ResultsViewModel, ResultViewModel
- Themes/Base.axaml with converted styles from WPF
- FluentAvaloniaUI for Windows 11 styling
- References existing Core/Infrastructure/Plugin projects

The project builds and runs alongside the existing WPF application.
This is Phase 1 of the incremental migration approach.
2026-01-14 23:01:35 -08:00
Jeremy Wu
229987ee90
Release 2.0.3 (#4121)
Some checks failed
Publish Default Plugins / publish (push) Has been cancelled
Build / build (push) Has been cancelled
2025-11-20 19:01:51 +08:00
Jeremy Wu
f37d4c47cc
Release 2.0.2 | Plugin 5.1.0 (#4046) 2025-10-14 13:49:29 +03:00
Jeremy Wu
a05e09908c
Release 2.0.1 (#3998) 2025-09-21 20:23:00 +08:00
Jeremy Wu
e0930924b1
Merge pull request #3904 from Flow-Launcher/dev
Release 2.0.0 | Plugin 5.0.0
2025-09-06 14:09:43 +10:00
Jeremy Wu
b898c466aa
Merge pull request #3929 from Flow-Launcher/bump_versions
Bump version for 2.0.0 release + update readme
2025-09-06 13:47:59 +10:00
Jeremy Wu
c7e26d3ab7
Merge pull request #3844 from Flow-Launcher/net9_readme
Update readme for .Net 9
2025-09-06 13:47:12 +10:00
Jeremy Wu
4fe8d8c233
New Crowdin updates (#3940) 2025-09-06 06:34:23 +03:00
Jack Ye
9b0498974c
Merge pull request #3946 from Flow-Launcher/dependabot/github_actions/actions/setup-python-6
Bump actions/setup-python from 5 to 6
2025-09-05 19:35:10 +08:00
Jack Ye
430216a345
Merge pull request #3945 from Flow-Launcher/dependabot/github_actions/actions/stale-10
Bump actions/stale from 9 to 10
2025-09-05 19:34:43 +08:00
VictoriousRaptor
0c9dd46239
Merge pull request #3947 from PatrikHed/dev
Added ISO 8601 date to the SettingsPaneThemeViewModel
2025-09-05 18:27:09 +08:00
Patrik Hedlund
860ef6081b Added ISO 8601 date to the SettingsPaneThemeViewModel 2025-09-05 10:42:56 +02:00
dependabot[bot]
d1c2298be9
Bump actions/setup-python from 5 to 6
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 5 to 6.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](https://github.com/actions/setup-python/compare/v5...v6)

---
updated-dependencies:
- dependency-name: actions/setup-python
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-04 22:05:24 +00:00
dependabot[bot]
7ffc5f7864
Bump actions/stale from 9 to 10
Bumps [actions/stale](https://github.com/actions/stale) from 9 to 10.
- [Release notes](https://github.com/actions/stale/releases)
- [Changelog](https://github.com/actions/stale/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/stale/compare/v9...v10)

---
updated-dependencies:
- dependency-name: actions/stale
  dependency-version: '10'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-04 22:05:21 +00:00
Jeremy Wu
738a27e9b6
Merge pull request #3943 from Flow-Launcher/update_manifest_url_fetch
Handle MinimumAppVersion parse fail and reorder last manifest fetch date
2025-09-04 23:14:38 +10:00