mirror of
https://github.com/immense/Remotely.git
synced 2025-10-26 11:27:15 +00:00
31 lines
720 B
Plaintext
31 lines
720 B
Plaintext
@inject IClientAppState AppState
|
|
|
|
<div class="signal-background">
|
|
<div class="signal-wrapper text-center">
|
|
@if (!string.IsNullOrEmpty(StatusMessage))
|
|
{
|
|
<h4>
|
|
@StatusMessage
|
|
</h4>
|
|
}
|
|
<div class="signal @(GetSignalClass())"></div>
|
|
</div>
|
|
</div>
|
|
|
|
@code {
|
|
private Theme _theme;
|
|
|
|
[Parameter]
|
|
public string StatusMessage { get; set; } = string.Empty;
|
|
|
|
protected override async Task OnInitializedAsync()
|
|
{
|
|
_theme = await AppState.GetEffectiveTheme();
|
|
await base.OnInitializedAsync();
|
|
}
|
|
|
|
private string GetSignalClass()
|
|
{
|
|
return _theme == Theme.Dark ? "signal-dark" : "signal-light";
|
|
}
|
|
} |