2022-04-20 04:00:28 +08:00
|
|
|
<Application
|
2020-03-12 01:43:32 +08:00
|
|
|
x:Class="Microsoft.PowerToys.Settings.UI.App"
|
2020-03-07 09:46:51 +08:00
|
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
2022-11-24 02:57:09 +08:00
|
|
|
xmlns:controls="using:Microsoft.PowerToys.Settings.UI.Controls"
|
|
|
|
xmlns:converters="using:CommunityToolkit.WinUI.UI.Converters"
|
|
|
|
xmlns:labs="using:CommunityToolkit.Labs.WinUI">
|
2020-03-10 14:55:08 +08:00
|
|
|
<Application.Resources>
|
2020-03-12 01:43:32 +08:00
|
|
|
<ResourceDictionary>
|
|
|
|
<ResourceDictionary.MergedDictionaries>
|
2022-04-20 04:00:28 +08:00
|
|
|
<XamlControlsResources xmlns="using:Microsoft.UI.Xaml.Controls" />
|
2021-04-05 16:52:44 +08:00
|
|
|
<ResourceDictionary Source="/Controls/KeyVisual/KeyVisual.xaml" />
|
2021-10-19 19:44:13 +08:00
|
|
|
<ResourceDictionary Source="/Controls/IsEnabledTextBlock/IsEnabledTextBlock.xaml" />
|
2020-03-12 01:43:32 +08:00
|
|
|
<ResourceDictionary Source="/Styles/TextBlock.xaml" />
|
2022-11-24 02:57:09 +08:00
|
|
|
<ResourceDictionary Source="/Styles/Button.xaml" />
|
|
|
|
<ResourceDictionary Source="/Themes/Colors.xaml" />
|
|
|
|
<!-- Other merged dictionaries here -->
|
2020-03-12 01:43:32 +08:00
|
|
|
</ResourceDictionary.MergedDictionaries>
|
2021-08-24 01:48:52 +08:00
|
|
|
|
2022-11-24 02:57:09 +08:00
|
|
|
<!-- Converters -->
|
|
|
|
<converters:BoolToVisibilityConverter
|
|
|
|
x:Key="ReverseBoolToVisibilityConverter"
|
|
|
|
FalseValue="Visible"
|
|
|
|
TrueValue="Collapsed" />
|
|
|
|
<converters:BoolToVisibilityConverter
|
|
|
|
x:Key="BoolToVisibilityConverter"
|
|
|
|
FalseValue="Collapsed"
|
|
|
|
TrueValue="Visible" />
|
|
|
|
|
|
|
|
<converters:BoolToObjectConverter
|
|
|
|
x:Key="BoolToComboBoxIndexConverter"
|
|
|
|
FalseValue="0"
|
|
|
|
TrueValue="1" />
|
|
|
|
|
|
|
|
<converters:BoolToObjectConverter
|
|
|
|
x:Key="ReverseBoolToComboBoxIndexConverter"
|
|
|
|
FalseValue="1"
|
|
|
|
TrueValue="0" />
|
|
|
|
|
|
|
|
<converters:StringFormatConverter x:Key="StringFormatConverter" />
|
|
|
|
<converters:BoolNegationConverter x:Key="BoolNegationConverter" />
|
|
|
|
|
|
|
|
<!-- Overrides -->
|
2021-08-24 01:48:52 +08:00
|
|
|
<Thickness x:Key="InfoBarIconMargin">6,16,16,16</Thickness>
|
|
|
|
<Thickness x:Key="InfoBarContentRootPadding">16,0,0,0</Thickness>
|
|
|
|
<x:Double x:Key="SettingActionControlMinWidth">240</x:Double>
|
|
|
|
|
2022-11-24 02:57:09 +08:00
|
|
|
|
2021-12-20 20:15:08 +08:00
|
|
|
<Style TargetType="ListViewItem">
|
2021-08-24 01:48:52 +08:00
|
|
|
<Setter Property="Margin" Value="0,0,0,2" />
|
|
|
|
<Setter Property="Padding" Value="0,0,0,0" />
|
|
|
|
<Setter Property="HorizontalContentAlignment" Value="Stretch" />
|
2022-11-24 02:57:09 +08:00
|
|
|
<Setter Property="IsTabStop" Value="False" />
|
2021-08-24 01:48:52 +08:00
|
|
|
</Style>
|
2021-10-19 19:44:13 +08:00
|
|
|
|
2022-11-24 02:57:09 +08:00
|
|
|
<Style
|
|
|
|
BasedOn="{StaticResource DefaultCheckBoxStyle}"
|
|
|
|
TargetType="controls:CheckBoxWithDescriptionControl" />
|
|
|
|
<!-- Other app resources here -->
|
2020-03-12 01:43:32 +08:00
|
|
|
</ResourceDictionary>
|
2020-03-10 14:55:08 +08:00
|
|
|
</Application.Resources>
|
2022-04-20 04:00:28 +08:00
|
|
|
</Application>
|