feat: Player & Menu Styles

This commit is contained in:
daniel-c-harvey
2026-06-19 19:18:40 -04:00
parent 0f7088fe86
commit 0358df82ac
3 changed files with 25 additions and 23 deletions
@@ -14,14 +14,6 @@
Color="Color.Primary" Color="Color.Primary"
Disabled="!CanPlay" Disabled="!CanPlay"
OnToggle="@TogglePlayPause"/> OnToggle="@TogglePlayPause"/>
@if (!Fixed || HasPrevious || HasNext)
{
<MudIconButton Icon="@Icons.Material.Filled.SkipNext"
Color="Color.Primary"
Size="Size.Large"
OnClick="@SkipNext"
Disabled="!HasNext"/>
}
@if (!Fixed) @if (!Fixed)
{ {
<MudIconButton Icon="@Icons.Material.Filled.Stop" <MudIconButton Icon="@Icons.Material.Filled.Stop"
@@ -30,4 +22,12 @@
OnClick="@Stop" OnClick="@Stop"
Disabled="!IsLoaded"/> Disabled="!IsLoaded"/>
} }
@if (!Fixed || HasPrevious || HasNext)
{
<MudIconButton Icon="@Icons.Material.Filled.SkipNext"
Color="Color.Primary"
Size="Size.Large"
OnClick="@SkipNext"
Disabled="!HasNext"/>
}
</MudStack> </MudStack>
@@ -23,6 +23,8 @@
@* Queue toggle: a second row between the transport controls and the timestamp (§3.1 placement — @* Queue toggle: a second row between the transport controls and the timestamp (§3.1 placement —
"below the control buttons, to the left of the timestamps"). Shown only when a queue is loaded, "below the control buttons, to the left of the timestamps"). Shown only when a queue is loaded,
mirroring the skip-affordance gating, so an empty/single-track player is byte-for-byte unchanged. *@ mirroring the skip-affordance gating, so an empty/single-track player is byte-for-byte unchanged. *@
<MudStack Row AlignItems="AlignItems.Center">
<TimestampLabel CurrentTime="DisplayTime" Duration="@Duration"/>
@if (ShowQueueButton) @if (ShowQueueButton)
{ {
<MudTooltip Text="Queue"> <MudTooltip Text="Queue">
@@ -35,5 +37,5 @@
Class="@($"deepdrft-queue-toggle{(QueueOpen ? " deepdrft-queue-toggle-active" : "")}")"/> Class="@($"deepdrft-queue-toggle{(QueueOpen ? " deepdrft-queue-toggle-active" : "")}")"/>
</MudTooltip> </MudTooltip>
} }
<TimestampLabel CurrentTime="DisplayTime" Duration="@Duration"/> </MudStack>
</MudStack> </MudStack>
@@ -3,7 +3,7 @@
@using DeepDrftPublic.Client.Services @using DeepDrftPublic.Client.Services
@* Desktop Menu *@ @* Desktop Menu *@
<div class="d-none d-sm-flex"> <div class="d-none d-md-flex">
<nav class="@NavClass"> <nav class="@NavClass">
<MudStack Row AlignItems="AlignItems.Center"> <MudStack Row AlignItems="AlignItems.Center">
<a class="dd-nav-brand" href="/"> <a class="dd-nav-brand" href="/">
@@ -48,7 +48,7 @@
</div> </div>
@* Mobile Menu *@ @* Mobile Menu *@
<div class="d-flex d-sm-none"> <div class="d-flex d-md-none">
<nav class="@NavClass"> <nav class="@NavClass">
<MudStack Row AlignItems="AlignItems.Center"> <MudStack Row AlignItems="AlignItems.Center">
<a class="dd-nav-brand" href="/"> <a class="dd-nav-brand" href="/">