Forge
csharpdeeb25a2
1using Avalonia.Controls;
2using CascadeIDE.Models;
3
4namespace CascadeIDE.Views.Settings;
5
6internal static class SettingsPanelFactory
7{
8 public static Control? TryCreate(string panelId) => panelId switch
9 {
10 SettingsPanelIds.Themes => new SettingsThemesPanelView(),
11 SettingsPanelIds.AiChat => new AiChatSettingsPanelView(),
12 SettingsPanelIds.Editor => new SettingsEditorPanelView(),
13 SettingsPanelIds.CSharpLsp => new SettingsCSharpLspPanelView(),
14 SettingsPanelIds.Markdown => new SettingsMarkdownPanelView(),
15 SettingsPanelIds.MarkdownLsp => new SettingsMarkdownLspPanelView(),
16 SettingsPanelIds.Hci => new SettingsHciPanelView(),
17 SettingsPanelIds.WorkspaceNavigationMap => new SettingsWorkspaceNavigationPanelView(),
18 _ => null,
19 };
20}
21
View only · write via MCP/CIDE