mirror of
https://github.com/frosch95/K8sFileBrowser.git
synced 2026-04-11 12:58:22 +02:00
13 lines
365 B
C#
13 lines
365 B
C#
using Avalonia.Media;
|
|
|
|
namespace K8sFileBrowser.Models;
|
|
|
|
public class Message
|
|
{
|
|
public bool IsVisible { get; set; }
|
|
public string Text { get; set; } = string.Empty;
|
|
public bool IsError { get; set; }
|
|
public IBrush Color => IsError ? new SolidColorBrush(Avalonia.Media.Color.FromRgb(74, 7, 2)) : Brushes.Black;
|
|
public double Opacity => 0.7;
|
|
}
|