Merge pull request #530 from irihitech/notification

fix: add margin to topright notification and toast.
This commit is contained in:
Dong Bin
2025-01-03 16:14:15 +08:00
committed by GitHub
2 changed files with 19 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
<Styles xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:u="https://irihi.tech/ursa">
<Design.PreviewWith>
<Border Padding="20">
<!-- Add Controls for Previewer Here -->
</Border>
</Design.PreviewWith>
<Style Selector=":is(u|UrsaWindow)[ExtendClientAreaToDecorationsHint=True] u|WindowNotificationManager">
<Style Selector="^:topright">
<Setter Property="Margin" Value="0 36 0 0"></Setter>
</Style>
</Style>
<Style Selector=":is(u|UrsaWindow)[ExtendClientAreaToDecorationsHint=True] u|WindowToastManager">
<Setter Property="Margin" Value="0 36 0 0"></Setter>
</Style>
</Styles>

View File

@@ -11,5 +11,6 @@
<StyleInclude Source="ToolBar.axaml"/>
<StyleInclude Source="TimeBox.axaml"/>
<StyleInclude Source="UrsaView.axaml" />
<StyleInclude Source="UrsaWindow.axaml" />
<!-- Add Styles Here -->
</Styles>