Browse Source
* ControlCatalog: improve transparent appearance * Update AvaloniaUI.DiagnosticsSupport to 2.2.1 * Make TransparentStyles AOT compatiblepull/21457/head
committed by
GitHub
6 changed files with 60 additions and 16 deletions
@ -0,0 +1,25 @@ |
|||||
|
<Styles xmlns="https://github.com/avaloniaui" |
||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
||||
|
xmlns:local="clr-namespace:ControlCatalog" |
||||
|
x:Class="ControlCatalog.TransparentStyles"> |
||||
|
|
||||
|
<!-- Only used when WindowTransparencyLevel != None --> |
||||
|
|
||||
|
<Styles.Resources> |
||||
|
<SolidColorBrush x:Key="NavigationBarBackground" Color="Transparent" /> |
||||
|
<SolidColorBrush x:Key="TitleBarBackgroundBrush" Color="Transparent" /> |
||||
|
<SolidColorBrush x:Key="ExpanderHeaderBackground" Color="Transparent" /> |
||||
|
<SolidColorBrush x:Key="ExpanderHeaderBackgroundPointerOver" Color="#33808080" /> |
||||
|
<SolidColorBrush x:Key="ExpanderHeaderBackgroundPressed" Color="#66808080" /> |
||||
|
</Styles.Resources> |
||||
|
|
||||
|
<Style Selector="local|MainView"> |
||||
|
<Setter Property="Background" Value="Transparent" /> |
||||
|
<Setter Property="DrawerBackground" Value="Transparent" /> |
||||
|
|
||||
|
<Style Selector="^ TabbedPage"> |
||||
|
<Setter Property="Background" Value="Transparent" /> |
||||
|
</Style> |
||||
|
</Style> |
||||
|
|
||||
|
</Styles> |
||||
@ -0,0 +1,5 @@ |
|||||
|
using Avalonia.Styling; |
||||
|
|
||||
|
namespace ControlCatalog; |
||||
|
|
||||
|
public class TransparentStyles : Styles; |
||||
Loading…
Reference in new issue