mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
- 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
24 lines
664 B
C#
24 lines
664 B
C#
using System.Windows.Controls;
|
|
using AvaloniaControl = Avalonia.Controls.Control;
|
|
|
|
namespace Flow.Launcher.Plugin
|
|
{
|
|
/// <summary>
|
|
/// This interface is used to create settings panel for .Net plugins
|
|
/// </summary>
|
|
public interface ISettingProvider
|
|
{
|
|
/// <summary>
|
|
/// Create settings panel control for .Net plugins
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
Control CreateSettingPanel();
|
|
|
|
/// <summary>
|
|
/// Create settings panel control for Avalonia version
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
virtual AvaloniaControl CreateSettingPanelAvalonia() => null;
|
|
}
|
|
}
|
|
|