Skip to content

Commit 75b10a9

Browse files
committed
Moved VmPanel back next to the editor.
1 parent cd4d6b7 commit 75b10a9

4 files changed

Lines changed: 10 additions & 6 deletions

File tree

src/EditorPart.axaml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
</Grid>
5757
</Border>
5858
<!-- MAIN CONTENT -->
59-
<Grid Grid.Row="1" ColumnDefinitions="260,5,*,">
59+
<Grid Grid.Row="1" ColumnDefinitions="260,5,*">
6060
<!-- BACKGROUND -->
6161
<Grid.Background>
6262
<ImageBrush Source="avares://PaintPower/src/Assets/Background.png" Stretch="None" TileMode="Tile" AlignmentX="Left" AlignmentY="Top" DestinationRect="0,0,10,10" />
@@ -74,15 +74,19 @@
7474
</Grid>
7575
<!-- SPLITTER between LEFT and CENTER -->
7676
<GridSplitter Grid.Column="1" Width="5" Background="#505050" ResizeDirection="Columns" ResizeBehavior="PreviousAndNext" />
77-
<Grid Grid.Row="2" RowDefinitions="30,*" Grid.Column="2">
77+
<Grid RowDefinitions="30,*" Grid.Column="2">
7878
<!-- Status Bar -->
7979
<Border Grid.Row="0" Background="#c4c4c4" Margin="3">
8080
<StackPanel Orientation="Horizontal" Margin="2" Background="#e0e0e0">
8181
<TextBlock x:Name="StatusBarText" Text="Ready" Grid.Column="0" Margin="3" />
8282
</StackPanel>
8383
</Border>
8484
<!-- OUTER CENTER: Sprite Editor Host -->
85-
<ContentControl x:Name="CenterHost" Grid.Row="1" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" />
85+
<Grid Grid.Row="1" ColumnDefinitions="*,5,*">
86+
<ContentControl x:Name="CenterHost" Grid.Row="0" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" />
87+
<GridSplitter Grid.Column="1" Width="5" Background="#505050" ResizeDirection="Columns" ResizeBehavior="PreviousAndNext" />
88+
<vm:VmPanel Grid.Column="2" />
89+
</Grid>
8690
</Grid>
8791
</Grid>
8892
</Grid>

src/Editors/ScriptEditor.axaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
<Grid>
77
<Grid.Background>
8-
<ImageBrush Source="avares://PaintPower/Assets/Background.png"
8+
<ImageBrush Source="avares://PaintPower/src/Assets/Background.png"
99
Stretch="None"
1010
TileMode="Tile"
1111
DestinationRect="0,0,10,10" />

src/PaintPower_Engine.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -699,7 +699,7 @@ public void HandleKeyDown(KeyEventArgs e)
699699
{ Close(); KeyPress.RegisterKeyUp(e.Key); }
700700

701701
if (SKeyPress.combo(e, "ctrl", "w"))
702-
{ CloseCurrentEditor(); KeyPress.RegisterKeyUp(e.Key); };
702+
{ CloseEditor(); KeyPress.RegisterKeyUp(e.Key); };
703703

704704
}
705705

src/VmPanel/VmPanel.axaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<UserControl xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" x:Class="PaintPower.VMPanel.VmPanel" xmlns:vm="clr-namespace:PaintPower.VMPanel">
22
<Grid>
33
<Grid.Background>
4-
<ImageBrush Source="avares://PaintPower/Assets/Background Dark.png" Stretch="None" TileMode="Tile" DestinationRect="0,0,10,10" />
4+
<ImageBrush Source="avares://PaintPower/src/Assets/Background Dark.png" Stretch="None" TileMode="Tile" DestinationRect="0,0,10,10" />
55
</Grid.Background>
66
<Rectangle Fill="#80000000" />
77
<Border Padding="10">

0 commit comments

Comments
 (0)