mirror of
https://github.com/immense/Remotely.git
synced 2025-10-26 11:27:15 +00:00
21 lines
425 B
Plaintext
21 lines
425 B
Plaintext
@inject IClientAppState AppState
|
|
|
|
|
|
@if (_theme == Theme.Dark)
|
|
{
|
|
<div class="signal" style="border-color: whitesmoke"></div>
|
|
}
|
|
else if (_theme == Theme.Light)
|
|
{
|
|
<div class="signal" style="border-color: #333"></div>
|
|
}
|
|
|
|
@code {
|
|
private Theme _theme;
|
|
|
|
protected override async Task OnInitializedAsync()
|
|
{
|
|
await base.OnInitializedAsync();
|
|
_theme = await AppState.GetEffectiveTheme();
|
|
}
|
|
} |