Improved switch component for settings: when an option is enabled, the switch is using a different color

This commit is contained in:
Thorsten Sommer 2024-07-26 20:22:54 +02:00
parent a2435354a8
commit eb31759f67
Signed by: tsommer
GPG Key ID: 371BBA77A02C0108
2 changed files with 2 additions and 1 deletions

View File

@ -1,7 +1,7 @@
@inherits ConfigurationBase
<MudField Label="@this.OptionDescription" Variant="Variant.Outlined" HelperText="@this.OptionHelp" Class="@MARGIN_CLASS">
<MudSwitch T="bool" Value="@this.State()" ValueChanged="@(updatedState => this.OptionChanged(updatedState))">
<MudSwitch T="bool" Value="@this.State()" ValueChanged="@(updatedState => this.OptionChanged(updatedState))" Color="Color.Primary">
@(this.State() ? this.LabelOn : this.LabelOff)
</MudSwitch>
</MudField>

View File

@ -1,4 +1,5 @@
# v0.8.4, build 167
- Improved switch component for settings: when an option is enabled, the switch is using a different color
- Fixed the applying of spellchecking settings to the single-line dialog
- Restructured the layout of the settings page
- Refactored the settings data model