set layout default theme to dark + translate some statements + customize theme
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
@inject IThemeService ThemeService
|
||||
<link href="_content/Elsa.Studio.Shell/css/custom.css" rel="stylesheet">
|
||||
<MudRTLProvider RightToLeft="@IsRtl(CultureInfo.CurrentUICulture)">
|
||||
<MudThemeProvider Theme="CurrentTheme" IsDarkMode="@true" />
|
||||
<MudThemeProvider Theme="CurrentTheme" IsDarkMode="true" />
|
||||
<MudSnackbarProvider />
|
||||
<MudPopoverProvider />
|
||||
|
||||
|
||||
@@ -34,6 +34,7 @@ public partial class MainLayout : IDisposable
|
||||
/// <inheritdoc />
|
||||
protected override void OnInitialized()
|
||||
{
|
||||
ThemeService.IsDarkMode = true; //*
|
||||
ThemeService.CurrentThemeChanged += OnThemeChanged;
|
||||
AppBarService.AppBarItemsChanged += OnAppBarItemsChanged;
|
||||
}
|
||||
@@ -78,7 +79,7 @@ public partial class MainLayout : IDisposable
|
||||
|
||||
private async Task ShowProductInfo()
|
||||
{
|
||||
await DialogService.ShowAsync<ProductInfoDialog>($"Caspian WorkflowStudio {ToolVersion.GetDisplayVersion()}", new DialogOptions
|
||||
await DialogService.ShowAsync<ProductInfoDialog>($"Caspian Workflow dashboard {ToolVersion.GetDisplayVersion()}", new DialogOptions
|
||||
{
|
||||
FullWidth = true,
|
||||
MaxWidth = MaxWidth.ExtraSmall,
|
||||
|
||||
Reference in New Issue
Block a user