diff --git a/SukiUI.Demo/Features/ControlsLibrary/Dialogs/DialogsViewModel.cs b/SukiUI.Demo/Features/ControlsLibrary/Dialogs/DialogsViewModel.cs
index 2fbf866d6..4fcd32ee8 100644
--- a/SukiUI.Demo/Features/ControlsLibrary/Dialogs/DialogsViewModel.cs
+++ b/SukiUI.Demo/Features/ControlsLibrary/Dialogs/DialogsViewModel.cs
@@ -62,8 +62,8 @@ private void OpenMessageBoxStyleDialog()
dialogManager.CreateDialog()
.OfType(SelectedType)
.WithTitle("MessageBox style dialog.")
- .WithContent($"This MessageBox is - {SelectedType}.")
- .WithActionButton("Dismiss", _ => { }, true)
+ .WithContent("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.")
+ .WithActionButton("Close " + SelectedType.ToString(), _ => { }, true)
.Dismiss().ByClickingBackground()
.TryShow();
}
diff --git a/SukiUI/ColorTheme/Dark.axaml b/SukiUI/ColorTheme/Dark.axaml
index 1ad014a2c..27b41d9b5 100644
--- a/SukiUI/ColorTheme/Dark.axaml
+++ b/SukiUI/ColorTheme/Dark.axaml
@@ -24,7 +24,7 @@
0 1 5 0 #555555
0 0 4 1 #101010
1 1 14 1 #101010
- 1 1 15 0 #606060
+ 1 4 17 0 #111111
diff --git a/SukiUI/ColorTheme/Light.axaml b/SukiUI/ColorTheme/Light.axaml
index cc6d2e8e5..38caa0bf7 100644
--- a/SukiUI/ColorTheme/Light.axaml
+++ b/SukiUI/ColorTheme/Light.axaml
@@ -24,7 +24,7 @@
0 1 5 0 #aaaaaa
0 0 2 0 DimGray
1 1 8 0 LightGray
- 1 1 15 0 #dedede
+ 1 4 17 0 #999999
diff --git a/SukiUI/ColorTheme/NotificationColor.cs b/SukiUI/ColorTheme/NotificationColor.cs
index af4355dc5..d9211a8f9 100644
--- a/SukiUI/ColorTheme/NotificationColor.cs
+++ b/SukiUI/ColorTheme/NotificationColor.cs
@@ -1,11 +1,53 @@
-using Avalonia.Media;
+using Avalonia;
+using Avalonia.Media;
+using Avalonia.Styling;
namespace SukiUI.ColorTheme;
public static class NotificationColor
{
- public static readonly SolidColorBrush InfoIconForeground = new(Color.FromRgb(47,84,235));
- public static readonly SolidColorBrush SuccessIconForeground = new(Color.FromRgb(56,158,13));
- public static readonly SolidColorBrush WarningIconForeground = new(Color.FromRgb(240,140,22));
- public static readonly SolidColorBrush ErrorIconForeground = new(Color.FromRgb(236,63,48));
+ public static readonly LinearGradientBrush InfoIconForeground = new LinearGradientBrush()
+ {
+ EndPoint = new RelativePoint(0, 0, RelativeUnit.Relative),
+ StartPoint = new RelativePoint(1, 1, RelativeUnit.Relative),
+ GradientStops = new GradientStops()
+ {
+ new() { Color = Color.FromRgb(89,126,247), Offset = 0.3 },
+ new() { Color = Color.FromRgb(47,84,235), Offset = 1 },
+
+ }
+ };
+ public static readonly LinearGradientBrush SuccessIconForeground = new LinearGradientBrush()
+ {
+ EndPoint = new RelativePoint(0, 0, RelativeUnit.Relative),
+ StartPoint = new RelativePoint(1, 1, RelativeUnit.Relative),
+ GradientStops = new GradientStops()
+ {
+ new() { Color = Color.FromRgb(82,196,26), Offset = 0.3 },
+ new() { Color = Color.FromRgb(56,158,13), Offset = 1 },
+
+ }
+ };
+ public static readonly LinearGradientBrush WarningIconForeground = new LinearGradientBrush()
+ {
+ EndPoint = new RelativePoint(0, 0, RelativeUnit.Relative),
+ StartPoint = new RelativePoint(1, 1, RelativeUnit.Relative),
+ GradientStops = new GradientStops()
+ {
+ new() { Color = Color.FromRgb(255,169,64), Offset = 0.3 },
+ new() { Color = Color.FromRgb(250,140,22), Offset = 1 },
+
+ }
+ };
+ public static readonly LinearGradientBrush ErrorIconForeground = new LinearGradientBrush()
+ {
+ EndPoint = new RelativePoint(0, 0, RelativeUnit.Relative),
+ StartPoint = new RelativePoint(1, 1, RelativeUnit.Relative),
+ GradientStops = new GradientStops()
+ {
+ new() { Color = Color.FromRgb(255,77,79), Offset = 0.3 },
+ new() { Color = Color.FromRgb(245,34,45), Offset = 1 },
+
+ }
+ };
}
\ No newline at end of file
diff --git a/SukiUI/Controls/SukiDialog.axaml b/SukiUI/Controls/SukiDialog.axaml
index b2fe9fd2a..522247f11 100644
--- a/SukiUI/Controls/SukiDialog.axaml
+++ b/SukiUI/Controls/SukiDialog.axaml
@@ -1,15 +1,16 @@
+ xmlns:suki="https://github.com/kikipoulet/SukiUI"
+ xmlns:dialogs="clr-namespace:SukiUI.Dialogs">
-
+ CornerRadius="25">
@@ -27,37 +28,55 @@
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
-
-
+
-
+
-
-
-
+
+
+
+
+ Width="28"
+ Height="28" />
+
+
diff --git a/SukiUI/Dialogs/DialogContentMaxWidthValueConverter.cs b/SukiUI/Dialogs/DialogContentMaxWidthValueConverter.cs
new file mode 100644
index 000000000..69f67556b
--- /dev/null
+++ b/SukiUI/Dialogs/DialogContentMaxWidthValueConverter.cs
@@ -0,0 +1,29 @@
+using System;
+using System.Globalization;
+using Avalonia.Data.Converters;
+using Avalonia.Media.Immutable;
+
+namespace SukiUI.Dialogs
+{
+ public class DialogContentMaxWidthValueConverter: IValueConverter
+ {
+
+ public static readonly DialogContentMaxWidthValueConverter Instance = new();
+
+ public object? Convert(object? value, Type targetType, object? parameter,
+ CultureInfo culture)
+ {
+ if (value is string)
+ return 450;
+
+ return 2000;
+ }
+
+ public object ConvertBack(object? value, Type targetType,
+ object? parameter, CultureInfo culture)
+ {
+ throw new NotSupportedException();
+ }
+
+ }
+}
\ No newline at end of file