|
94 | 94 | <Setter Property="Margin" Value="0,5,0,0" />
|
95 | 95 | <Setter Property="Padding" Value="0,15,0,15" />
|
96 | 96 | <Setter Property="SnapsToDevicePixels" Value="True" />
|
97 |
| - |
98 | 97 | </Style>
|
99 | 98 | <Style x:Key="SettingTitleLabel" TargetType="{x:Type TextBlock}">
|
100 | 99 | <Setter Property="Foreground" Value="{DynamicResource Color05B}" />
|
|
262 | 261 | </Setter>
|
263 | 262 | </Style>
|
264 | 263 |
|
265 |
| - <!-- Plugin Store Item when Selected layout for nothing --> |
266 |
| - <Style x:Key="StoreItem" TargetType="{x:Type ToggleButton}" /> |
267 |
| - |
268 | 264 | <Style x:Key="PluginList" TargetType="ListBoxItem">
|
269 | 265 | <Setter Property="Background" Value="{DynamicResource Color00B}" />
|
270 | 266 | <Setter Property="Padding" Value="0,0,0,0" />
|
|
400 | 396 | x:Key="StoreListStyle"
|
401 | 397 | BasedOn="{StaticResource {x:Type ListBox}}"
|
402 | 398 | TargetType="ListBox">
|
| 399 | + <Setter Property="Background" Value="{DynamicResource Color01B}" /> |
403 | 400 | <Style.Triggers>
|
404 | 401 | <DataTrigger Binding="{Binding RelativeSource={x:Static RelativeSource.Self}, Path=Items.Count}" Value="0">
|
405 | 402 | <Setter Property="Template">
|
|
1044 | 1041 | <ListBox
|
1045 | 1042 | Name="Plugins"
|
1046 | 1043 | Width="Auto"
|
1047 |
| - Margin="0,0,0,0" |
| 1044 | + Margin="5,0,0,0" |
1048 | 1045 | Padding="0,0,7,0"
|
1049 | 1046 | HorizontalAlignment="Stretch"
|
1050 | 1047 | Background="{DynamicResource Color01B}"
|
|
1534 | 1531 |
|
1535 | 1532 | <ListView.ItemTemplate>
|
1536 | 1533 | <DataTemplate>
|
1537 |
| - <!-- Hover Layout Style --> |
| 1534 | + <DataTemplate.Resources> |
| 1535 | + <Style x:Key="StoreListItemBtnStyle" TargetType="Button"> |
| 1536 | + <Setter Property="Template"> |
| 1537 | + <Setter.Value> |
| 1538 | + <ControlTemplate TargetType="Button"> |
| 1539 | + <Border |
| 1540 | + x:Name="Background" |
| 1541 | + Background="{DynamicResource Color00B}" |
| 1542 | + BorderBrush="{DynamicResource Color03B}" |
| 1543 | + BorderThickness="1" |
| 1544 | + CornerRadius="4" |
| 1545 | + SnapsToDevicePixels="True"> |
| 1546 | + <Border |
| 1547 | + x:Name="Border" |
| 1548 | + Padding="{TemplateBinding Padding}" |
| 1549 | + BorderThickness="1" |
| 1550 | + CornerRadius="4"> |
| 1551 | + <ContentPresenter |
| 1552 | + x:Name="ContentPresenter" |
| 1553 | + HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" |
| 1554 | + VerticalAlignment="{TemplateBinding VerticalContentAlignment}" |
| 1555 | + Focusable="False" |
| 1556 | + RecognizesAccessKey="True" |
| 1557 | + SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" /> |
| 1558 | + </Border> |
| 1559 | + </Border> |
| 1560 | + <ControlTemplate.Triggers> |
| 1561 | + <Trigger Property="IsMouseOver" Value="True"> |
| 1562 | + <Setter TargetName="Background" Property="Background" Value="{DynamicResource Color07B}" /> |
| 1563 | + </Trigger> |
| 1564 | + <Trigger Property="IsPressed" Value="True"> |
| 1565 | + <Setter TargetName="Background" Property="Background" Value="{DynamicResource Color07B}" /> |
| 1566 | + </Trigger> |
| 1567 | + </ControlTemplate.Triggers> |
| 1568 | + </ControlTemplate> |
| 1569 | + </Setter.Value> |
| 1570 | + </Setter> |
| 1571 | + </Style> |
| 1572 | + </DataTemplate.Resources> |
1538 | 1573 | <Button
|
1539 | 1574 | Name="StoreListItem"
|
1540 | 1575 | Margin="0"
|
|
1545 | 1580 | VerticalContentAlignment="Stretch"
|
1546 | 1581 | BorderThickness="0"
|
1547 | 1582 | Click="StoreListItem_Click"
|
1548 |
| - FocusVisualStyle="{StaticResource StoreItemFocusVisualStyleKey}"> |
| 1583 | + FocusVisualStyle="{StaticResource StoreItemFocusVisualStyleKey}" |
| 1584 | + Style="{DynamicResource StoreListItemBtnStyle}"> |
1549 | 1585 | <ui:FlyoutService.Flyout>
|
1550 | 1586 | <ui:Flyout x:Name="InstallFlyout" Placement="Bottom">
|
1551 | 1587 | <Grid MinWidth="200">
|
|
0 commit comments