feature: Re-enable Dark Mode Toggle & App Bar Styles & Mobile App Bar Fixes
This commit is contained in:
@@ -42,6 +42,7 @@
|
|||||||
|
|
||||||
<div class="dd-nav-actions">
|
<div class="dd-nav-actions">
|
||||||
<StreamNowButton ButtonClass="dd-nav-cta" ButtonLabel="Stream Now ▶"/>
|
<StreamNowButton ButtonClass="dd-nav-cta" ButtonLabel="Stream Now ▶"/>
|
||||||
|
<MudIconButton Icon="@(DarkLightModeButtonIcon)" Color="Color.Inherit" OnClick="@DarkModeToggle"/>
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
</div>
|
</div>
|
||||||
@@ -49,7 +50,21 @@
|
|||||||
@* Mobile Menu *@
|
@* Mobile Menu *@
|
||||||
<div class="d-flex d-sm-none">
|
<div class="d-flex d-sm-none">
|
||||||
<nav class="@NavClass">
|
<nav class="@NavClass">
|
||||||
<a class="dd-nav-brand" href="/">Deep DRFT</a>
|
<MudStack Row AlignItems="AlignItems.Center">
|
||||||
|
<a class="dd-nav-brand" href="/">
|
||||||
|
<MudImage Src="img/deepdrft-logo-l.webp"
|
||||||
|
Alt="Deep Drft Ornamental Logo Left"
|
||||||
|
Width="24"
|
||||||
|
Height="24 "/>
|
||||||
|
|
||||||
|
<span class="mx-2">Deep DRFT</span>
|
||||||
|
|
||||||
|
<MudImage Src="img/deepdrft-logo-r.webp"
|
||||||
|
Alt="Deep Drft Ornamental Logo Right"
|
||||||
|
Width="24"
|
||||||
|
Height="24 "/>
|
||||||
|
</a>
|
||||||
|
</MudStack>
|
||||||
|
|
||||||
<div class="dd-nav-actions">
|
<div class="dd-nav-actions">
|
||||||
<button type="button"
|
<button type="button"
|
||||||
@@ -59,6 +74,8 @@
|
|||||||
@onclick="ToggleMobileMenu">
|
@onclick="ToggleMobileMenu">
|
||||||
<span></span><span></span><span></span>
|
<span></span><span></span><span></span>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
|
<MudIconButton Icon="@(DarkLightModeButtonIcon)" Color="Color.Inherit" OnClick="@DarkModeToggle"/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@if (_mobileMenuOpen)
|
@if (_mobileMenuOpen)
|
||||||
@@ -117,6 +134,12 @@
|
|||||||
|
|
||||||
private string DarkLightModeIconSvg => IsDarkMode ? DDIcons.GasLampLit : DDIcons.GasLamp;
|
private string DarkLightModeIconSvg => IsDarkMode ? DDIcons.GasLampLit : DDIcons.GasLamp;
|
||||||
|
|
||||||
|
private string DarkLightModeButtonIcon => IsDarkMode switch
|
||||||
|
{
|
||||||
|
true => DDIcons.GasLampLit,
|
||||||
|
false => DDIcons.GasLamp,
|
||||||
|
};
|
||||||
|
|
||||||
private async Task DarkModeToggle()
|
private async Task DarkModeToggle()
|
||||||
{
|
{
|
||||||
IsDarkMode = !IsDarkMode;
|
IsDarkMode = !IsDarkMode;
|
||||||
|
|||||||
@@ -50,6 +50,10 @@
|
|||||||
color: var(--deepdrft-white);
|
color: var(--deepdrft-white);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.dd-nav-dark .dd-nav-brand > ::deep img {
|
||||||
|
filter: invert(1);
|
||||||
|
}
|
||||||
|
|
||||||
/* Centred link list */
|
/* Centred link list */
|
||||||
.dd-nav-links {
|
.dd-nav-links {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|||||||
Reference in New Issue
Block a user