Added color to switch

This commit is contained in:
Thorsten Sommer 2024-07-27 22:57:56 +02:00
parent 6d2813a4bd
commit 54f0764b73
Signed by: tsommer
GPG Key ID: 371BBA77A02C0108
2 changed files with 2 additions and 2 deletions

View File

@ -16,7 +16,7 @@
</MudButton>
<MudStack Row="@false" Class="mb-3">
<MudSwitch T="bool" @bind-Value="@this.provideCompilerMessages">
<MudSwitch T="bool" @bind-Value="@this.provideCompilerMessages" Color="Color.Primary">
@(this.provideCompilerMessages ? "Provide compiler messages" : "Provide no compiler messages")
</MudSwitch>
@if (this.provideCompilerMessages)

View File

@ -4,7 +4,7 @@
@inherits AssistantBaseCore
<MudField Label="Live translation" Variant="Variant.Outlined" Class="mb-3">
<MudSwitch T="bool" @bind-Value="@this.liveTranslation">
<MudSwitch T="bool" @bind-Value="@this.liveTranslation" Color="Color.Primary">
@(this.liveTranslation ? "Live translation" : "No live translation")
</MudSwitch>
</MudField>