|
6 | 6 | width: var(--mud-drawer-width-mini-left) !important; |
7 | 7 | overflow: hidden; |
8 | 8 | } |
| 9 | +
|
9 | 10 | .try-editor { |
10 | 11 | margin-left: var(--mud-drawer-width-mini-left) !important; |
11 | 12 | } |
| 13 | +
|
12 | 14 | .try-avatar { |
13 | 15 | border-color: var(--try-drawer-text); |
14 | 16 | color: var(--try-drawer-text); |
|
17 | 19 |
|
18 | 20 | <div class="try-layout"> |
19 | 21 | <MudDrawer Open="true" Fixed="false" Elevation="1" Breakpoint="Breakpoint.None" Variant="@DrawerVariant.Persistent" Class="try-drawer mud-drawer-mini"> |
20 | | - <MudTooltip Text="Run your code"> |
21 | | - <MudIconButton title="Run (Ctrl + S)" OnClick="@CompileAsync" Disabled="@Loading" Icon="@Icons.Material.Rounded.PlayArrow" Color="@(LayoutService.IsDarkMode ? Color.Success : Color.Inherit)" /> |
22 | | - </MudTooltip> |
23 | | - <MudTooltip Text="Save or Share" Delay="800" Arrow="true" Placement="Placement.Right" Color="Color.Dark"> |
24 | | - <SaveSnippetPopup @bind-Visible="SaveSnippetPopupVisible" CodeFiles="@CodeFiles.Values" UpdateActiveCodeFileContentAction="UpdateActiveCodeFileContent" /> |
25 | | - <MudIconButton OnClick="ShowSaveSnippetPopup" Icon="@Icons.Material.Outlined.Save" Color="@(LayoutService.IsDarkMode ? Color.Info : Color.Inherit)" /> |
26 | | - </MudTooltip> |
27 | | - <MudTooltip Text="@(LayoutService.IsDarkMode ? "Switch to Light Theme" : "Switch to Dark Theme")" Delay="800" Arrow="true" Placement="Placement.Right" Color="Color.Dark"> |
28 | | - <MudIconButton OnClick="@UpdateTheme" Icon="@(LayoutService.IsDarkMode ? @Icons.Material.Rounded.LightMode : @Icons.Material.Outlined.DarkMode)" Color="@(LayoutService.IsDarkMode ? Color.Warning : Color.Inherit)" /> |
29 | | - </MudTooltip> |
30 | | - <MudSpacer /> |
31 | | - <MudStack Class="mb-12" AlignItems="AlignItems.Center" Justify="Justify.Center"> |
32 | | - <div class="d-flex justify-center"> |
33 | | - <div class="brand">Try<span class="pt-4 pb-12">MudBlazor</span></div> |
| 22 | + <div class="top-buttons"> |
| 23 | + <MudTooltip Text="Run (Ctrl + S)" Placement="Placement.Bottom"> |
| 24 | + <MudIconButton OnClick="@CompileAsync" |
| 25 | + Disabled="@Loading" |
| 26 | + Icon="@(LayoutService.IsDarkMode ? Icons.Material.Outlined.PlayArrow : Icons.Material.Filled.PlayArrow)" |
| 27 | + Color="@(LayoutService.IsDarkMode ? Color.Success : Color.Inherit)" /> |
| 28 | + </MudTooltip> |
| 29 | + |
| 30 | + <MudTooltip Text="Save" Placement="Placement.Right"> |
| 31 | + <SaveSnippetPopup @bind-Visible="SaveSnippetPopupVisible" |
| 32 | + CodeFiles="@CodeFiles.Values" |
| 33 | + UpdateActiveCodeFileContentAction="UpdateActiveCodeFileContent" /> |
| 34 | + <MudIconButton OnClick="ShowSaveSnippetPopup" |
| 35 | + Icon="@(LayoutService.IsDarkMode ? Icons.Material.Outlined.Save : Icons.Material.Filled.Save)" |
| 36 | + Class="save-button" |
| 37 | + Color="@(LayoutService.IsDarkMode ? Color.Info : Color.Inherit)" /> |
| 38 | + </MudTooltip> |
| 39 | + |
| 40 | + <MudTooltip Text="@(LayoutService.IsDarkMode ? "Light mode" : "Dark mode")" Placement="Placement.Right"> |
| 41 | + <MudIconButton OnClick="@UpdateTheme" |
| 42 | + Icon="@(LayoutService.IsDarkMode ? Icons.Material.Outlined.LightMode : Icons.Material.Filled.DarkMode)" |
| 43 | + Class="dark-button" |
| 44 | + Color="@(LayoutService.IsDarkMode ? Color.Warning : Color.Inherit)" /> |
| 45 | + </MudTooltip> |
34 | 46 | </div> |
35 | | - <MudTooltip Text="Cleanup and Clear Compiler Cache" Delay="800" Arrow Placement="Placement.Right" Color="Color.Dark"> |
36 | | - <MudIconButton OnClick="@ClearCache" Icon="@Icons.Material.Filled.CleanHands" Color="@(LayoutService.IsDarkMode ? Color.Info : Color.Inherit)" /> |
| 47 | + |
| 48 | + <span class="brand">Try MudBlazor</span> |
| 49 | + |
| 50 | + <div class="bottom-buttons"> |
| 51 | + <MudTooltip Text="Clear cache" Placement="Placement.Right"> |
| 52 | + <MudIconButton OnClick="@ClearCache" |
| 53 | + Icon="@(LayoutService.IsDarkMode ? Icons.Material.Outlined.Cached : Icons.Material.Filled.Cached)" |
| 54 | + Class="cache-button" |
| 55 | + Color="@(LayoutService.IsDarkMode ? Color.Default : Color.Inherit)" /> |
37 | 56 | </MudTooltip> |
38 | | - </MudStack> |
| 57 | + </div> |
39 | 58 | </MudDrawer> |
40 | 59 | <div class="try-editor"> |
41 | 60 | <MudOverlay Visible="Loading" Absolute="true" DarkBackground="true"> |
|
0 commit comments