csharpdeeb25a2 | 1 | using Avalonia.Controls; |
| 2 | using CascadeIDE.Models; |
| 3 | |
| 4 | namespace CascadeIDE.Views.Settings; |
| 5 | |
| 6 | internal 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