mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-02-23 19:49:43 +01:00
49 lines
2.3 KiB
XML
49 lines
2.3 KiB
XML
<ResourceDictionary
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:local="using:KeyboardManagerEditorUI.Controls">
|
|
|
|
<Style BasedOn="{StaticResource DefaultIconLabelControlStyle}" TargetType="local:IconLabelControl" />
|
|
|
|
<Style x:Key="DefaultIconLabelControlStyle" TargetType="local:IconLabelControl">
|
|
<Setter Property="IsTabStop" Value="False" />
|
|
<Setter Property="FontSize" Value="14" />
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="local:IconLabelControl">
|
|
<Grid
|
|
Padding="{TemplateBinding Padding}"
|
|
Background="{TemplateBinding Background}"
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
BorderThickness="{TemplateBinding BorderThickness}"
|
|
ColumnSpacing="4"
|
|
CornerRadius="{TemplateBinding CornerRadius}">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<FontIcon
|
|
x:Name="TypeIcon"
|
|
Grid.Column="0"
|
|
VerticalAlignment="Center"
|
|
FontFamily="{ThemeResource SymbolThemeFontFamily}"
|
|
FontSize="{TemplateBinding FontSize}"
|
|
Foreground="{ThemeResource AccentTextFillColorPrimaryBrush}" />
|
|
|
|
<TextBlock
|
|
x:Name="LabelText"
|
|
Grid.Column="1"
|
|
Margin="0,-1,0,0"
|
|
VerticalAlignment="Center"
|
|
FontSize="{TemplateBinding FontSize}"
|
|
Foreground="{TemplateBinding Foreground}"
|
|
Text="{TemplateBinding Label}"
|
|
TextTrimming="CharacterEllipsis" />
|
|
</Grid>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
</ResourceDictionary>
|