NotificationColor.cs 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. using Avalonia;
  2. using Avalonia.Media;
  3. using Avalonia.Styling;
  4. namespace SukiUI.ColorTheme;
  5. public static class NotificationColor
  6. {
  7. public static readonly LinearGradientBrush InfoIconForeground = new LinearGradientBrush()
  8. {
  9. EndPoint = new RelativePoint(0, 0, RelativeUnit.Relative),
  10. StartPoint = new RelativePoint(1, 1, RelativeUnit.Relative),
  11. GradientStops = new GradientStops()
  12. {
  13. new() { Color = Color.FromRgb(89,126,247), Offset = 0.3 },
  14. new() { Color = Color.FromRgb(47,84,235), Offset = 1 },
  15. }
  16. };
  17. public static readonly LinearGradientBrush SuccessIconForeground = new LinearGradientBrush()
  18. {
  19. EndPoint = new RelativePoint(0, 0, RelativeUnit.Relative),
  20. StartPoint = new RelativePoint(1, 1, RelativeUnit.Relative),
  21. GradientStops = new GradientStops()
  22. {
  23. new() { Color = Color.FromRgb(82,196,26), Offset = 0.3 },
  24. new() { Color = Color.FromRgb(56,158,13), Offset = 1 },
  25. }
  26. };
  27. public static readonly LinearGradientBrush WarningIconForeground = new LinearGradientBrush()
  28. {
  29. EndPoint = new RelativePoint(0, 0, RelativeUnit.Relative),
  30. StartPoint = new RelativePoint(1, 1, RelativeUnit.Relative),
  31. GradientStops = new GradientStops()
  32. {
  33. new() { Color = Color.FromRgb(255,169,64), Offset = 0.3 },
  34. new() { Color = Color.FromRgb(250,140,22), Offset = 1 },
  35. }
  36. };
  37. public static readonly LinearGradientBrush ErrorIconForeground = new LinearGradientBrush()
  38. {
  39. EndPoint = new RelativePoint(0, 0, RelativeUnit.Relative),
  40. StartPoint = new RelativePoint(1, 1, RelativeUnit.Relative),
  41. GradientStops = new GradientStops()
  42. {
  43. new() { Color = Color.FromRgb(255,77,79), Offset = 0.3 },
  44. new() { Color = Color.FromRgb(245,34,45), Offset = 1 },
  45. }
  46. };
  47. }