Files
@ 35683a714f6b
Branch filter:
Location: ATITD-Tools/Desert-Paint-Codex/Views/MainWindow.axaml
35683a714f6b
6.6 KiB
text/plain
Added tag R_T10_1.0 for changeset f419334a476f
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 | <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>
<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>
<MenuItem Header="Export for PracticalPaint..." Command="{Binding ExportForPP}">
<ToolTip.Tip>
Will generate a Practical Paint reactions file from the current profile.
</ToolTip.Tip>
</MenuItem>
</MenuItem>
<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>
<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>
|