Theme Switch: Refactor and add system option (#5473)

* Theme Switch: Refactor and add system option

Before, we had no way to reset the theme option to the system default. This introduces that option and refactors the theme switch to work in a simpler manner.

* Prevent account menu close on click inside

Context: #5476
This commit is contained in:
d11n
2023-11-21 09:56:10 +01:00
committed by GitHub
parent 5bd8067328
commit b4daa76aeb
6 changed files with 66 additions and 77 deletions

View File

@@ -249,7 +249,7 @@
</a>
</li>
<li class="nav-item dropup">
<a class="nav-link @ViewData.IsActiveCategory(typeof(ManageNavPages))" role="button" data-bs-toggle="dropdown" aria-expanded="false" id="Nav-Account">
<a class="nav-link @ViewData.IsActiveCategory(typeof(ManageNavPages))" role="button" data-bs-toggle="dropdown" data-bs-auto-close="outside" aria-expanded="false" id="Nav-Account">
<vc:icon symbol="account"/>
<span>Account</span>
</a>
@@ -264,7 +264,7 @@
@if (!Theme.CustomTheme)
{
<li class="py-1 px-3">
<vc:theme-switch css-class="nav-link pb-0"/>
<vc:theme-switch css-class="w-100 pt-2"/>
</li>
}
<li class="py-1 px-3">