Compare commits
2 Commits
c9c294fc42
...
1a228bccae
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1a228bccae | ||
|
|
6fb3599d01 |
@@ -17,7 +17,22 @@
|
|||||||
Background="#EEF2F5"
|
Background="#EEF2F5"
|
||||||
TransparencyLevelHint="None"
|
TransparencyLevelHint="None"
|
||||||
BackgroundAnimationEnabled="False"
|
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,*">
|
<Grid Background="#EEF2F5" ColumnDefinitions="236,*">
|
||||||
<Border Grid.Column="0" Background="#17212B">
|
<Border Grid.Column="0" Background="#17212B">
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
using Avalonia.Controls;
|
||||||
|
using Avalonia.Controls.Primitives;
|
||||||
|
using Avalonia.Media;
|
||||||
using SukiUI.Controls;
|
using SukiUI.Controls;
|
||||||
|
|
||||||
namespace FootwearTest.Views
|
namespace FootwearTest.Views
|
||||||
@@ -8,5 +11,24 @@ namespace FootwearTest.Views
|
|||||||
{
|
{
|
||||||
InitializeComponent();
|
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");
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user