|
1477 | 1477 | HorizontalAlignment="Stretch"
|
1478 | 1478 | Style="{DynamicResource SettingGroupBox}">
|
1479 | 1479 | <ListBox
|
1480 |
| - Padding="18" |
| 1480 | + Margin="12,12,12,12" |
1481 | 1481 | HorizontalAlignment="Center"
|
1482 | 1482 | HorizontalContentAlignment="Center"
|
1483 | 1483 | ui:ScrollViewerHelper.AutoHideScrollBars="True"
|
|
1488 | 1488 | SelectedItem="{Binding SelectedTheme}">
|
1489 | 1489 | <ListBox.ItemContainerStyle>
|
1490 | 1490 | <Style TargetType="ListBoxItem">
|
1491 |
| - <Style.Triggers> |
1492 |
| - <Trigger Property="IsSelected" Value="True"> |
1493 |
| - <Setter Property="FontWeight" Value="Bold" /> |
1494 |
| - <Setter Property="Background" Value="#cccccc" /> |
1495 |
| - <Setter Property="Foreground" Value="Black" /> |
1496 |
| - <Setter Property="Margin" Value="12,8,12,8" /> |
1497 |
| - <Setter Property="BorderBrush" Value="#cccccc" /> |
1498 |
| - </Trigger> |
1499 |
| - <Trigger Property="IsMouseOver" Value="True"> |
1500 |
| - <Setter Property="Margin" Value="12,8,12,8" /> |
1501 |
| - <Setter Property="Foreground" Value="#3E99D1" /> |
1502 |
| - </Trigger> |
1503 |
| - <Trigger Property="IsMouseOver" Value="False"> |
1504 |
| - <Setter Property="Background" Value="#f3f3f3" /> |
1505 |
| - <Setter Property="Foreground" Value="Black" /> |
1506 |
| - <Setter Property="Margin" Value="12,8,12,8" /> |
1507 |
| - </Trigger> |
1508 |
| - </Style.Triggers> |
| 1491 | + <Setter Property="Background" Value="Transparent" /> |
| 1492 | + <Setter Property="HorizontalContentAlignment" Value="{Binding HorizontalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}" /> |
| 1493 | + <Setter Property="VerticalContentAlignment" Value="{Binding VerticalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}" /> |
| 1494 | + <Setter Property="Padding" Value="0,0,0,0" /> |
| 1495 | + <Setter Property="Margin" Value="4" /> |
| 1496 | + <Setter Property="Template"> |
| 1497 | + <Setter.Value> |
| 1498 | + <ControlTemplate TargetType="{x:Type ListBoxItem}"> |
| 1499 | + <Border |
| 1500 | + x:Name="Bd" |
| 1501 | + Padding="{TemplateBinding Padding}" |
| 1502 | + Background="#fefefe" |
| 1503 | + BorderBrush="#e5e5e5" |
| 1504 | + BorderThickness="1,1,1,0" |
| 1505 | + CornerRadius="4" |
| 1506 | + SnapsToDevicePixels="true"> |
| 1507 | + <Border |
| 1508 | + x:Name="Bd2" |
| 1509 | + BorderBrush="#d3d3d3" |
| 1510 | + BorderThickness="0,0,0,2" |
| 1511 | + CornerRadius="4"> |
| 1512 | + <ContentPresenter |
| 1513 | + HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" |
| 1514 | + VerticalAlignment="{TemplateBinding VerticalContentAlignment}" |
| 1515 | + SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" /> |
| 1516 | + </Border> |
| 1517 | + </Border> |
| 1518 | + <ControlTemplate.Triggers> |
| 1519 | + <Trigger Property="IsMouseOver" Value="true"> |
| 1520 | + <Setter TargetName="Bd" Property="Background" Value="#f6f6f6" /> |
| 1521 | + </Trigger> |
| 1522 | + <Trigger Property="IsSelected" Value="true"> |
| 1523 | + <Setter TargetName="Bd" Property="Background" Value="{DynamicResource ToggleSwitchFillOn}" /> |
| 1524 | + <Setter TargetName="Bd2" Property="BorderThickness" Value="0" /> |
| 1525 | + <Setter TargetName="Bd2" Property="TextElement.Foreground" Value="#ffffff" /> |
| 1526 | + </Trigger> |
| 1527 | + </ControlTemplate.Triggers> |
| 1528 | + </ControlTemplate> |
| 1529 | + </Setter.Value> |
| 1530 | + </Setter> |
1509 | 1531 | </Style>
|
1510 | 1532 | </ListBox.ItemContainerStyle>
|
1511 | 1533 | <ListBox.Template>
|
|
1518 | 1540 | <DataTemplate>
|
1519 | 1541 | <Grid
|
1520 | 1542 | Width="Auto"
|
1521 |
| - Height="40" |
| 1543 | + Height="34" |
1522 | 1544 | Margin="0,0,0,0">
|
1523 | 1545 | <TextBlock
|
1524 | 1546 | Margin="0"
|
1525 |
| - Padding="10" |
| 1547 | + Padding="14,12,14,12" |
1526 | 1548 | HorizontalAlignment="Center"
|
1527 | 1549 | VerticalAlignment="Center"
|
1528 | 1550 | Focusable="True"
|
1529 |
| - FontSize="13" |
| 1551 | + FontSize="12" |
1530 | 1552 | Text="{Binding}"
|
1531 | 1553 | TextWrapping="Wrap" />
|
1532 | 1554 | </Grid>
|
1533 | 1555 | </DataTemplate>
|
1534 | 1556 | </ListBox.ItemTemplate>
|
1535 | 1557 | <ListBox.ItemsPanel>
|
1536 | 1558 | <ItemsPanelTemplate>
|
1537 |
| - <WrapPanel HorizontalAlignment="Right" /> |
| 1559 | + <WrapPanel /> |
1538 | 1560 | </ItemsPanelTemplate>
|
1539 | 1561 | </ListBox.ItemsPanel>
|
1540 | 1562 | </ListBox>
|
|
0 commit comments