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,17 +23,19 @@
@* 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. *@
@if (ShowQueueButton) <MudStack Row AlignItems="AlignItems.Center">
{ <TimestampLabel CurrentTime="DisplayTime" Duration="@Duration"/>
<MudTooltip Text="Queue"> @if (ShowQueueButton)
<MudIconButton Icon="@Icons.Material.Filled.QueueMusic" {
Color="Color.Primary" <MudTooltip Text="Queue">
Size="Size.Medium" <MudIconButton Icon="@Icons.Material.Filled.QueueMusic"
OnClick="QueueToggle" Color="Color.Primary"
aria-label="Queue" Size="Size.Medium"
aria-expanded="@QueueOpen" OnClick="QueueToggle"
Class="@($"deepdrft-queue-toggle{(QueueOpen ? " deepdrft-queue-toggle-active" : "")}")"/> aria-label="Queue"
</MudTooltip> aria-expanded="@QueueOpen"
} Class="@($"deepdrft-queue-toggle{(QueueOpen ? " deepdrft-queue-toggle-active" : "")}")"/>
<TimestampLabel CurrentTime="DisplayTime" Duration="@Duration"/> </MudTooltip>
}
</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="/">