Skip to content

Commit 8b96265

Browse files
committed
Other: Shrinker.Avalonia - Move the GitHub project button.
...to make more space in the UI.
1 parent 77fb5f6 commit 8b96265

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

ShaderShrinker/Shrinker.Avalonia/Views/MainWindow.axaml

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,8 @@
4949

5050
<DialogHostAvalonia:DialogHost OverlayBackground="Black">
5151
<Controls:SnackbarHost HostName="Root" SnackbarHorizontalAlignment="Center">
52-
<Grid RowDefinitions="Auto,*,Auto" ColumnDefinitions="Auto,*">
53-
<!-- Project web link https://github.com/deanthecoder/GLSLShaderShrinker -->
54-
<Button Grid.Column="1" Grid.Row="0"
55-
Margin="16,2"
56-
HorizontalAlignment="Right" VerticalAlignment="Top"
57-
Content="Project Page"
58-
Command="{Binding LaunchProjectPage}"/>
59-
60-
<StackPanel Grid.Column="0" Grid.Row="1" VerticalAlignment="Top">
52+
<Grid RowDefinitions="*,Auto" ColumnDefinitions="Auto,*">
53+
<StackPanel Grid.Column="0" Grid.Row="0" VerticalAlignment="Top">
6154
<!-- Import Options -->
6255
<Border Classes="class" Margin="4,8,4,4">
6356
<StackPanel>
@@ -125,7 +118,7 @@
125118
</StackPanel>
126119

127120
<!-- Diff area -->
128-
<Border Grid.Row="1" Grid.Column="1"
121+
<Border Grid.Row="0" Grid.Column="1"
129122
BorderThickness="1" BorderBrush="{DynamicResource MaterialPrimaryLightBrush}"
130123
Margin="8" Padding="8">
131124
<Grid RowDefinitions="Auto,*" ColumnDefinitions="*,*">
@@ -221,7 +214,7 @@
221214
</Grid>
222215
</Border>
223216

224-
<Grid Grid.Row="2" Grid.Column="1" Margin="8,0" ColumnDefinitions="Auto,*,Auto">
217+
<Grid Grid.Row="1" Grid.Column="1" Margin="8,0" ColumnDefinitions="Auto,*,Auto">
225218
<TextBlock Grid.Column="0"
226219
Text="{Binding OriginalSize, StringFormat=Original: {0:N0} characters}"/>
227220

@@ -266,7 +259,7 @@
266259
</Grid>
267260

268261
<Border Grid.Row="0" Grid.Column="0"
269-
Grid.RowSpan="3" Grid.ColumnSpan="2"
262+
Grid.RowSpan="2" Grid.ColumnSpan="2"
270263
IsVisible="{Binding IsBusy}" Background="#A0000000">
271264
<Controls:Card HorizontalAlignment="Center" VerticalAlignment="Center">
272265
<StackPanel Margin="16,8">
@@ -276,6 +269,15 @@
276269
</StackPanel>
277270
</Controls:Card>
278271
</Border>
272+
273+
<!-- Project web link https://github.com/deanthecoder/GLSLShaderShrinker -->
274+
<Button Grid.Column="0" Grid.Row="2"
275+
Margin="2" Padding="2"
276+
HorizontalAlignment="Left" VerticalAlignment="Bottom"
277+
ToolTip.Tip="GitHub"
278+
Command="{Binding LaunchProjectPage}">
279+
<Avalonia:MaterialIcon Kind="Github"/>
280+
</Button>
279281
</Grid>
280282
</Controls:SnackbarHost>
281283
</DialogHostAvalonia:DialogHost>

0 commit comments

Comments
 (0)