Compare commits

...

2 Commits

Author SHA1 Message Date
GukSang.Jin
1a228bccae 更新 2026-05-29 18:37:35 +08:00
GukSang.Jin
6fb3599d01 更新 2026-05-29 18:27:38 +08:00
2 changed files with 38 additions and 1 deletions

View File

@@ -17,7 +17,22 @@
Background="#EEF2F5"
TransparencyLevelHint="None"
BackgroundAnimationEnabled="False"
ShowTitlebarBackground="True">
BackgroundTransitionsEnabled="False"
ShowTitlebarBackground="True"
TitleBarAnimationEnabled="False"
TitleBarVisibilityOnFullScreen="Visible">
<suki:SukiWindow.Styles>
<Style Selector="suki|GlassCard#PART_TitleBarBackground">
<Setter Property="IsOpaque" Value="True"/>
</Style>
<Style Selector="suki|GlassCard#PART_TitleBarBackground /template/ Border.GlassCardBorderPartCard">
<Setter Property="Background" Value="#FDFEFF"/>
</Style>
<Style Selector="Border#DragArea">
<Setter Property="Background" Value="#FDFEFF"/>
</Style>
</suki:SukiWindow.Styles>
<Grid Background="#EEF2F5" ColumnDefinitions="236,*">
<Border Grid.Column="0" Background="#17212B">

View File

@@ -1,3 +1,6 @@
using Avalonia.Controls;
using Avalonia.Controls.Primitives;
using Avalonia.Media;
using SukiUI.Controls;
namespace FootwearTest.Views
@@ -8,5 +11,24 @@ namespace FootwearTest.Views
{
InitializeComponent();
}
protected override void OnApplyTemplate(TemplateAppliedEventArgs e)
{
base.OnApplyTemplate(e);
var titleBarBackground = e.NameScope.Find<GlassCard>("PART_TitleBarBackground");
if (titleBarBackground is not null)
{
titleBarBackground.IsOpaque = true;
titleBarBackground.IsAnimated = false;
titleBarBackground.BorderThickness = new Avalonia.Thickness(0);
}
var dragArea = e.NameScope.Find<Border>("DragArea");
if (dragArea is not null)
{
dragArea.Background = SolidColorBrush.Parse("#FDFEFF");
}
}
}
}