SidebarIconButton

This commit is contained in:
Matt Parker
2025-08-06 19:53:22 +10:00
parent 544eb067bb
commit 2a9eda5a3e
2 changed files with 18 additions and 4 deletions

View File

@@ -0,0 +1,14 @@
<MudButton Style="min-width: 20px;" FullWidth="true">
<MudStack AlignItems="AlignItems.Center" Spacing="0">
<MudIcon Icon="@Icon" Color="Color.Inherit"/>
<MudText Style="margin-top: 1px" Typo="Typo.caption">@Text</MudText>
</MudStack>
</MudButton>
@code {
[Parameter, EditorRequired]
public string? Icon { get; set; }
[Parameter, EditorRequired]
public string? Text { get; set; }
}

View File

@@ -44,10 +44,10 @@
<MudMainContent Style="height: 100%">
<MudStack Style="height: 100%" Row="true" Spacing="0" StretchItems="StretchItems.Middle">
<MudPaper Elevation="6" Style="background-color: var(--mud-palette-appbar-background); z-index: 1200;">
<MudStack>
<MudToggleIconButton Color="Color.Inherit" Icon="@Icons.Material.Filled.PlayArrow"/>
<MudToggleIconButton Color="Color.Inherit" Icon="@Icons.Material.Filled.PlayArrow"/>
<MudToggleIconButton Color="Color.Inherit" Icon="@Icons.Material.Filled.Terminal"/>
<MudStack AlignItems="AlignItems.Center" Spacing="1" Style="margin: 4px">
<SidebarIconButton Icon="@Icons.Material.Filled.FolderOpen" Text="Explorer" />
<SidebarIconButton Icon="@Icons.Material.Filled.PlayArrow" Text="Run" />
<SidebarIconButton Icon="@Icons.Material.Filled.Terminal" Text="Terminal" />
</MudStack>
</MudPaper>
<MudPaper Height="100%" Style="overflow:hidden; position:relative;">