mirror of
https://github.com/SourMesen/Mesen2.git
synced 2025-04-02 10:21:44 -04:00
UI: Game selection screen - Fixed unintended unclickable margin on both sides of the arrow buttons
This commit is contained in:
parent
e7b85cad36
commit
fee6f3922b
1 changed files with 5 additions and 5 deletions
|
@ -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" />
|
||||
|
|
Loading…
Add table
Reference in a new issue