mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-11-27 23:19:13 +08:00
[Run] Fix plugins selection style (#30546)
* fix plugin selection style * addressed feedbacks and tweaks
This commit is contained in:
parent
ccd401fc16
commit
740299189a
@ -108,7 +108,7 @@
|
|||||||
Grid.Column="1"
|
Grid.Column="1"
|
||||||
Margin="12,0,0,0"
|
Margin="12,0,0,0"
|
||||||
VerticalAlignment="Center"
|
VerticalAlignment="Center"
|
||||||
Foreground="{DynamicResource TextFillColorSecondaryBrush}"
|
Foreground="{DynamicResource TextFillColorPrimaryBrush}"
|
||||||
Text="{Binding Plugin.Description}"
|
Text="{Binding Plugin.Description}"
|
||||||
TextTrimming="CharacterEllipsis"
|
TextTrimming="CharacterEllipsis"
|
||||||
TextWrapping="Wrap" />
|
TextWrapping="Wrap" />
|
||||||
|
@ -5,13 +5,8 @@
|
|||||||
|
|
||||||
<core:Double x:Key="TitleFontSize">16</core:Double>
|
<core:Double x:Key="TitleFontSize">16</core:Double>
|
||||||
|
|
||||||
<!-- This removes the selection state of the default WpfUI ListViewItemStyle -->
|
|
||||||
<Style x:Key="PluginsListViewItemStyle" TargetType="{x:Type ListViewItem}">
|
<Style x:Key="PluginsListViewItemStyle" TargetType="{x:Type ListViewItem}">
|
||||||
<Setter Property="Foreground">
|
<Setter Property="Foreground" Value="{DynamicResource ListViewItemForeground}" />
|
||||||
<Setter.Value>
|
|
||||||
<SolidColorBrush Color="{DynamicResource TextFillColorPrimary}" />
|
|
||||||
</Setter.Value>
|
|
||||||
</Setter>
|
|
||||||
<Setter Property="Background" Value="Transparent" />
|
<Setter Property="Background" Value="Transparent" />
|
||||||
<Setter Property="Border.CornerRadius" Value="{DynamicResource ControlCornerRadius}" />
|
<Setter Property="Border.CornerRadius" Value="{DynamicResource ControlCornerRadius}" />
|
||||||
<Setter Property="Margin" Value="0,0,0,2" />
|
<Setter Property="Margin" Value="0,0,0,2" />
|
||||||
@ -31,35 +26,24 @@
|
|||||||
<ContentPresenter Margin="{TemplateBinding Padding}" />
|
<ContentPresenter Margin="{TemplateBinding Padding}" />
|
||||||
<Rectangle
|
<Rectangle
|
||||||
x:Name="ActiveRectangle"
|
x:Name="ActiveRectangle"
|
||||||
Width="4"
|
Width="3"
|
||||||
Height="18"
|
Height="18"
|
||||||
Margin="0"
|
Margin="0"
|
||||||
HorizontalAlignment="Left"
|
HorizontalAlignment="Left"
|
||||||
VerticalAlignment="Center"
|
VerticalAlignment="Center"
|
||||||
|
Fill="{DynamicResource ListViewItemPillFillBrush}"
|
||||||
RadiusX="2"
|
RadiusX="2"
|
||||||
RadiusY="2"
|
RadiusY="2"
|
||||||
Visibility="Collapsed">
|
Visibility="Collapsed" />
|
||||||
<Rectangle.Fill>
|
|
||||||
<SolidColorBrush Color="{DynamicResource SystemAccentColorSecondary}" />
|
|
||||||
</Rectangle.Fill>
|
|
||||||
</Rectangle>
|
|
||||||
</Grid>
|
</Grid>
|
||||||
</Border>
|
</Border>
|
||||||
<ControlTemplate.Triggers>
|
<ControlTemplate.Triggers>
|
||||||
<Trigger Property="IsMouseOver" Value="True">
|
<Trigger Property="IsMouseOver" Value="True">
|
||||||
<Setter TargetName="Border" Property="Background">
|
<Setter TargetName="Border" Property="Background" Value="{DynamicResource SubtleFillColorTertiaryBrush}" />
|
||||||
<Setter.Value>
|
|
||||||
<SolidColorBrush Color="{DynamicResource SubtleFillColorSecondary}" />
|
|
||||||
</Setter.Value>
|
|
||||||
</Setter>
|
|
||||||
</Trigger>
|
</Trigger>
|
||||||
<Trigger Property="IsSelected" Value="True">
|
<Trigger Property="IsSelected" Value="True">
|
||||||
<Setter TargetName="ActiveRectangle" Property="Visibility" Value="Visible" />
|
<Setter TargetName="ActiveRectangle" Property="Visibility" Value="Visible" />
|
||||||
<Setter TargetName="Border" Property="Background">
|
<Setter TargetName="Border" Property="Background" Value="{DynamicResource ControlAltFillColorQuarternaryBrush}" />
|
||||||
<Setter.Value>
|
|
||||||
<SolidColorBrush Color="{DynamicResource SubtleFillColorSecondary}" />
|
|
||||||
</Setter.Value>
|
|
||||||
</Setter>
|
|
||||||
</Trigger>
|
</Trigger>
|
||||||
</ControlTemplate.Triggers>
|
</ControlTemplate.Triggers>
|
||||||
</ControlTemplate>
|
</ControlTemplate>
|
||||||
|
Loading…
Reference in New Issue
Block a user