From 50f5cd234426af272d176cc84ce40b610aa912c7 Mon Sep 17 00:00:00 2001 From: Clement Sepulchre Date: Fri, 31 May 2024 10:08:13 +0200 Subject: [PATCH] infobar adjustments --- .../ControlsLibrary/InfoBarView.axaml | 24 ++++++++++++------- .../ControlsLibrary/InfoBarViewModel.cs | 3 +++ SukiUI/Controls/GlassMorphism/GlassCard.axaml | 15 +++++++++++- SukiUI/Controls/InfoBar.axaml | 12 ++++------ SukiUI/Controls/InfoBar.axaml.cs | 10 ++++++++ SukiUI/SukiUI.csproj | 2 +- 6 files changed, 49 insertions(+), 17 deletions(-) diff --git a/SukiUI.Demo/Features/ControlsLibrary/InfoBarView.axaml b/SukiUI.Demo/Features/ControlsLibrary/InfoBarView.axaml index 166180262..6ebb519c3 100644 --- a/SukiUI.Demo/Features/ControlsLibrary/InfoBarView.axaml +++ b/SukiUI.Demo/Features/ControlsLibrary/InfoBarView.axaml @@ -24,7 +24,7 @@ + Text="Hello world !" /> + + + + + - - + - - - - + diff --git a/SukiUI.Demo/Features/ControlsLibrary/InfoBarViewModel.cs b/SukiUI.Demo/Features/ControlsLibrary/InfoBarViewModel.cs index e72a25a57..f36b799ff 100644 --- a/SukiUI.Demo/Features/ControlsLibrary/InfoBarViewModel.cs +++ b/SukiUI.Demo/Features/ControlsLibrary/InfoBarViewModel.cs @@ -12,6 +12,9 @@ public partial class InfoBarViewModel() : DemoPageBase("InfoBar", MaterialIconKi [ObservableProperty] private bool _isClosable = true; + [ObservableProperty] + private bool _isOpaque = false; + [RelayCommand] private void RefreshIsOpenStatus() { diff --git a/SukiUI/Controls/GlassMorphism/GlassCard.axaml b/SukiUI/Controls/GlassMorphism/GlassCard.axaml index 40598bb53..6e1de1821 100644 --- a/SukiUI/Controls/GlassMorphism/GlassCard.axaml +++ b/SukiUI/Controls/GlassMorphism/GlassCard.axaml @@ -6,7 +6,7 @@ - + + + - + Margin="0,12,0,0"> + @@ -74,7 +72,7 @@ Opacity="0.7" /> - + diff --git a/SukiUI/Controls/InfoBar.axaml.cs b/SukiUI/Controls/InfoBar.axaml.cs index 2c70781df..0afedcaee 100644 --- a/SukiUI/Controls/InfoBar.axaml.cs +++ b/SukiUI/Controls/InfoBar.axaml.cs @@ -78,6 +78,16 @@ public bool IsClosable set => SetValue(IsClosableProperty, value); } + + public static readonly StyledProperty IsOpaqueProperty = + AvaloniaProperty.Register(nameof(IsOpaque), false); + + public bool IsOpaque + { + get => GetValue(IsOpaqueProperty); + set => SetValue(IsOpaqueProperty, value); + } + public static readonly StyledProperty TitleProperty = AvaloniaProperty.Register(nameof(Title), string.Empty); diff --git a/SukiUI/SukiUI.csproj b/SukiUI/SukiUI.csproj index 81e5e9457..a0fe4f6cf 100644 --- a/SukiUI/SukiUI.csproj +++ b/SukiUI/SukiUI.csproj @@ -21,7 +21,7 @@ 10 712f85e4-12d3-41b0-a417-5714a113666f https://github.com/kikipoulet/SukiUI - 5.1.2 + 6.0.0 enable true OIG.N5o-removebg-preview.png