This repository has been archived on 2026-01-20. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
SessionZero-Client/SessionZero/Styles/DeafaultStyles.axaml
2025-11-28 20:40:49 -06:00

83 lines
3.4 KiB
XML

<Styles xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Design.PreviewWith>
<Border Padding="20" Background="{DynamicResource PrimaryBackground}" Width="200">
<!-- Add Controls for Previewer Here -->
<StackPanel>
<Button HorizontalAlignment="Stretch">
<StackPanel Orientation="Horizontal">
<Label Classes="icon" Content="&#xe2c2;"></Label>
<Label Content="Home"></Label>
</StackPanel>
</Button>
<Button Classes="icon-only">
<Label Classes="icon-only" Content="&#xe270;"></Label>
</Button>
</StackPanel>
</Border>
</Design.PreviewWith>
<!-- Add Styles Here -->
<Style Selector="Window">
<Setter Property="FontFamily" Value="{DynamicResource FreeSerif}"></Setter>
</Style>
<Style Selector="Button.icon-only">
<Setter Property="Background" Value="Transparent"></Setter>
<Setter Property="Padding" Value="0 0 0 0"></Setter>
</Style>
<Style Selector="Button">
<!-- Fix for presumed bug in baseline for custom fonts -->
<Setter Property="Padding" Value="10 8 10 5"></Setter>
<Setter Property="Foreground" Value="{DynamicResource PrimaryText}"></Setter>
<Setter Property="Background" Value="{DynamicResource PrimaryButton}"></Setter>
<Setter Property="FontSize" Value="15"></Setter>
</Style>
<Style Selector="Button /template/ ContentPresenter">
<Setter Property="Transitions">
<Transitions>
<BrushTransition Property="Background" Duration="0:0:0.1"></BrushTransition>
</Transitions>
</Setter>
</Style>
<Style Selector="Label.icon">
<Setter Property="FontFamily" Value="{DynamicResource PhosphorFill}"></Setter>
</Style>
<Style Selector="Button.icon-only Label">
<Setter Property="FontFamily" Value="{DynamicResource PhosphorFill}"></Setter>
</Style>
<Style Selector="Button.icon-only /template/ ContentPresenter">
<Setter Property="RenderTransform" Value="scale(1)"></Setter>
<Setter Property="Transitions">
<Transitions>
<TransformOperationsTransition Property="RenderTransform" Duration="0:0:0.1"></TransformOperationsTransition>
</Transitions>
</Setter>
</Style>
<Style Selector="Button.icon-only:pointerover Label.icon-only">
<Setter Property="FontFamily" Value="{DynamicResource Phosphor}"></Setter>
<Setter Property="FontSize" Value="20"></Setter>
</Style>
<Style Selector="Button:pointerover /template/ ContentPresenter">
<Setter Property="Foreground" Value="{DynamicResource PrimaryButtonHoverText}"></Setter>
<Setter Property="Background" Value="{DynamicResource PrimaryButtonHover}"></Setter>
</Style>
<Style Selector="Button.icon-only:pointerover /template/ ContentPresenter">
<Setter Property="Background" Value="Transparent"></Setter>
<Setter Property="RenderTransform" Value="scale(1.1)"></Setter>
</Style>
<Style Selector="Button.icon-only:pointerover Label">
<Setter Property="FontFamily" Value="{DynamicResource PhosphorFill}"></Setter>
</Style>
</Styles>