mirror of
https://github.com/Maassoft/ColorControl.git
synced 2026-10-22 00:22:18 -05:00
fix issues with new UI, add color profiles, add sdr brightness for AMD
This commit is contained in:
1 parent
4d2ca8a552
commit
f42a46e53f
95 files changed
+12129
-10005
No files matched your search
@@ -0,0 +1,26 @@
|
||||
using NStandard;
|
||||
|
||||
namespace ColorControl.UI;
|
||||
|
||||
public class NotificationDto
|
||||
{
|
||||
public long Id { get; }
|
||||
public string Message { get; }
|
||||
public string Level { get; } = Constants.Info;
|
||||
public DateTime? ScheduledAt { get; set; }
|
||||
public string? InternalUrl { get; set; }
|
||||
public DateTime? ShownAt { get; set; }
|
||||
|
||||
public NotificationDto(string message, string level = Constants.Info)
|
||||
{
|
||||
Message = message;
|
||||
Level = level;
|
||||
Id = Random.Shared.NextInt64();
|
||||
}
|
||||
|
||||
public string Category => Level switch
|
||||
{
|
||||
Constants.Danger => "Error",
|
||||
_ => Level[0].ToUpper() + Level.Substring(1)
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user