Files
lagerprogramm/App.axaml
joel.leirer fb1f90a9ca Added Slop
2026-08-25 17:14:54 +02:00

70 lines
2.6 KiB
XML

<Application xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:Lagerprogramm"
xmlns:sukiUi="clr-namespace:SukiUI;assembly=SukiUI"
x:Class="Lagerprogramm.App">
<Application.DataTemplates>
<local:ViewLocator/>
</Application.DataTemplates>
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceInclude Source="avares://Lagerprogramm/AppTheme.axaml" />
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Application.Resources>
<Application.Styles>
<sukiUi:SukiTheme ThemeColor="Blue" />
<Style Selector="TextBlock.header">
<Setter Property="FontWeight" Value="Bold" />
<Setter Property="FontSize" Value="16" />
</Style>
<Style Selector="TextBlock.subheader">
<Setter Property="FontWeight" Value="Bold" />
</Style>
<Style Selector="TextBlock.caption">
<Setter Property="FontSize" Value="11" />
<Setter Property="Opacity" Value="0.8" />
</Style>
<Style Selector="TextBlock.captionMuted">
<Setter Property="FontSize" Value="11" />
<Setter Property="Opacity" Value="0.6" />
</Style>
<Style Selector="TextBlock.captionMedium">
<Setter Property="FontSize" Value="11" />
<Setter Property="Opacity" Value="0.7" />
</Style>
<Style Selector="Button.navButton">
<Setter Property="Background" Value="{StaticResource ThemeSurfaceBrush}" />
<Setter Property="Foreground" Value="{StaticResource ThemeForegroundBrush}" />
<Setter Property="BorderBrush" Value="{StaticResource ThemeOutlineBrush}" />
<Setter Property="BorderThickness" Value="1" />
</Style>
<Style Selector="Button.navButton:pointerover, Button.navButton:focus">
<Setter Property="Background" Value="{StaticResource ThemeHighlightBrush}" />
<Setter Property="BorderBrush" Value="{StaticResource ThemeHighlightOutlineBrush}" />
<Setter Property="BorderThickness" Value="1" />
</Style>
<!-- Global button hover / focus overrides for template borders -->
<Style Selector="Button:pointerover /template/ Border">
<Setter Property="Background" Value="{StaticResource ThemeHighlightBrush}" />
<Setter Property="BorderBrush" Value="{StaticResource ThemeHighlightOutlineBrush}" />
</Style>
<Style Selector="Button:focus /template/ Border">
<Setter Property="BorderBrush" Value="{StaticResource ThemeHighlightOutlineBrush}" />
</Style>
</Application.Styles>
</Application>