From 9a06c7f0c34fd9b0d3b550a22a7aab4228d95dd2 Mon Sep 17 00:00:00 2001 From: kikipoulet Date: Sat, 25 May 2024 14:49:39 +0200 Subject: [PATCH] toast better background --- SukiUI/Controls/SukiToast.axaml | 34 ++++++++++++++++++++---- SukiUI/Theme/BorderStyles.xaml | 2 +- SukiUI/Theme/Index.axaml.cs | 1 + SukiUI/Theme/NotificationCardStyle.axaml | 8 ++++-- 4 files changed, 37 insertions(+), 8 deletions(-) diff --git a/SukiUI/Controls/SukiToast.axaml b/SukiUI/Controls/SukiToast.axaml index 331d7928c..d00069526 100644 --- a/SukiUI/Controls/SukiToast.axaml +++ b/SukiUI/Controls/SukiToast.axaml @@ -9,13 +9,34 @@ - + Background="{DynamicResource SukiCardBackground}" + CornerRadius="15"> + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SukiUI/Theme/BorderStyles.xaml b/SukiUI/Theme/BorderStyles.xaml index b94030382..82c7f302a 100644 --- a/SukiUI/Theme/BorderStyles.xaml +++ b/SukiUI/Theme/BorderStyles.xaml @@ -6,7 +6,7 @@ Orientation="Horizontal"> + Classes="GradientCard" /> diff --git a/SukiUI/Theme/Index.axaml.cs b/SukiUI/Theme/Index.axaml.cs index 73d3dfd91..39fbf3ea3 100644 --- a/SukiUI/Theme/Index.axaml.cs +++ b/SukiUI/Theme/Index.axaml.cs @@ -206,6 +206,7 @@ private void SetColorWithOpacities(string baseName, Color baseColor) SetResource($"{baseName}25", baseColor.WithAlpha(0.25)); SetResource($"{baseName}15", baseColor.WithAlpha(0.15)); SetResource($"{baseName}10", baseColor.WithAlpha(0.10)); + SetResource($"{baseName}7", baseColor.WithAlpha(0.07)); SetResource($"{baseName}5", baseColor.WithAlpha(0.05)); SetResource($"{baseName}0", baseColor.WithAlpha(0.00)); } diff --git a/SukiUI/Theme/NotificationCardStyle.axaml b/SukiUI/Theme/NotificationCardStyle.axaml index 5227e8eef..1e2c85bff 100644 --- a/SukiUI/Theme/NotificationCardStyle.axaml +++ b/SukiUI/Theme/NotificationCardStyle.axaml @@ -1,6 +1,7 @@  + xmlns:content="clr-namespace:SukiUI.Content" + xmlns:controls="clr-namespace:SukiUI.Controls"> @@ -30,7 +31,9 @@ BorderThickness="{TemplateBinding BorderThickness}" ClipToBounds="True" CornerRadius="10"> - + + + +