Run popover v0.1

This commit is contained in:
Matt Parker
2025-08-07 22:58:45 +10:00
parent d544f13b4b
commit 1321f561b5
2 changed files with 26 additions and 3 deletions

View File

@@ -0,0 +1,25 @@
@using SharpIDE.Application.Features.SolutionDiscovery.VsPersistence
<div @onmouseover="@(() => _open = true)" @onmouseleave="@(() => _open = false)">
<MudPopover Open="@_open" AnchorOrigin="Origin.CenterCenter">
<div class="">
<MudPaper Class="pa-2">
@foreach(var projects in SolutionModel.AllProjects)
{
<MudText>@projects.Name</MudText>
}
</MudPaper>
</div>
</MudPopover>
<MudButton Style="min-width: 20px;" >
<MudIcon Icon="@Icons.Material.Filled.PlayArrow" Size="Size.Medium" Color="Color.Success"/>
</MudButton>
</div>
@code {
[Parameter, EditorRequired]
public SharpIdeSolutionModel SolutionModel { get; set; } = null!;
private bool _open = false;
}

View File

@@ -29,12 +29,10 @@
</MudStack>
<MudSpacer/>
<MudStack Row="true" AlignItems="AlignItems.Center" Spacing="1">
<MudButton Style="min-width: 20px;">
<MudIcon Icon="@Icons.Material.Filled.PlayArrow" Size="Size.Medium" Color="Color.Success"/>
</MudButton>
<MudButton Style="min-width: 20px;" OnClick="@OpenSettingsDialog">
<MudIcon Icon="@Icons.Material.Filled.Settings" Size="Size.Medium" Color="Color.Default"/>
</MudButton>
<RunPopover SolutionModel="@_solutionModel" />
</MudStack>
</MudAppBar>