icon on click
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
<MudButton Style="min-width: 20px;" FullWidth="true">
|
<MudButton Style="min-width: 20px;" FullWidth="true" OnClick="@OnClick">
|
||||||
<MudStack AlignItems="AlignItems.Center" Spacing="0">
|
<MudStack AlignItems="AlignItems.Center" Spacing="0">
|
||||||
<MudIcon Icon="@Icon" Color="Color.Inherit"/>
|
<MudIcon Icon="@Icon" Color="Color.Inherit"/>
|
||||||
<MudText Style="margin-top: 1px" Typo="Typo.caption">@Text</MudText>
|
<MudText Style="margin-top: 1px" Typo="Typo.caption">@Text</MudText>
|
||||||
@@ -11,4 +11,7 @@
|
|||||||
|
|
||||||
[Parameter, EditorRequired]
|
[Parameter, EditorRequired]
|
||||||
public string? Text { get; set; }
|
public string? Text { get; set; }
|
||||||
|
|
||||||
|
[Parameter]
|
||||||
|
public EventCallback OnClick { get; set; }
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -47,7 +47,7 @@
|
|||||||
<MudStack AlignItems="AlignItems.Center" Spacing="1" Style="padding: 4px; height: 100%">
|
<MudStack AlignItems="AlignItems.Center" Spacing="1" Style="padding: 4px; height: 100%">
|
||||||
<SidebarIconButton Icon="@Icons.Material.Filled.FolderOpen" Text="Explorer" />
|
<SidebarIconButton Icon="@Icons.Material.Filled.FolderOpen" Text="Explorer" />
|
||||||
<MudSpacer />
|
<MudSpacer />
|
||||||
<SidebarIconButton Icon="@Icons.Material.Filled.PlayArrow" Text="Run" />
|
<SidebarIconButton Icon="@Icons.Material.Filled.PlayArrow" Text="Run" OnClick="@RunDrawerToggle" />
|
||||||
<SidebarIconButton Icon="@Icons.Material.Filled.Terminal" Text="Terminal" />
|
<SidebarIconButton Icon="@Icons.Material.Filled.Terminal" Text="Terminal" />
|
||||||
</MudStack>
|
</MudStack>
|
||||||
</MudPaper>
|
</MudPaper>
|
||||||
@@ -85,8 +85,10 @@
|
|||||||
@code {
|
@code {
|
||||||
private bool _drawerOpen = true;
|
private bool _drawerOpen = true;
|
||||||
private bool _terminalDrawerOpen = false;
|
private bool _terminalDrawerOpen = false;
|
||||||
|
private bool _runDrawerOpen = true;
|
||||||
private void DrawerToggle() => _drawerOpen = !_drawerOpen;
|
private void DrawerToggle() => _drawerOpen = !_drawerOpen;
|
||||||
private void TerminalDrawerToggle() => _terminalDrawerOpen = !_terminalDrawerOpen;
|
private void TerminalDrawerToggle() => _terminalDrawerOpen = !_terminalDrawerOpen;
|
||||||
|
private void RunDrawerToggle() => _runDrawerOpen = !_runDrawerOpen;
|
||||||
|
|
||||||
private string? _solutionFilePath;
|
private string? _solutionFilePath;
|
||||||
private SharpIdeSolutionModel? _solutionModel;
|
private SharpIdeSolutionModel? _solutionModel;
|
||||||
|
|||||||
Reference in New Issue
Block a user