Files @ 4778889395e8
Branch filter:

Location: ATITD-Tools/Desert-Paint-Codex/Views/MainWindow.axaml - annotation

Jason Maltzen
Change the displayed permeutation count to display using locale-specific number formatting (with comma / dot separators). Fix a crash when starting a new round of recipe generation after recipe generation completed during a previous run.
40eaee10ae56
40eaee10ae56
40eaee10ae56
40eaee10ae56
40eaee10ae56
40eaee10ae56
40eaee10ae56
99f3d61e20d7
40eaee10ae56
40eaee10ae56
40eaee10ae56
40eaee10ae56
40eaee10ae56
40eaee10ae56
40eaee10ae56
40eaee10ae56
40eaee10ae56
40eaee10ae56
40eaee10ae56
40eaee10ae56
40eaee10ae56
40eaee10ae56
40eaee10ae56
40eaee10ae56
40eaee10ae56
40eaee10ae56
40eaee10ae56
40eaee10ae56
40eaee10ae56
40eaee10ae56
40eaee10ae56
40eaee10ae56
40eaee10ae56
40eaee10ae56
40eaee10ae56
40eaee10ae56
40eaee10ae56
40eaee10ae56
40eaee10ae56
40eaee10ae56
40eaee10ae56
40eaee10ae56
40eaee10ae56
40eaee10ae56
40eaee10ae56
40eaee10ae56
40eaee10ae56
40eaee10ae56
40eaee10ae56
40eaee10ae56
40eaee10ae56
40eaee10ae56
40eaee10ae56
40eaee10ae56
40eaee10ae56
40eaee10ae56
40eaee10ae56
40eaee10ae56
40eaee10ae56
40eaee10ae56
40eaee10ae56
40eaee10ae56
40eaee10ae56
a5faa82faf6a
40eaee10ae56
40eaee10ae56
40eaee10ae56
40eaee10ae56
40eaee10ae56
40eaee10ae56
40eaee10ae56
40eaee10ae56
40eaee10ae56
40eaee10ae56
a5faa82faf6a
a5faa82faf6a
a5faa82faf6a
a5faa82faf6a
a5faa82faf6a
a5faa82faf6a
a5faa82faf6a
40eaee10ae56
40eaee10ae56
40eaee10ae56
40eaee10ae56
40eaee10ae56
a5faa82faf6a
40eaee10ae56
40eaee10ae56
40eaee10ae56
40eaee10ae56
40eaee10ae56
40eaee10ae56
40eaee10ae56
40eaee10ae56
40eaee10ae56
40eaee10ae56
40eaee10ae56
a5faa82faf6a
40eaee10ae56
40eaee10ae56
40eaee10ae56
40eaee10ae56
40eaee10ae56
40eaee10ae56
40eaee10ae56
40eaee10ae56
40eaee10ae56
40eaee10ae56
40eaee10ae56
40eaee10ae56
40eaee10ae56
40eaee10ae56
40eaee10ae56
40eaee10ae56
40eaee10ae56
40eaee10ae56
40eaee10ae56
40eaee10ae56
40eaee10ae56
40eaee10ae56
40eaee10ae56
40eaee10ae56
40eaee10ae56
40eaee10ae56
40eaee10ae56
40eaee10ae56
40eaee10ae56
40eaee10ae56
40eaee10ae56
40eaee10ae56
40eaee10ae56
40eaee10ae56
40eaee10ae56
40eaee10ae56
40eaee10ae56
40eaee10ae56
40eaee10ae56
40eaee10ae56
40eaee10ae56
40eaee10ae56
40eaee10ae56
40eaee10ae56
40eaee10ae56
40eaee10ae56
40eaee10ae56
40eaee10ae56
40eaee10ae56
40eaee10ae56
40eaee10ae56
<Window xmlns="https://github.com/avaloniaui"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:vm="using:DesertPaintCodex.ViewModels"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:views="clr-namespace:DesertPaintCodex.Views"
        mc:Ignorable="d" d:DesignWidth="640" d:DesignHeight="800"
        Width="640" Height="800" MinWidth="600" MinHeight="500" Topmost="True"
        x:Class="DesertPaintCodex.Views.MainWindow"
        Icon="/Assets/desert_paint_codex_icon.ico"
        Title="Desert Paint Codex">

    <Design.DataContext>
        <vm:MainWindowViewModel/>
    </Design.DataContext>
    
    <Window.DataContext>
        <vm:MainWindowViewModel/>
    </Window.DataContext>
    
    <Window.Styles>
        <!--
        <Style Selector="Menu">
            <Setter Property="Background" Value="#282828"/>
        </Style>
        -->
        <Style Selector="ContentControl">
            <Setter Property="Margin" Value="0 5 0 0"/>
        </Style>
        <Style Selector="TextBlock.StatusBar">
            <Setter Property="Margin" Value="5"/>
        </Style>
        <Style Selector="TabControl.ActivityPicker WrapPanel">
            <Setter Property="Background" Value="{DynamicResource GutterBackgroundBrush}"/>
        </Style>
    
        <Style Selector="TabControl.ActivityPicker">
            <Setter Property="Background" Value="{DynamicResource FlatBackgroundBrush}"/>
        </Style>
    
        <Style Selector="TabControl.ActivityPicker > TabItem">
            <Setter Property="Padding" Value="15 5"/>
        </Style>
    
        <Style Selector="TabControl.ActivityPicker > TabItem:pointerover">
            <Setter Property="Foreground" Value="#000000"/>
        </Style>

        <Style Selector="TabControl.ActivityPicker > TabItem:selected">
            <Setter Property="Background" Value="{DynamicResource FlatBackgroundBrush}"/>
            <Setter Property="Foreground" Value="#FFFFFF"/>
        </Style>

        <Style Selector="TabControl.ActivityPicker > TabItem:selected /template/ ContentPresenter#PART_ContentPresenter">
            <Setter Property="Background" Value="{DynamicResource FlagBackgroundBrush}"/>
        </Style>
    </Window.Styles>
    <Grid ColumnDefinitions="*" RowDefinitions="*">
        <DockPanel Name="Main" Grid.Row="0" Grid.Column="0">
            <Menu DockPanel.Dock="Top" Margin="0, 5">
                <MenuItem Header="_File">
                    <MenuItem Header="Profile">
                        <MenuItem Header="Manage Profiles..." Command="{Binding ManageProfiles}"></MenuItem>
                        <Separator/>
                        <MenuItem Header="Import Profile..." Command="{Binding ImportProfile}">
                            <ToolTip.Tip>
                                Will overwrite the current profile with a profile from a zipped folder.
                            </ToolTip.Tip>
                        </MenuItem>
                        <MenuItem Header="Export Profile..." Command="{Binding ExportProfile}">
                            <ToolTip.Tip>
                                Will export the current profile to a zipped folder.
                            </ToolTip.Tip>
                        </MenuItem>
                        <Separator/>
                        <MenuItem Header="Import PracticalPaint Reactions..." Command="{Binding ImportFromPP}">
                            <ToolTip.Tip>
                                Will import a Practical Paint reactions file, replacing this profile's reactions.
                            </ToolTip.Tip>
                        </MenuItem>
                        <MenuItem Header="Export PracticalPaint Reactions..." Command="{Binding ExportForPP}">
                            <ToolTip.Tip>
                                Will generate a Practical Paint reactions file from the current profile.
                            </ToolTip.Tip>
                        </MenuItem>
                    </MenuItem>
                    <Separator/>
                    <MenuItem Header="Recipes">
                        <MenuItem Header="Export Paint Recipes..." Command="{Binding ExportPaintRecipes}">
                            <ToolTip.Tip>
                                Exports recipes in Wiki table format.
                            </ToolTip.Tip>
                        </MenuItem>
                        <MenuItem Header="Export Ribbon Recipes..." Command="{Binding ExportRibbonRecipes}">
                            <ToolTip.Tip>
                                Exports recipes in Wiki table format.
                            </ToolTip.Tip>
                        </MenuItem>
                        <Separator/>
                        <MenuItem Header="Copy Paint Recipes to Clipboard" Command="{Binding CopyPaintRecipes}">
                            <ToolTip.Tip>
                                Copies recipes in Wiki table format.
                            </ToolTip.Tip>
                        </MenuItem>
                        <MenuItem Header="Copy Ribbon Recipes to Clipboard" Command="{Binding CopyRibbonRecipes}">
                            <ToolTip.Tip>
                                Copies recipes in Wiki table format.
                            </ToolTip.Tip>
                        </MenuItem>
                    </MenuItem>

                    <Separator/>

                    <MenuItem Header="Screen Settings..." Command="{Binding ShowScreenSettings}"></MenuItem>
                    <Separator/>

                    <MenuItem Header="Exit" Command="{Binding Exit}"></MenuItem>
                </MenuItem>

                <MenuItem Header="_Help">
                     <MenuItem Header="Documentation" Command="{Binding OpenBrowser}" CommandParameter="https://repos.malkyne.org/ATITD-Tools/Desert-Paint-Codex"></MenuItem>
                     <MenuItem Header="About..." Command="{Binding ShowAbout}"></MenuItem>
                </MenuItem>
            </Menu>
            
            <Border DockPanel.Dock="Top" BorderThickness="2" Background="{DynamicResource GutterBackgroundBrush}"></Border>


            <TextBlock DockPanel.Dock="Bottom" Classes="StatusBar"
                       Text="{Binding StatusText}"
                       HorizontalAlignment="Left" VerticalAlignment="Center" Height="18"/>
            
            <Border DockPanel.Dock="Bottom" BorderThickness="2" Background="{DynamicResource GutterBackgroundBrush}"></Border>
            
            <TabControl Classes="ActivityPicker">
                <TabItem Header="EXPERIMENT LOG" VerticalContentAlignment="Center">
                    <views:ExperimentLogView />
                </TabItem>
                <TabItem Header="SIMULATOR" VerticalContentAlignment="Center">
                    <views:SimulatorView />
                </TabItem>
                <TabItem Header="RECIPE GENERATOR" VerticalContentAlignment="Center">
                    <views:RecipeGeneratorView />
                </TabItem>
            </TabControl>
        </DockPanel>
    </Grid>
    

</Window>