diff --git a/SukiUI/ColorTheme/NotificationColor.cs b/SukiUI/ColorTheme/NotificationColor.cs
index 4c9b9161..af4355dc 100644
--- a/SukiUI/ColorTheme/NotificationColor.cs
+++ b/SukiUI/ColorTheme/NotificationColor.cs
@@ -4,8 +4,8 @@ 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 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));
}
\ No newline at end of file
diff --git a/SukiUI/Content/Icons.cs b/SukiUI/Content/Icons.cs
index 5e3f8a62..c6cd6889 100644
--- a/SukiUI/Content/Icons.cs
+++ b/SukiUI/Content/Icons.cs
@@ -8,9 +8,12 @@ namespace SukiUI.Content;
///
public static class Icons
{
- // Material Icons
- public static readonly StreamGeometry WindowMinimize = Parse("M20,14H4V10H20");
+ public static readonly StreamGeometry Search = Parse("M11.5,2.75 C16.3324916,2.75 20.25,6.66750844 20.25,11.5 C20.25,13.6461673 19.4773285,15.6118676 18.1949905,17.1340957 L25.0303301,23.9696699 C25.3232233,24.2625631 25.3232233,24.7374369 25.0303301,25.0303301 C24.7640635,25.2965966 24.3473998,25.3208027 24.0537883,25.1029482 L23.9696699,25.0303301 L17.1340957,18.1949905 C15.6118676,19.4773285 13.6461673,20.25 11.5,20.25 C6.66750844,20.25 2.75,16.3324916 2.75,11.5 C2.75,6.66750844 6.66750844,2.75 11.5,2.75 Z M11.5,4.25 C7.49593556,4.25 4.25,7.49593556 4.25,11.5 C4.25,15.5040644 7.49593556,18.75 11.5,18.75 C15.5040644,18.75 18.75,15.5040644 18.75,11.5 C18.75,7.49593556 15.5040644,4.25 11.5,4.25 Z");
+
+ // Material Icons
+ public static readonly StreamGeometry WindowMinimize = Parse("M20,14H4V10H20");
+
// Material Icons
public static readonly StreamGeometry FileOpen = Parse("M17.0606622,9 C17.8933043,9 18.7000032,9.27703406 19.3552116,9.78392956 L19.5300545,9.92783739 L22.116207,12.1907209 C22.306094,12.356872 22.5408581,12.4608817 22.7890575,12.4909364 L22.9393378,12.5 L40.25,12.5 C42.2542592,12.5 43.8912737,14.0723611 43.994802,16.0508414 L44,16.25 L44,35.25 C44,37.2542592 42.4276389,38.8912737 40.4491586,38.994802 L40.25,39 L7.75,39 C5.74574083,39 4.10872626,37.4276389 4.00519801,35.4491586 L4,35.25 L4,12.75 C4,10.7457408 5.57236105,9.10872626 7.55084143,9.00519801 L7.75,9 L17.0606622,9 Z M22.8474156,14.9988741 L20.7205012,17.6147223 C20.0558881,18.4327077 19.0802671,18.9305178 18.0350306,18.993257 L17.8100737,19 L6.5,18.999 L6.5,35.25 C6.5,35.8972087 6.99187466,36.4295339 7.62219476,36.4935464 L7.75,36.5 L40.25,36.5 C40.8972087,36.5 41.4295339,36.0081253 41.4935464,35.3778052 L41.5,35.25 L41.5,16.25 C41.5,15.6027913 41.0081253,15.0704661 40.3778052,15.0064536 L40.25,15 L22.8474156,14.9988741 Z M17.0606622,11.5 L7.75,11.5 C7.10279131,11.5 6.5704661,11.9918747 6.50645361,12.6221948 L6.5,12.75 L6.5,16.499 L17.8100737,16.5 C18.1394331,16.5 18.4534488,16.3701335 18.6858203,16.1419575 L18.7802162,16.0382408 L20.415,14.025 L17.883793,11.8092791 C17.693906,11.643128 17.4591419,11.5391183 17.2109425,11.5090636 L17.0606622,11.5 Z");
diff --git a/SukiUI/Controls/BusyArea.axaml b/SukiUI/Controls/BusyArea.axaml
index c94bb4a7..98aec979 100644
--- a/SukiUI/Controls/BusyArea.axaml
+++ b/SukiUI/Controls/BusyArea.axaml
@@ -19,7 +19,7 @@
LastChildFill="True">
diff --git a/SukiUI/Controls/CircleProgressBar.axaml.cs b/SukiUI/Controls/CircleProgressBar.axaml.cs
index 35169da5..8b50b410 100644
--- a/SukiUI/Controls/CircleProgressBar.axaml.cs
+++ b/SukiUI/Controls/CircleProgressBar.axaml.cs
@@ -1,5 +1,6 @@
using Avalonia;
using Avalonia.Controls;
+using Avalonia.Data;
using Avalonia.Markup.Xaml;
namespace SukiUI.Controls
@@ -24,7 +25,7 @@ public double Value
set
{
_value = (int)(value * 3.6);
- SetValue(ValueProperty, _value);
+ SetValue(ValueProperty,_value);
}
}
@@ -32,9 +33,9 @@ public double Value
/// Defines the property.
///
public static readonly StyledProperty ValueProperty =
- AvaloniaProperty.Register(nameof(Value), defaultValue: 50, coerce: (o, d) => d * 3.6);
-
-
+ AvaloniaProperty.Register(nameof(Value), defaultValue: 50, coerce: (o, d) => d * 3.6);
+
+
public static readonly StyledProperty HeightProperty =
AvaloniaProperty.Register(nameof(Height), defaultValue: 150);
@@ -61,7 +62,7 @@ public int StrokeWidth
get { return GetValue(StrokeWidthProperty); }
set { SetValue(StrokeWidthProperty, value); }
}
-
+
public static readonly StyledProperty IsIndeterminateProperty =
AvaloniaProperty.Register(nameof(IsIndeterminate), false);
diff --git a/SukiUI/Controls/CodeView.axaml.cs b/SukiUI/Controls/CodeView.axaml.cs
index 23c6ee5c..d9386916 100644
--- a/SukiUI/Controls/CodeView.axaml.cs
+++ b/SukiUI/Controls/CodeView.axaml.cs
@@ -9,6 +9,7 @@
using SukiUI.Content;
using SukiUI.Extensions;
using System;
+using System.Threading;
using System.Threading.Tasks;
namespace SukiUI.Controls;
diff --git a/SukiUI/Controls/ContentExpandControl.axaml.cs b/SukiUI/Controls/ContentExpandControl.axaml.cs
index 8a01f045..064c75e4 100644
--- a/SukiUI/Controls/ContentExpandControl.axaml.cs
+++ b/SukiUI/Controls/ContentExpandControl.axaml.cs
@@ -1,7 +1,7 @@
+using System;
using Avalonia;
using Avalonia.Controls;
using Avalonia.Layout;
-using System;
namespace SukiUI.Controls
{
@@ -15,16 +15,16 @@ public double Multiplier
get => GetValue(MultiplierProperty);
set => SetValue(MultiplierProperty, value);
}
-
+
public static readonly StyledProperty OrientationProperty =
AvaloniaProperty.Register(nameof(Orientation));
-
+
public Orientation Orientation
{
get => GetValue(OrientationProperty);
set => SetValue(OrientationProperty, value);
}
-
+
static ContentExpandControl()
{
AffectsArrange(MultiplierProperty, OrientationProperty);
diff --git a/SukiUI/Controls/GlassMorphism/GlassCard.axaml.cs b/SukiUI/Controls/GlassMorphism/GlassCard.axaml.cs
index 4d055053..ac324bae 100644
--- a/SukiUI/Controls/GlassMorphism/GlassCard.axaml.cs
+++ b/SukiUI/Controls/GlassMorphism/GlassCard.axaml.cs
@@ -1,11 +1,16 @@
-using Avalonia;
+using System;
+using System.ComponentModel;
+using System.Windows.Input;
+using Avalonia;
using Avalonia.Controls;
+using Avalonia.Controls.Presenters;
using Avalonia.Controls.Primitives;
using Avalonia.Input;
+using Avalonia.Interactivity;
+using Avalonia.LogicalTree;
using Avalonia.Rendering.Composition;
+using Avalonia.Rendering.Composition.Animations;
using SukiUI.Helpers;
-using System.ComponentModel;
-using System.Windows.Input;
namespace SukiUI.Controls;
@@ -28,8 +33,8 @@ public class GlassCard : ContentControl
get => GetValue(BorderThicknessProperty);
set => SetValue(BorderThicknessProperty, value);
}
-
-
+
+
public static readonly StyledProperty IsAnimatedProperty =
AvaloniaProperty.Register(nameof(IsAnimated), true);
@@ -38,7 +43,7 @@ public bool IsAnimated
get => GetValue(IsAnimatedProperty);
set => SetValue(IsAnimatedProperty, value);
}
-
+
public static readonly StyledProperty IsOpaqueProperty =
AvaloniaProperty.Register(nameof(IsOpaque), false);
@@ -109,7 +114,7 @@ protected override void OnApplyTemplate(TemplateAppliedEventArgs e)
}
}
-
+
@@ -122,7 +127,7 @@ protected override void OnPointerPressed(PointerPressedEventArgs e)
{
base.OnPointerPressed(e);
PseudoClasses.Set(":pointerdown", true);
- if (IsInteractive && Command is not null && Command.CanExecute(CommandParameter))
+ if(IsInteractive && Command is not null && Command.CanExecute(CommandParameter))
Command.Execute(CommandParameter);
}
diff --git a/SukiUI/Controls/InfoBadge.axaml b/SukiUI/Controls/InfoBadge.axaml
index 407bb416..ecddd1fe 100644
--- a/SukiUI/Controls/InfoBadge.axaml
+++ b/SukiUI/Controls/InfoBadge.axaml
@@ -8,10 +8,10 @@
Height="400"
Margin="0,20,0,0"
Spacing="20">
-
-
+ Header="Info">
+
-
diff --git a/SukiUI/Controls/InfoBadge.axaml.cs b/SukiUI/Controls/InfoBadge.axaml.cs
index da4b1817..9d4f5121 100644
--- a/SukiUI/Controls/InfoBadge.axaml.cs
+++ b/SukiUI/Controls/InfoBadge.axaml.cs
@@ -8,10 +8,10 @@
namespace SukiUI.Controls;
-public class InfoBadge : HeaderedContentControl
+public class InfoBadge: HeaderedContentControl
{
private Border? _badgeContainer;
-
+
public static readonly StyledProperty AppearanceProperty =
AvaloniaProperty.Register(nameof(Appearance), NotificationType.Info);
@@ -28,7 +28,7 @@ public NotificationType Appearance
NotificationType.Error => NotificationColor.ErrorIconForeground,
_ => NotificationColor.InfoIconForeground
};
-
+
SetValue(AppearanceProperty, value);
}
}
@@ -40,14 +40,13 @@ public CornerPosition CornerPosition
get => GetValue(CornerPositionProperty);
set => SetValue(CornerPositionProperty, value);
}
-
+
public static readonly StyledProperty IsDotProperty = AvaloniaProperty.Register(
nameof(IsDot), false);
public bool IsDot
{
get => GetValue(IsDotProperty);
- set
- {
+ set {
UpdateBadgePosition();
SetValue(IsDotProperty, value);
}
@@ -97,7 +96,7 @@ private void UpdateBadgePosition()
{
horizontalOffset = 1;
}
-
+
if (_badgeContainer is not null && Presenter?.Child is not null)
{
_badgeContainer.RenderTransform = new TransformGroup
diff --git a/SukiUI/Controls/InfoBar.axaml.cs b/SukiUI/Controls/InfoBar.axaml.cs
index 0d2413d9..0afedcae 100644
--- a/SukiUI/Controls/InfoBar.axaml.cs
+++ b/SukiUI/Controls/InfoBar.axaml.cs
@@ -1,6 +1,8 @@
-using Avalonia;
+using System.Windows.Input;
+using Avalonia;
using Avalonia.Controls;
using Avalonia.Controls.Primitives;
+using Avalonia.Interactivity;
using Avalonia.Media;
using SukiUI.ColorTheme;
using SukiUI.Content;
@@ -26,7 +28,7 @@ public NotificationType Severity
NotificationType.Error => Icons.AlertOutline,
_ => Icons.InformationOutline
};
-
+
IconForeground = value switch
{
NotificationType.Info => NotificationColor.InfoIconForeground,
@@ -35,11 +37,11 @@ public NotificationType Severity
NotificationType.Error => NotificationColor.ErrorIconForeground,
_ => NotificationColor.InfoIconForeground
};
-
+
SetValue(SeverityProperty, value);
}
}
-
+
public static readonly StyledProperty
-
-
-
-
diff --git a/SukiUI/Theme/DataGridStyle.axaml b/SukiUI/Theme/DataGridStyle.axaml
index b2b0734b..b9b00d08 100644
--- a/SukiUI/Theme/DataGridStyle.axaml
+++ b/SukiUI/Theme/DataGridStyle.axaml
@@ -20,18 +20,15 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/SukiUI/Theme/Index.axaml b/SukiUI/Theme/Index.axaml
index ef0b3cd1..4d46f65b 100644
--- a/SukiUI/Theme/Index.axaml
+++ b/SukiUI/Theme/Index.axaml
@@ -47,6 +47,7 @@
CircularEaseOut
avares://SukiUI/CustomFont#MiSans
+ DemiBold
@@ -54,6 +55,7 @@
+
diff --git a/SukiUI/Theme/Index.axaml.cs b/SukiUI/Theme/Index.axaml.cs
index ec00ff81..e1de8513 100644
--- a/SukiUI/Theme/Index.axaml.cs
+++ b/SukiUI/Theme/Index.axaml.cs
@@ -5,6 +5,7 @@
using Avalonia.Media;
using Avalonia.Styling;
using DynamicData;
+using SukiUI.Controls;
using SukiUI.Enums;
using SukiUI.Extensions;
using SukiUI.Models;
@@ -202,7 +203,7 @@ static SukiTheme()
new DefaultSukiColorTheme(SukiColor.Red, Color.Parse("#D03A2F"), Color.Parse("#2FC5D0")),
new DefaultSukiColorTheme(SukiColor.Green, Color.Parse("#537834"), Color.Parse("#B24DB0")),
new DefaultSukiColorTheme(SukiColor.Blue, Color.Parse("#0A59F7"), Color.Parse("#F7A80A")),
-
+
};
DefaultColorThemes = defaultThemes.ToDictionary(x => x.ThemeColor, y => (SukiColorTheme)y);
}
diff --git a/SukiUI/Theme/ManagedFileChooser.axaml b/SukiUI/Theme/ManagedFileChooser.axaml
index 46cb46f3..9c8f3d3d 100644
--- a/SukiUI/Theme/ManagedFileChooser.axaml
+++ b/SukiUI/Theme/ManagedFileChooser.axaml
@@ -77,7 +77,7 @@
Source="/Content/Images/icons8-file-explorer-new-48.png" />
@@ -151,7 +151,7 @@
diff --git a/SukiUI/Theme/ManagedFileChooserConverters.cs b/SukiUI/Theme/ManagedFileChooserConverters.cs
index c665ce0a..765405f7 100644
--- a/SukiUI/Theme/ManagedFileChooserConverters.cs
+++ b/SukiUI/Theme/ManagedFileChooserConverters.cs
@@ -1,19 +1,19 @@
-using Avalonia;
+using System;
+using System.Globalization;
+using System.Linq;
+using Avalonia;
using Avalonia.Controls;
+using Avalonia.Controls.Primitives;
using Avalonia.Data.Converters;
using Avalonia.Layout;
using Avalonia.Markup.Xaml.MarkupExtensions;
using Avalonia.Media;
using SukiUI.Content;
-using System;
-using System.Globalization;
-using System.Linq;
namespace SukiUI.Theme
{
public class TextToPathConverter : IValueConverter
{
-
public object? Convert(object? value, Type targetType, object? parameter, CultureInfo culture)
{
var pathes = (value as string).Split('\\');
@@ -22,34 +22,37 @@ public class TextToPathConverter : IValueConverter
pathes = pathes.Skip(1).ToArray();
}
- var stackPanel = new StackPanel() { VerticalAlignment = VerticalAlignment.Center, Orientation = Orientation.Horizontal, Margin = new Thickness(5) };
+ var stackPanel = new StackPanel
+ {
+ VerticalAlignment = VerticalAlignment.Center, Orientation = Orientation.Horizontal,
+ Margin = new Thickness(5)
+ };
for (var i = 0; i < pathes.Length; i++)
{
- var t = new TextBlock()
+ var t = new TextBlock
{
Text = pathes[i],
- FontWeight = FontWeight.DemiBold,
- FontSize = 14,
- VerticalAlignment = VerticalAlignment.Center
-
+ FontWeight =
+ Application.Current!.TryGetResource("DefaultDemiBold", Application.Current!.ActualThemeVariant,
+ out var fontWeight)
+ ? (FontWeight)fontWeight!
+ : FontWeight.DemiBold,
+ FontSize = 14, VerticalAlignment = VerticalAlignment.Center,
+ [!TextBlock.ForegroundProperty] = i == pathes.Length - 1
+ ? new DynamicResourceExtension("SukiText")
+ : new DynamicResourceExtension("SukiLowText")
};
- t[!TextBlock.ForegroundProperty] = i == pathes.Length - 1 ? new DynamicResourceExtension("SukiText") : new DynamicResourceExtension("SukiLowText");
-
stackPanel.Children.Add(t);
- var p = new PathIcon()
+ var p = new PathIcon
{
- Height = 6,
- Margin = new Thickness(12, 4, 12, 2),
- Width = 5,
- Data = Icons.ChevronRight,
- IsVisible = i != pathes.Length - 1,
- VerticalAlignment = VerticalAlignment.Center
+ Height = 6, Margin = new Thickness(12, 4, 12, 2), Width = 5, Data = Icons.ChevronRight,
+ IsVisible = i != pathes.Length - 1, VerticalAlignment = VerticalAlignment.Center
};
- p[!PathIcon.ForegroundProperty] = new DynamicResourceExtension("SukiLowText");
+ p[!TemplatedControl.ForegroundProperty] = new DynamicResourceExtension("SukiLowText");
stackPanel.Children.Add(p);
}
@@ -65,7 +68,6 @@ public object ConvertBack(object? value, Type targetType, object? parameter, Cul
public class WindowManagedConverter : IValueConverter
{
-
public object? Convert(object? value, Type targetType, object? parameter, CultureInfo culture)
{
var w = value as Window;
@@ -73,7 +75,6 @@ public class WindowManagedConverter : IValueConverter
// w.ExtendClientAreaToDecorationsHint = true;
-
return "";
}
diff --git a/SukiUI/Theme/Menu.axaml b/SukiUI/Theme/Menu.axaml
index 94470aa8..3c1ec2bd 100644
--- a/SukiUI/Theme/Menu.axaml
+++ b/SukiUI/Theme/Menu.axaml
@@ -3,12 +3,13 @@
xmlns:controls="clr-namespace:SukiUI.Controls"
xmlns:system="clr-namespace:System;assembly=netstandard">
-
+
-
-
+
@@ -47,12 +48,12 @@
ClipToBounds="True"
CornerRadius="6">
-
-
-
-
+
+
+
+
@@ -91,11 +92,12 @@
-
+ CornerRadius="{TemplateBinding CornerRadius}"
+ IsAnimated="False">
@@ -136,7 +138,7 @@
-
+
diff --git a/SukiUI/Theme/MenuItem.axaml b/SukiUI/Theme/MenuItem.axaml
index 7fc980cc..9d7e6625 100644
--- a/SukiUI/Theme/MenuItem.axaml
+++ b/SukiUI/Theme/MenuItem.axaml
@@ -48,7 +48,7 @@
Content="{TemplateBinding Header}">
-
+
@@ -83,9 +83,9 @@
ClipToBounds="True"
CornerRadius="5">
-
-
-
+
+
+
diff --git a/SukiUI/Theme/NotificationCardStyle.axaml b/SukiUI/Theme/NotificationCardStyle.axaml
index 6b511816..e7e63ca0 100644
--- a/SukiUI/Theme/NotificationCardStyle.axaml
+++ b/SukiUI/Theme/NotificationCardStyle.axaml
@@ -32,20 +32,20 @@
ClipToBounds="True"
CornerRadius="10">
-
+
-
-
-
-
+
+
+
+
@@ -55,7 +55,7 @@
\ No newline at end of file
diff --git a/SukiUI/Theme/RadioButtonStyles.xaml b/SukiUI/Theme/RadioButtonStyles.xaml
index 815b822e..2d899b16 100644
--- a/SukiUI/Theme/RadioButtonStyles.xaml
+++ b/SukiUI/Theme/RadioButtonStyles.xaml
@@ -264,7 +264,7 @@
@@ -290,7 +290,7 @@
-
+
diff --git a/SukiUI/Theme/ScrollableExtensions.cs b/SukiUI/Theme/ScrollableExtensions.cs
index 6e968ffe..03b4fed2 100644
--- a/SukiUI/Theme/ScrollableExtensions.cs
+++ b/SukiUI/Theme/ScrollableExtensions.cs
@@ -1,9 +1,11 @@
-using Avalonia;
+using System;
+using System.Numerics;
+using Avalonia;
using Avalonia.Controls;
using Avalonia.Controls.Presenters;
+using Avalonia.Controls.Primitives;
using Avalonia.Rendering.Composition;
using Avalonia.Rendering.Composition.Animations;
-using System;
namespace SukiUI.Theme
{
@@ -14,7 +16,7 @@ public static void MakeScrollable(CompositionVisual compositionVisual)
{
if (compositionVisual == null)
return;
-
+
Compositor compositor = compositionVisual.Compositor;
var animationGroup = compositor.CreateAnimationGroup();
@@ -29,13 +31,13 @@ public static void MakeScrollable(CompositionVisual compositionVisual)
implicitAnimationCollection["Offset"] = animationGroup;
compositionVisual.ImplicitAnimations = implicitAnimationCollection;
}
-
-
+
+
}
-
-
-
-
+
+
+
+
public static class StackPanelExtensions
{
public static readonly AttachedProperty AnimatedScrollProperty =
@@ -45,10 +47,10 @@ static StackPanelExtensions()
{
AnimatedScrollProperty.Changed.AddClassHandler(HandleAnimatedScrollChanged);
}
-
+
private static void HandleAnimatedScrollChanged(StackPanel interactElem, AvaloniaPropertyChangedEventArgs args)
{
- if (GetAnimatedScroll(interactElem))
+ if(GetAnimatedScroll(interactElem))
interactElem.AttachedToVisualTree += (sender, args) => Scrollable.MakeScrollable(ElementComposition.GetElementVisual(interactElem));
}
@@ -65,7 +67,7 @@ public static void SetAnimatedScroll(StackPanel wrap, bool value)
}
}
-
+
public static class WrapPanelExtensions
{
public static readonly AttachedProperty AnimatedScrollProperty =
@@ -75,10 +77,10 @@ static WrapPanelExtensions()
{
AnimatedScrollProperty.Changed.AddClassHandler(HandleAnimatedScrollChanged);
}
-
+
private static void HandleAnimatedScrollChanged(WrapPanel interactElem, AvaloniaPropertyChangedEventArgs args)
{
- if (GetAnimatedScroll(interactElem))
+ if(GetAnimatedScroll(interactElem))
interactElem.AttachedToVisualTree += (sender, args) => Scrollable.MakeScrollable(ElementComposition.GetElementVisual(interactElem));
}
@@ -95,7 +97,7 @@ public static void SetAnimatedScroll(WrapPanel wrap, bool value)
}
}
-
+
public static class ItemsPresenterExtensions
{
public static readonly AttachedProperty AnimatedScrollProperty =
@@ -105,10 +107,10 @@ static ItemsPresenterExtensions()
{
AnimatedScrollProperty.Changed.AddClassHandler(HandleAnimatedScrollChanged);
}
-
+
private static void HandleAnimatedScrollChanged(ItemsPresenter interactElem, AvaloniaPropertyChangedEventArgs args)
{
- if (GetAnimatedScroll(interactElem))
+ if(GetAnimatedScroll(interactElem))
interactElem.AttachedToVisualTree += (sender, args) => Scrollable.MakeScrollable(ElementComposition.GetElementVisual(interactElem));
}
@@ -126,7 +128,7 @@ public static void SetAnimatedScroll(ItemsPresenter wrap, bool value)
}
-
+
public static class ItemsControlExtensions
{
public static readonly AttachedProperty AnimatedScrollProperty =
@@ -136,10 +138,10 @@ static ItemsControlExtensions()
{
AnimatedScrollProperty.Changed.AddClassHandler(HandleAnimatedScrollChanged);
}
-
+
private static void HandleAnimatedScrollChanged(ItemsControl interactElem, AvaloniaPropertyChangedEventArgs args)
{
- if (GetAnimatedScroll(interactElem))
+ if(GetAnimatedScroll(interactElem))
interactElem.AttachedToVisualTree += (sender, args) => Scrollable.MakeScrollable(ElementComposition.GetElementVisual(interactElem));
}
@@ -157,6 +159,6 @@ public static void SetAnimatedScroll(ItemsControl wrap, bool value)
}
-
-
+
+
}
\ No newline at end of file
diff --git a/SukiUI/Theme/TextBoxStyles.xaml b/SukiUI/Theme/TextBoxStyles.xaml
index 63bd1226..f87ae2db 100644
--- a/SukiUI/Theme/TextBoxStyles.xaml
+++ b/SukiUI/Theme/TextBoxStyles.xaml
@@ -32,13 +32,13 @@
@@ -53,7 +53,7 @@
@@ -69,18 +69,21 @@
m10.051 7.0032c2.215 0 4.0105 1.7901 4.0105 3.9984s-1.7956 3.9984-4.0105 3.9984c-2.215 0-4.0105-1.7901-4.0105-3.9984s1.7956-3.9984 4.0105-3.9984zm0 1.4994c-1.3844 0-2.5066 1.1188-2.5066 2.499s1.1222 2.499 2.5066 2.499 2.5066-1.1188 2.5066-2.499-1.1222-2.499-2.5066-2.499zm0-5.0026c4.6257 0 8.6188 3.1487 9.7267 7.5613 0.10085 0.40165-0.14399 0.80877-0.54686 0.90931-0.40288 0.10054-0.81122-0.14355-0.91208-0.54521-0.94136-3.7492-4.3361-6.4261-8.2678-6.4261-3.9334 0-7.3292 2.6792-8.2689 6.4306-0.10063 0.40171-0.50884 0.64603-0.91177 0.54571s-0.648-0.5073-0.54737-0.90901c1.106-4.4152 5.1003-7.5667 9.728-7.5667z
m0.21967 0.21965c-0.26627 0.26627-0.29047 0.68293-0.07262 0.97654l0.07262 0.08412 4.0346 4.0346c-1.922 1.3495-3.3585 3.365-3.9554 5.7495-0.10058 0.4018 0.14362 0.8091 0.54543 0.9097 0.40182 0.1005 0.80909-0.1436 0.90968-0.5455 0.52947-2.1151 1.8371-3.8891 3.5802-5.0341l1.8096 1.8098c-0.70751 0.7215-1.1438 1.71-1.1438 2.8003 0 2.2092 1.7909 4 4 4 1.0904 0 2.0788-0.4363 2.8004-1.1438l5.9193 5.9195c0.2929 0.2929 0.7677 0.2929 1.0606 0 0.2663-0.2662 0.2905-0.6829 0.0726-0.9765l-0.0726-0.0841-6.1135-6.1142 0.0012-0.0015-1.2001-1.1979-2.8699-2.8693 2e-3 -8e-4 -2.8812-2.8782 0.0012-0.0018-1.1333-1.1305-4.3064-4.3058c-0.29289-0.29289-0.76777-0.29289-1.0607 0zm7.9844 9.0458 3.5351 3.5351c-0.45 0.4358-1.0633 0.704-1.7392 0.704-1.3807 0-2.5-1.1193-2.5-2.5 0-0.6759 0.26824-1.2892 0.7041-1.7391zm1.7959-5.7655c-1.0003 0-1.9709 0.14807-2.8889 0.425l1.237 1.2362c0.5358-0.10587 1.0883-0.16119 1.6519-0.16119 3.9231 0 7.3099 2.6803 8.2471 6.4332 0.1004 0.4018 0.5075 0.6462 0.9094 0.5459 0.4019-0.1004 0.6463-0.5075 0.5459-0.9094-1.103-4.417-5.0869-7.5697-9.7024-7.5697zm0.1947 3.5093 3.8013 3.8007c-0.1018-2.0569-1.7488-3.7024-3.8013-3.8007z
-
-
-
@@ -603,5 +600,4 @@
-
\ No newline at end of file
diff --git a/SukiUI/Theme/TimePickerStyle.axaml b/SukiUI/Theme/TimePickerStyle.axaml
index 8df3a640..6c67c0e6 100644
--- a/SukiUI/Theme/TimePickerStyle.axaml
+++ b/SukiUI/Theme/TimePickerStyle.axaml
@@ -320,7 +320,7 @@
Foreground="{DynamicResource SukiPrimaryColor}" />
diff --git a/SukiUI/Theme/ToggleButtonStyles.xaml b/SukiUI/Theme/ToggleButtonStyles.xaml
index b251f68c..abd76974 100644
--- a/SukiUI/Theme/ToggleButtonStyles.xaml
+++ b/SukiUI/Theme/ToggleButtonStyles.xaml
@@ -16,7 +16,7 @@
-
+
@@ -188,9 +188,7 @@
CornerRadius="{DynamicResource MediumCornerRadius}">
-
-
-
+
@@ -201,11 +199,9 @@
-
-
-
-
+ -->