diff --git a/.gitignore b/.gitignore index bb59e08..d003cd1 100644 --- a/.gitignore +++ b/.gitignore @@ -33,3 +33,5 @@ obj/ # VS Code user-specific settings (keep launch.json and tasks.json) .vscode/settings.json + +*.code-workspace diff --git a/2-Nine.Application/Nine.Application.sln b/2-Nine.Application/Nine.Application.sln deleted file mode 100644 index ef50404..0000000 --- a/2-Nine.Application/Nine.Application.sln +++ /dev/null @@ -1,24 +0,0 @@ -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 17 -VisualStudioVersion = 17.5.2.0 -MinimumVisualStudioVersion = 10.0.40219.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Nine.Application", "Nine.Application.csproj", "{9C13D459-27C6-2232-B1AA-B80FB8F9C47A}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Any CPU = Debug|Any CPU - Release|Any CPU = Release|Any CPU - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {9C13D459-27C6-2232-B1AA-B80FB8F9C47A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {9C13D459-27C6-2232-B1AA-B80FB8F9C47A}.Debug|Any CPU.Build.0 = Debug|Any CPU - {9C13D459-27C6-2232-B1AA-B80FB8F9C47A}.Release|Any CPU.ActiveCfg = Release|Any CPU - {9C13D459-27C6-2232-B1AA-B80FB8F9C47A}.Release|Any CPU.Build.0 = Release|Any CPU - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection - GlobalSection(ExtensibilityGlobals) = postSolution - SolutionGuid = {44243B58-7CCF-4956-91BF-A977807858DF} - EndGlobalSection -EndGlobal diff --git a/4-Nine/Shared/Layout/NavMenu.razor b/4-Nine/Shared/Layout/NavMenu.razor index 4ce4fa7..20590a8 100644 --- a/4-Nine/Shared/Layout/NavMenu.razor +++ b/4-Nine/Shared/Layout/NavMenu.razor @@ -176,8 +176,8 @@ // Available brand themes - add new themes here private readonly List AvailableBrandThemes = new() { - "bootstrap", "obsidian", + "bootstrap", "teal" }; @@ -203,7 +203,7 @@ var domTheme = await JSRuntime.InvokeAsync("eval", "document.documentElement.getAttribute('data-bs-theme') || localStorage.getItem('theme') || 'light'"); var domBrandTheme = await JSRuntime.InvokeAsync("eval", - "document.documentElement.getAttribute('data-brand-theme') || localStorage.getItem('brandTheme') || 'bootstrap'"); + "document.documentElement.getAttribute('data-brand-theme') || localStorage.getItem('brandTheme') || 'obsidian'"); // Sync the service with the DOM state (which was set by theme.js) if (ThemeService.CurrentTheme != domTheme) @@ -228,9 +228,9 @@ Console.WriteLine($"Error loading themes: {ex.Message}"); // Fallback if localStorage not available ThemeService.SetTheme("light"); - ThemeService.SetBrandTheme("bootstrap"); + ThemeService.SetBrandTheme("obsidian"); await JSRuntime.InvokeVoidAsync("themeManager.setTheme", "light"); - await JSRuntime.InvokeVoidAsync("themeManager.setBrandTheme", "bootstrap"); + await JSRuntime.InvokeVoidAsync("themeManager.setBrandTheme", "obsidian"); } } } @@ -293,8 +293,8 @@ { return theme switch { - "bootstrap" => "Bootstrap", "obsidian" => "Obsidian", + "bootstrap" => "Bootstrap", "teal" => "Teal", _ => theme.Substring(0, 1).ToUpper() + theme.Substring(1) }; diff --git a/Nine.code-workspace b/Nine.code-workspace deleted file mode 100644 index fefe576..0000000 --- a/Nine.code-workspace +++ /dev/null @@ -1,16 +0,0 @@ -{ - "folders": [ - { - "path": ".", - }, - { - "path": "../../Documents/Orion/Projects/Nine", - }, - { - "path": "../appimage.github.io", - }, - ], - "settings": { - "powershell.cwd": "Nine", - }, -}