Skip to content

Commit

Permalink
UI: Game selection screen - Fixed unintended unclickable margin on bo…
Browse files Browse the repository at this point in the history
…th sides of the arrow buttons
  • Loading branch information
SourMesen committed Nov 28, 2024
1 parent e7b85ca commit fee6f39
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions UI/Controls/StateGrid.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,25 +15,25 @@
x:Class="Mesen.Controls.StateGrid"
>
<UserControl.Resources>
<Color x:Key="ButtonBackgroundPointerOver">Transparent</Color>
<Color x:Key="ButtonBackgroundPointerOver">#2A2A2A</Color>
<Color x:Key="ButtonBackgroundPressed">Transparent</Color>
</UserControl.Resources>

<DockPanel Margin="5" DataContext="{Binding ElementName=root}">
<Panel DockPanel.Dock="Top">
<DockPanel DataContext="{Binding ElementName=root}">
<Panel DockPanel.Dock="Top" Margin="5" IsVisible="{Binding Title.Length}">
<TextBlock Text="{Binding Title}" FontSize="15" FontWeight="Medium" Foreground="White" TextAlignment="Center" />
<Button IsVisible="{Binding ShowClose}" Click="OnCloseClick" HorizontalAlignment="Right" Background="Transparent" BorderThickness="0" Padding="0" Margin="0 -2 0 -2" MinWidth="0">
<Image Source="/Assets/CloseWhite.png" Width="16" Height="16" />
</Button>
</Panel>
<Button DockPanel.Dock="Left" IsVisible="{Binding ShowArrows}" Background="Transparent" BorderThickness="0" Click="OnPrevPageClick" VerticalAlignment="Stretch" Height="NaN" MinWidth="0">
<Button DockPanel.Dock="Left" IsVisible="{Binding ShowArrows}" Background="Transparent" BorderThickness="0" Click="OnPrevPageClick" VerticalAlignment="Stretch" Height="NaN" MinWidth="0" Margin="0">
<Image Source="/Assets/MediaPlay.png" VerticalAlignment="Center" HorizontalAlignment="Left" Width="16">
<Image.RenderTransform>
<RotateTransform Angle="180" />
</Image.RenderTransform>
</Image>
</Button>
<Button DockPanel.Dock="Right" IsVisible="{Binding ShowArrows}" Background="Transparent" BorderThickness="0" Click="OnNextPageClick" VerticalAlignment="Stretch" Height="NaN" MinWidth="0">
<Button DockPanel.Dock="Right" IsVisible="{Binding ShowArrows}" Background="Transparent" BorderThickness="0" Click="OnNextPageClick" VerticalAlignment="Stretch" Height="NaN" MinWidth="0" Margin="0">
<Image Source="/Assets/MediaPlay.png" VerticalAlignment="Center" HorizontalAlignment="Right" Width="16" />
</Button>
<Grid Name="Grid" />
Expand Down

0 comments on commit fee6f39

Please sign in to comment.