Run popover v0.1
This commit is contained in:
25
src/SharpIDE.Photino/Components/RunPopover.razor
Normal file
25
src/SharpIDE.Photino/Components/RunPopover.razor
Normal 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;
|
||||
}
|
||||
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user