Files @ a78dba5bed0e
Branch filter:

Location: ATITD-Tools/Desert-Paint-Codex/App.axaml

Jason Maltzen
Add stub view model code for recipe library (future feature work)
<Application xmlns="https://github.com/avaloniaui"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:local="using:DesertPaintCodex"
             xmlns:converters="clr-namespace:DesertPaintCodex.Converters"
             x:Class="DesertPaintCodex.App">
    <Application.DataTemplates>
        <local:ViewLocator/>
    </Application.DataTemplates>

    <Application.Resources>
        <!-- Converters -->
        <converters:PaintToBrushConverter   x:Key="paintToBrush" />
        <converters:EnumBooleanConverter    x:Key="enumBoolean" />
        <converters:NotEnumBooleanConverter x:Key="notEnumBoolean" />
        
        <!-- Icons and Art -->
        <PathGeometry x:Key="Icon_AddProfile">M28 6a6 6 0 1 1-6-6A6 6 0 0 1 28 6Zm2 18s0-10-8-10-8 10-8 10ZM12 10H8V6H4v4H0v4H4v4H8V14h4Z</PathGeometry>
        <PathGeometry x:Key="Icon_UpArrow">M 16 8 8 0 0 8 h 5 v 8 H 11 V 8 Z</PathGeometry>
        <PathGeometry x:Key="Icon_DownArrow">M 16 8 8 16 0 8 H 5 V 0 H 11 v 8 z</PathGeometry>
        <PathGeometry x:Key="Icon_Catalyst">M 9 8 A 1 1 0 0 1 8 9 1 1 0 0 1 7 8 1 1 0 0 1 8 7 1 1 0 0 1 9 8 Z m 5.62 8 C 12.62 16 8.88 13.22 5.83 10.17 2.15 6.5 -1.12 1.87 0.37 0.37 v 0 c 1.5 -1.49 6.13 1.79 9.8 5.46 3.67 3.67 7 8.3 5.46 9.8 A 1.38 1.38 0 0 1 14.62 16 Z M 1.08 1.08 c -0.5 0.5 1 3.91 5.46 8.38 4.46 4.47 7.88 6 8.38 5.46 0.5 -0.54 -1 -3.91 -5.46 -8.38 C 5 2.07 1.58 0.58 1.08 1.08 Z M 1.38 16 a 1.4 1.4 0 0 1 -1 -0.37 c -1.49 -1.5 1.78 -6.13 5.46 -9.8 3.68 -3.67 8.3 -6.95 9.8 -5.46 v 0 c 1.49 1.5 -1.78 6.13 -5.46 9.8 C 7.12 13.22 3.41 16 1.38 16 Z M 14.61 1 c -1 0 -4.14 1.61 -8.07 5.55 -4.48 4.47 -6 7.88 -5.46 8.38 0.54 0.5 3.91 -1 8.38 -5.46 4.47 -4.46 6 -7.88 5.46 -8.38 A 0.43 0.43 0 0 0 14.61 1 Z</PathGeometry>
        <DrawingImage x:Key="Image_Splash">
            <DrawingGroup>
                <GeometryDrawing Brush="#5E443F" Geometry="M 0 0 H 256 V 256 H 0 Z"/>
                <GeometryDrawing Brush="#9D9F37" Geometry="M192 136c-11.31-11.31 0-16 0-16s-16 0-16 16v16H160V120a32 32 0 0 0-64 0V256h64V184h32C208 184 208 152 192 136Z"/>
                <GeometryDrawing Brush="#E1AD56" Geometry="m 112 8 c 0 0 -48 32 -48 48 0 16 16 32 32 32 h 16 C 112 88 96 72 96 56 96 40 112 8 112 8 Z"/>
                <GeometryDrawing Brush="#CA7091" Geometry="M128 88s-16-16-16-32S128 8 128 8s16 32 16 48S128 88 128 88Z"/>
                <GeometryDrawing Brush="#80ABA4" Geometry="m 144 8 c 0 0 48 32 48 48 0 16 -16 32 -32 32 h -16 c 0 0 16 -16 16 -32 C 160 40 144 8 144 8 Z"/>
            </DrawingGroup>
        </DrawingImage>
    </Application.Resources>
    
    <Application.Styles>
        <StyleInclude Source="avares://Avalonia.Themes.Default/DefaultTheme.xaml"/>
        <StyleInclude Source="avares://Avalonia.Themes.Default/Accents/BaseDark.xaml"/>
        <StyleInclude Source="avares://Avalonia.Controls.DataGrid/Themes/Default.xaml"/>

        <Style Selector="Window">
            <Setter Property="Foreground" Value="#FFEDD4"/>
            <Setter Property="Background" Value="#312E2F"/>
            <Style.Resources>
                <SolidColorBrush x:Key="FlatBackgroundBrush" Color="#312E2F" />
                <SolidColorBrush x:Key="GutterBackgroundBrush" Color="#282627" />
            </Style.Resources>
        </Style>
        
        <Style Selector="TextBlock">
            <Setter Property="FontSize" Value="14"/>
        </Style>
        
        <Style Selector="TextBlock.BlockHeader">
            <Setter Property="FontSize" Value="16"/>
            <Setter Property="FontWeight" Value="Bold"/>
        </Style>

        <Style Selector=":is(Panel).Activity">
            <Setter Property="Margin" Value="15"/>
        </Style>
        
        <Style Selector="Border.ThinFrame">
            <Setter Property="BorderBrush" Value="#81776B"/>
            <Setter Property="BorderThickness" Value="1"/>
            <Setter Property="CornerRadius" Value="3"/>
            <Setter Property="Padding" Value="8"/>
        </Style>
        
        <Style Selector="Border.Help">
            <Setter Property="Background" Value="#515E2E"/>
            <Setter Property="BorderThickness" Value="2"/>
            <Setter Property="BorderBrush" Value="#FFEDD4"/>
            <Setter Property="Width" Value="24"/>
            <Setter Property="Height" Value="24"/>
        </Style>
        
        <Style Selector="Border.Help > TextBlock">
            <Setter Property="Foreground" Value="#FFEDD4"/>
            <Setter Property="FontWeight" Value="Black"/>
            <Setter Property="FontSize" Value="14"/>
            <Setter Property="HorizontalAlignment" Value="Center"/>
        </Style>
                
        <Style Selector="Path.AddProfile">
            <Setter Property="Data" Value="{StaticResource Icon_AddProfile}"/>
            <Setter Property="Fill" Value="#E1AD56"/>
        </Style>
        
        <Style Selector="Path.Catalyst">
            <Setter Property="Data" Value="{StaticResource Icon_Catalyst}"/>
            <Setter Property="Fill" Value="#FFEDD4"/>
        </Style>
        
        <Style Selector="Path.UpArrow">
            <Setter Property="Data" Value="{StaticResource Icon_UpArrow}"/>
        </Style>
        
        <Style Selector="Path.DownArrow">
            <Setter Property="Data" Value="{StaticResource Icon_DownArrow}"/>
        </Style>
        
        <Style Selector="Path.Red">
            <Setter Property="Fill" Value="#CA7091"/>
        </Style>
        
        <Style Selector="Path.Green">
            <Setter Property="Fill" Value="#9D9F37"/>
        </Style>
        
        <Style Selector="Path.Blue">
            <Setter Property="Fill" Value="#80ABA4"/>
        </Style>
        
        <Style Selector="Border.ReagentSwatch">
            <Setter Property="BorderBrush" Value="{DynamicResource GutterBackgroundBrush}"/>
            <Setter Property="BorderThickness" Value="0"/>
            <Setter Property="CornerRadius" Value="3"/>
            <Setter Property="Padding" Value="8"/>
            <Setter Property="Width" Value="30"/>
            <Setter Property="Height" Value="30"/>
        </Style>
        
    </Application.Styles>
    
</Application>