mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-05 10:46:33 +02:00
* Unify exe/dll naming - PowerToys.Runner Align naming with other exes - PowerToys Runner -> PowerToys.Runner * Unify exe/dll naming - Microsoft.PowerToys.Common.UI Project name - Microsoft.PowerToys.Common.UI -> Common.UI dll name - Microsoft.PowerToys.Common.UI.dll -> PowerToys.Common.UI.dll * Unify exe/dll naming - Settings Project names - Microsoft.PowerToys.Settings* -> Settings* Dll names - Microsoft.PowerToys.Settings*.dll -> PowerToys.Settings*.dll * Revert file autoformat * [Docs] Update paths to settings projects/files * Fix tests - Update path
71 lines
3.8 KiB
XML
71 lines
3.8 KiB
XML
<ResourceDictionary
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:controls="using:Microsoft.PowerToys.Settings.UI.Controls">
|
|
|
|
<Style TargetType="controls:SettingsGroup">
|
|
<Setter Property="ItemsPanel">
|
|
<Setter.Value>
|
|
<ItemsPanelTemplate>
|
|
<StackPanel Orientation="Vertical"
|
|
Spacing="2"/>
|
|
</ItemsPanelTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
<Setter Property="IsTabStop" Value="False" />
|
|
<Setter Property="HorizontalAlignment" Value="Stretch" />
|
|
<Setter Property="HorizontalContentAlignment" Value="Stretch" />
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="controls:SettingsGroup">
|
|
<Grid HorizontalAlignment="Stretch">
|
|
<VisualStateManager.VisualStateGroups>
|
|
<VisualStateGroup x:Name="CommonStates">
|
|
<VisualState x:Name="Normal"/>
|
|
<VisualState x:Name="Disabled">
|
|
<VisualState.Setters>
|
|
<Setter Target="HeaderPresenter.Foreground" Value="{ThemeResource TextFillColorDisabledBrush}" />
|
|
<Setter Target="DescriptionPresenter.Foreground" Value="{ThemeResource TextFillColorDisabledBrush}" />
|
|
</VisualState.Setters>
|
|
</VisualState>
|
|
</VisualStateGroup>
|
|
</VisualStateManager.VisualStateGroups>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="Auto"/>
|
|
</Grid.RowDefinitions>
|
|
<TextBlock x:Name="HeaderPresenter"
|
|
Text="{TemplateBinding Header}"
|
|
Grid.Row="0"
|
|
Style="{ThemeResource BodyStrongTextBlockStyle}"
|
|
Margin="1,32,0,0"
|
|
AutomationProperties.HeadingLevel="Level2"/>
|
|
|
|
<ContentPresenter
|
|
x:Name="DescriptionPresenter"
|
|
Content="{TemplateBinding Description}"
|
|
TextWrapping="WrapWholeWords"
|
|
Margin="1,4,0,0"
|
|
Grid.Row="1"
|
|
Foreground="{ThemeResource TextFillColorSecondaryBrush}">
|
|
<ContentPresenter.Resources>
|
|
<Style TargetType="TextBlock" BasedOn="{StaticResource CaptionTextBlockStyle}">
|
|
<Style.Setters>
|
|
<Setter Property="TextWrapping" Value="WrapWholeWords"/>
|
|
</Style.Setters>
|
|
</Style>
|
|
<Style TargetType="HyperlinkButton" BasedOn="{StaticResource TextButtonStyle}">
|
|
<Style.Setters>
|
|
<Setter Property="Padding" Value="0,0,0,0"/>
|
|
</Style.Setters>
|
|
</Style>
|
|
</ContentPresenter.Resources>
|
|
</ContentPresenter>
|
|
<ItemsPresenter Grid.Row="2" Margin="0,8,0,0"/>
|
|
</Grid>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
</ResourceDictionary> |