set layout default theme to dark + translate some statements + customize theme

This commit is contained in:
2025-08-25 17:25:39 +03:30
parent 4bc2b0d09c
commit 7279fce782
19 changed files with 148 additions and 43 deletions
@@ -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,