qamp/Qrakhen.Qamp.Editor/MainWindow.xaml

107 lines
4.5 KiB
XML

<Window x:Class="Qrakhen.Qamp.Editor.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:Qrakhen.Qamp.Editor"
xmlns:vm="clr-namespace:Qrakhen.Qamp.Editor.ViewModel"
xmlns:controls="clr-namespace:Qrakhen.Qamp.Editor.Controls"
mc:Ignorable="d"
Background="#161718"
d:DataContext="{d:DesignInstance Type=vm:MainViewModel}"
Title="MainWindow" Height="640" Width="920">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="32" />
<RowDefinition Height="*" />
<RowDefinition Height="18" />
</Grid.RowDefinitions>
<Grid Grid.Row="0"
Background="#141516">
<Border BorderBrush="#444648"
BorderThickness="0,0,0,1">
<Menu Background="#141516"
VerticalAlignment="Stretch"
VerticalContentAlignment="Center"
Height="32">
<MenuItem Header="File"
Height="32"
Foreground="#fefefe">
<MenuItem></MenuItem>
<MenuItem></MenuItem>
<MenuItem></MenuItem>
<MenuItem></MenuItem>
<MenuItem></MenuItem>
</MenuItem>
<MenuItem Header="Fun" Foreground="#fefefe">
</MenuItem>
<MenuItem Header="Run" Foreground="#fefefe">
</MenuItem>
</Menu>
</Border>
</Grid>
<Grid Grid.Row="2"
Background="#141516">
<Border BorderBrush="#444648"
BorderThickness="0,1,0,0">
<Label Foreground="#80efefef"
FontSize="10"
Padding="2">Fun &amp; Status</Label>
</Border>
</Grid>
<Grid Grid.Row="1">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"
MinWidth="8" />
<ColumnDefinition Width="5*"
MinWidth="8" />
</Grid.ColumnDefinitions>
<Grid Grid.Column="0" Background="#1c1d1e">
</Grid>
<GridSplitter Grid.Column="0"
ResizeDirection="Columns"
Width="5"
BorderBrush="#444648"
BorderThickness="1,0,1,0"
Margin="0,-1,0,-1"
Background="#141516" />
<Grid Grid.Column="1">
<Grid.RowDefinitions>
<RowDefinition Height="5*"
MinHeight="8" />
<RowDefinition Height="*"
MinHeight="8" />
</Grid.RowDefinitions>
<Grid Grid.Row="0">
<controls:EditorFrame DataContext="{Binding EditorFrame}" />
</Grid>
<GridSplitter Grid.Row="0"
ResizeDirection="Rows"
HorizontalAlignment="Stretch"
VerticalAlignment="Bottom"
Height="5"
Margin="-1,0,0,0"
BorderBrush="#444648"
BorderThickness="0,1,0,1"
Background="#141516" />
<Grid Grid.Row="1" Background="#1e1f20">
<ScrollViewer VerticalScrollBarVisibility="Auto">
<TextBlock Background="#202122"
Foreground="#32ef64"
Padding="4"
Text="{Binding RunnerOutput}"
FontFamily="Consolas"></TextBlock>
</ScrollViewer>
</Grid>
</Grid>
</Grid>
</Grid>
<Window.InputBindings>
<KeyBinding Key="F5" Command="{Binding RunCommand}" />
<KeyBinding Key="S" Modifiers="Ctrl" Command="{Binding SaveCommand}" />
</Window.InputBindings>
</Window>