mirror of
https://gitlab.com/Hukuta47/cartrix.git
synced 2026-12-05 04:20:55 +00:00
23 lines
647 B
Plaintext
23 lines
647 B
Plaintext
@page "/Settings"
|
|
@using Radzen.Blazor.Rendering
|
|
@inject ThemeService ThemeService
|
|
|
|
<RadzenCard Variant="Variant.Flat">
|
|
<RadzenStack Orientation="Orientation.Vertical">
|
|
<RadzenStack Orientation="Orientation.Horizontal" AlignItems="AlignItems.Center">
|
|
<RadzenText Text="Тема" Style="width: 100px;"/>
|
|
<RadzenDropDown TValue="string" Data="@Themes.All" ValueChanged="@ChangeTheme" TextProperty=@nameof(Theme.Text) ValueProperty=@nameof(Theme.Value) />
|
|
</RadzenStack>
|
|
</RadzenStack>
|
|
</RadzenCard>
|
|
|
|
|
|
|
|
@code {
|
|
|
|
void ChangeTheme(string value)
|
|
{
|
|
ThemeService.SetTheme(value);
|
|
}
|
|
}
|