2026-02-12 16:45:44 +01:00
|
|
|
<ResourceDictionary
|
2022-11-23 19:57:09 +01:00
|
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
2021-10-19 13:44:13 +02:00
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
2026-02-12 16:45:44 +01:00
|
|
|
xmlns:controls="using:Microsoft.PowerToys.Common.UI.Controls">
|
2021-10-19 13:44:13 +02:00
|
|
|
|
2026-02-11 23:00:11 +01:00
|
|
|
<Style BasedOn="{StaticResource DefaultIsEnabledTextBlockStyle}" TargetType="controls:IsEnabledTextBlock" />
|
|
|
|
|
|
2024-01-12 18:01:40 +01:00
|
|
|
<Style x:Key="DefaultIsEnabledTextBlockStyle" TargetType="controls:IsEnabledTextBlock">
|
2021-10-19 13:44:13 +02:00
|
|
|
<Setter Property="Foreground" Value="{ThemeResource DefaultTextForegroundThemeBrush}" />
|
2021-10-22 17:15:17 +02:00
|
|
|
<Setter Property="IsTabStop" Value="False" />
|
2021-10-19 13:44:13 +02:00
|
|
|
<Setter Property="Template">
|
|
|
|
|
<Setter.Value>
|
2024-01-12 18:01:40 +01:00
|
|
|
<ControlTemplate TargetType="controls:IsEnabledTextBlock">
|
2021-10-19 13:44:13 +02:00
|
|
|
<Grid>
|
2022-11-23 19:57:09 +01:00
|
|
|
<TextBlock
|
|
|
|
|
x:Name="Label"
|
|
|
|
|
FontFamily="{TemplateBinding FontFamily}"
|
|
|
|
|
FontSize="{TemplateBinding FontSize}"
|
|
|
|
|
FontWeight="{TemplateBinding FontWeight}"
|
|
|
|
|
Foreground="{TemplateBinding Foreground}"
|
2026-02-11 23:00:11 +01:00
|
|
|
IsTextSelectionEnabled="{TemplateBinding IsTextSelectionEnabled}"
|
2022-11-23 19:57:09 +01:00
|
|
|
Text="{TemplateBinding Text}"
|
|
|
|
|
TextWrapping="WrapWholeWords" />
|
2021-10-19 13:44:13 +02:00
|
|
|
<VisualStateManager.VisualStateGroups>
|
|
|
|
|
<VisualStateGroup x:Name="CommonStates">
|
2022-11-23 19:57:09 +01:00
|
|
|
<VisualState x:Name="Normal" />
|
2021-10-19 13:44:13 +02:00
|
|
|
<VisualState x:Name="Disabled">
|
|
|
|
|
<VisualState.Setters>
|
|
|
|
|
<Setter Target="Label.Foreground" Value="{ThemeResource TextFillColorDisabledBrush}" />
|
|
|
|
|
</VisualState.Setters>
|
|
|
|
|
</VisualState>
|
|
|
|
|
</VisualStateGroup>
|
|
|
|
|
</VisualStateManager.VisualStateGroups>
|
|
|
|
|
</Grid>
|
|
|
|
|
</ControlTemplate>
|
|
|
|
|
</Setter.Value>
|
|
|
|
|
</Setter>
|
|
|
|
|
</Style>
|
2026-02-12 16:45:44 +01:00
|
|
|
|
2022-11-23 19:57:09 +01:00
|
|
|
<Style
|
|
|
|
|
x:Key="SecondaryIsEnabledTextBlockStyle"
|
2023-08-11 08:54:31 +01:00
|
|
|
BasedOn="{StaticResource DefaultIsEnabledTextBlockStyle}"
|
2024-01-12 18:01:40 +01:00
|
|
|
TargetType="controls:IsEnabledTextBlock">
|
2021-12-27 14:29:01 +01:00
|
|
|
<Setter Property="Foreground" Value="{ThemeResource TextFillColorSecondaryBrush}" />
|
2026-02-12 16:45:44 +01:00
|
|
|
<Setter Property="FontSize" Value="12" />
|
2021-12-27 14:29:01 +01:00
|
|
|
</Style>
|
2026-02-12 16:45:44 +01:00
|
|
|
|
2021-10-19 13:44:13 +02:00
|
|
|
</ResourceDictionary>
|