feature: Waveform Controls Restructuring
This commit is contained in:
@@ -34,9 +34,16 @@
|
|||||||
|
|
||||||
@if (Visible)
|
@if (Visible)
|
||||||
{
|
{
|
||||||
@* ── Row 1 — MODE (always visible). Toggles + collisions group left; color pinned right. ── *@
|
<MudGrid>
|
||||||
<MudStack Row AlignItems="AlignItems.Center" Justify="Justify.Center" Class="mx-auto" Spacing="4">
|
@* ── Row 1 — MODE (always visible). ── *@
|
||||||
|
<MudItem xs="3" Class="d-flex align-center">
|
||||||
|
<MudStack Row AlignItems="AlignItems.Center" Justify="Justify.FlexStart">
|
||||||
|
<span class="wvc-section-label">MODE:</span>
|
||||||
|
</MudStack>
|
||||||
|
</MudItem>
|
||||||
|
|
||||||
|
<MudItem xs="9">
|
||||||
|
<MudStack Row AlignItems="AlignItems.Center" Justify="Justify.Center" Class="mx-auto" Spacing="4">
|
||||||
<MudTooltip Text="Show the sound, or hide the ribbon.">
|
<MudTooltip Text="Show the sound, or hide the ribbon.">
|
||||||
<div class="wvc-toggle @(ControlState.WaveformEnabled ? "wvc-toggle-on" : "wvc-toggle-off")" role="group" aria-label="Waveform ribbon on or off">
|
<div class="wvc-toggle @(ControlState.WaveformEnabled ? "wvc-toggle-on" : "wvc-toggle-off")" role="group" aria-label="Waveform ribbon on or off">
|
||||||
<MudIconButton Icon="@(ControlState.WaveformEnabled ? DDIcons.WaveformFilled : DDIcons.Waveform)"
|
<MudIconButton Icon="@(ControlState.WaveformEnabled ? DDIcons.WaveformFilled : DDIcons.Waveform)"
|
||||||
@@ -58,14 +65,16 @@
|
|||||||
Min="0" Max="1" Step="0.001"
|
Min="0" Max="1" Step="0.001"
|
||||||
Size="64"
|
Size="64"
|
||||||
Color="Color.Primary"/>
|
Color="Color.Primary"/>
|
||||||
<MudIcon Icon="@Icons.Material.Filled.Compress" Size="Size.Small" Class="waveform-visualizer-control-icon mix-visualizer-control-icon"/>
|
<MudIcon Icon="@Icons.Material.Filled.Compress"
|
||||||
|
Size="Size.Small"
|
||||||
|
Color="Color.Primary"
|
||||||
|
Class="waveform-visualizer-control-icon mix-visualizer-control-icon"/>
|
||||||
</div>
|
</div>
|
||||||
</MudTooltip>
|
</MudTooltip>
|
||||||
}
|
}
|
||||||
@* </div> *@
|
|
||||||
|
|
||||||
@* Color applies to the whole field regardless of which subsystems are on, so it is pinned
|
@if (ControlState.LavaEnabled && ControlState.WaveformEnabled)
|
||||||
far-right of row 1 and never reflows when collisions hides (§3). *@
|
{
|
||||||
<MudTooltip Text="How fast the lamp drifts through its colors.">
|
<MudTooltip Text="How fast the lamp drifts through its colors.">
|
||||||
<div class="waveform-visualizer-control mix-visualizer-control" role="group" aria-label="Color gradient rotation speed">
|
<div class="waveform-visualizer-control mix-visualizer-control" role="group" aria-label="Color gradient rotation speed">
|
||||||
<RadialKnob Value="@ControlState.GradientRotationSpeed"
|
<RadialKnob Value="@ControlState.GradientRotationSpeed"
|
||||||
@@ -76,6 +85,7 @@
|
|||||||
<MudIcon Icon="@Icons.Material.Filled.Palette" Size="Size.Small" Class="waveform-visualizer-control-icon mix-visualizer-control-icon"/>
|
<MudIcon Icon="@Icons.Material.Filled.Palette" Size="Size.Small" Class="waveform-visualizer-control-icon mix-visualizer-control-icon"/>
|
||||||
</div>
|
</div>
|
||||||
</MudTooltip>
|
</MudTooltip>
|
||||||
|
}
|
||||||
|
|
||||||
<MudTooltip Text="Light the lamp — or let it go cold.">
|
<MudTooltip Text="Light the lamp — or let it go cold.">
|
||||||
<div class="wvc-toggle @(ControlState.LavaEnabled ? "wvc-toggle-on" : "wvc-toggle-off")" role="group" aria-label="Lava field on or off">
|
<div class="wvc-toggle @(ControlState.LavaEnabled ? "wvc-toggle-on" : "wvc-toggle-off")" role="group" aria-label="Lava field on or off">
|
||||||
@@ -86,16 +96,19 @@
|
|||||||
aria-pressed="@ControlState.LavaEnabled"/>
|
aria-pressed="@ControlState.LavaEnabled"/>
|
||||||
</div>
|
</div>
|
||||||
</MudTooltip>
|
</MudTooltip>
|
||||||
|
|
||||||
</MudStack>
|
</MudStack>
|
||||||
|
</MudItem>
|
||||||
|
|
||||||
@* ── Row 2 — WAVE section (only when waveform on). Both controls are RadialKnobs (scroll reverted
|
@* ── Row 2 — WAVE section (only when waveform on). ── *@
|
||||||
from MudSlider per Phase 15 polish); width pinned far-right via wvc-row-wave space-between. ── *@
|
|
||||||
@if (ControlState.WaveformEnabled)
|
@if (ControlState.WaveformEnabled)
|
||||||
{
|
{
|
||||||
<div class="wvc-row wvc-row-section wvc-row-wave">
|
<MudItem xs="3" Class="d-flex align-center">
|
||||||
|
<MudStack Row AlignItems="AlignItems.Center" Justify="Justify.FlexStart">
|
||||||
<span class="wvc-section-label">WAVE:</span>
|
<span class="wvc-section-label">WAVE:</span>
|
||||||
|
</MudStack>
|
||||||
|
</MudItem>
|
||||||
|
|
||||||
|
<MudItem xs="9">
|
||||||
<MudStack Row AlignItems="AlignItems.Center" Justify="Justify.Center" Class="mx-auto" Spacing="4">
|
<MudStack Row AlignItems="AlignItems.Center" Justify="Justify.Center" Class="mx-auto" Spacing="4">
|
||||||
<MudTooltip Text="How fast the sound rolls by.">
|
<MudTooltip Text="How fast the sound rolls by.">
|
||||||
<div class="waveform-visualizer-control mix-visualizer-control" role="group" aria-label="Waveform scroll speed">
|
<div class="waveform-visualizer-control mix-visualizer-control" role="group" aria-label="Waveform scroll speed">
|
||||||
@@ -119,15 +132,18 @@
|
|||||||
</div>
|
</div>
|
||||||
</MudTooltip>
|
</MudTooltip>
|
||||||
</MudStack>
|
</MudStack>
|
||||||
</div>
|
</MudItem>
|
||||||
}
|
}
|
||||||
|
|
||||||
@* ── Row 3 — LAVA section (only when lava on). ── *@
|
|
||||||
@if (ControlState.LavaEnabled)
|
@if (ControlState.LavaEnabled)
|
||||||
{
|
{
|
||||||
<div class="wvc-row wvc-row-section">
|
<MudItem xs="3" Class="d-flex align-center">
|
||||||
|
<MudStack Row AlignItems="AlignItems.Center" Justify="Justify.FlexStart">
|
||||||
<span class="wvc-section-label">LAVA:</span>
|
<span class="wvc-section-label">LAVA:</span>
|
||||||
|
</MudStack>
|
||||||
|
</MudItem>
|
||||||
|
|
||||||
|
<MudItem xs="9" Class="d-flex align-center">
|
||||||
<MudStack Row AlignItems="AlignItems.Center" Justify="Justify.Center" Class="mx-auto" Spacing="4">
|
<MudStack Row AlignItems="AlignItems.Center" Justify="Justify.Center" Class="mx-auto" Spacing="4">
|
||||||
<MudTooltip Text="How heavy the wax feels — float, or sink.">
|
<MudTooltip Text="How heavy the wax feels — float, or sink.">
|
||||||
<div class="waveform-visualizer-control mix-visualizer-control" role="group" aria-label="Lava gravity">
|
<div class="waveform-visualizer-control mix-visualizer-control" role="group" aria-label="Lava gravity">
|
||||||
@@ -173,8 +189,9 @@
|
|||||||
</div>
|
</div>
|
||||||
</MudTooltip>
|
</MudTooltip>
|
||||||
</MudStack>
|
</MudStack>
|
||||||
</div>
|
</MudItem>
|
||||||
}
|
}
|
||||||
|
</MudGrid>
|
||||||
}
|
}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -38,3 +38,8 @@
|
|||||||
color: var(--mud-palette-primary);
|
color: var(--mud-palette-primary);
|
||||||
opacity: 0.78;
|
opacity: 0.78;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.wvc-row {
|
||||||
|
display: flex;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
@@ -9,7 +9,7 @@
|
|||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 24px;
|
gap: 24px;
|
||||||
padding: 36px 0 20px 0;
|
padding: 12px 0 20px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.archive-controls-search {
|
.archive-controls-search {
|
||||||
|
|||||||
Reference in New Issue
Block a user