mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-11-01 13:13:21 -07:00
ux: Use RepeatButton instead of Button to make ScrollIndicator support PointerPress operation
This commit is contained in:
parent
0fcef2343a
commit
ed680bf813
2 changed files with 7 additions and 7 deletions
|
@ -230,16 +230,16 @@
|
|||
<Setter Property="Background" Value="Red"/>
|
||||
</Style>
|
||||
|
||||
<Style Selector="Button.icon_button">
|
||||
<Style Selector="Button.icon_button, RepeatButton.icon_button">
|
||||
<Setter Property="BorderThickness" Value="0"/>
|
||||
<Setter Property="Background" Value="Transparent"/>
|
||||
<Setter Property="VerticalAlignment" Value="Center"/>
|
||||
</Style>
|
||||
<Style Selector="Button.icon_button /template/ ContentPresenter#PART_ContentPresenter">
|
||||
<Style Selector="Button.icon_button /template/ ContentPresenter#PART_ContentPresenter, RepeatButton.icon_button /template/ ContentPresenter#PART_ContentPresenter">
|
||||
<Setter Property="Background" Value="Transparent"/>
|
||||
<Setter Property="Opacity" Value="0.8"/>
|
||||
</Style>
|
||||
<Style Selector="Button.icon_button:pointerover /template/ ContentPresenter#PART_ContentPresenter">
|
||||
<Style Selector="Button.icon_button:pointerover /template/ ContentPresenter#PART_ContentPresenter, RepeatButton.icon_button:pointerover /template/ ContentPresenter#PART_ContentPresenter">
|
||||
<Setter Property="Opacity" Value="1"/>
|
||||
</Style>
|
||||
|
||||
|
|
|
@ -86,9 +86,9 @@
|
|||
|
||||
<!-- Pages Tabs-->
|
||||
<Grid x:Name="launcherTabsContainer" Grid.Column="1" Height="30" ColumnDefinitions="Auto,*,Auto" VerticalAlignment="Bottom" SizeChanged="UpdateScrollIndicator">
|
||||
<Button x:Name="leftScrollIndicator" Grid.Column="0" Classes="icon_button" Width="18" Height="30" Click="ScrollTabsLeft">
|
||||
<RepeatButton x:Name="leftScrollIndicator" Grid.Column="0" Classes="icon_button" Width="18" Height="30" Click="ScrollTabsLeft">
|
||||
<Path Width="8" Height="14" Stretch="Fill" Data="{StaticResource Icons.TriangleLeft}"/>
|
||||
</Button>
|
||||
</RepeatButton>
|
||||
|
||||
<ScrollViewer Grid.Column="1"
|
||||
x:Name="launcherTabsScroller"
|
||||
|
@ -241,9 +241,9 @@
|
|||
</StackPanel>
|
||||
</ScrollViewer>
|
||||
|
||||
<Button x:Name="rightScrollIndicator" Grid.Column="2" Classes="icon_button" Width="18" Height="30" Click="ScrollTabsRight">
|
||||
<RepeatButton x:Name="rightScrollIndicator" Grid.Column="2" Classes="icon_button" Width="18" Height="30" Click="ScrollTabsRight">
|
||||
<Path Width="8" Height="14" Stretch="Fill" Data="{StaticResource Icons.TriangleRight}"/>
|
||||
</Button>
|
||||
</RepeatButton>
|
||||
</Grid>
|
||||
|
||||
<!-- Caption Buttons (Windows/Linux)-->
|
||||
|
|
Loading…
Reference in a new issue