mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-15 03:07:56 +01:00
## Summary of the Pull Request By merging #41900, we removed too many styles :). This brings back the missing styles. ## PR Checklist - [ ] Closes: #xxx - [ ] **Communication:** I've discussed this with core contributors already. If the work hasn't been agreed, this work might be rejected - [ ] **Tests:** Added/updated and all pass - [ ] **Localization:** All end-user-facing strings can be localized - [ ] **Dev docs:** Added/updated - [ ] **New binaries:** Added on the required places - [ ] [JSON for signing](https://github.com/microsoft/PowerToys/blob/main/.pipelines/ESRPSigning_core.json) for new binaries - [ ] [WXS for installer](https://github.com/microsoft/PowerToys/blob/main/installer/PowerToysSetup/Product.wxs) for new binaries and localization folder - [ ] [YML for CI pipeline](https://github.com/microsoft/PowerToys/blob/main/.pipelines/ci/templates/build-powertoys-steps.yml) for new test projects - [ ] [YML for signed pipeline](https://github.com/microsoft/PowerToys/blob/main/.pipelines/release.yml) - [ ] **Documentation updated:** If checked, please file a pull request on [our docs repo](https://github.com/MicrosoftDocs/windows-uwp/tree/docs/hub/powertoys) and link it here: #xxx <!-- Provide a more detailed description of the PR, other things fixed, or any additional comments/features here --> ## Detailed Description of the Pull Request / Additional comments <!-- Describe how you validated the behavior. Add automated tests wherever possible, but list manual validation steps taken as well --> ## Validation Steps Performed
89 lines
4.4 KiB
XML
89 lines
4.4 KiB
XML
<Application
|
|
x:Class="Microsoft.PowerToys.Settings.UI.App"
|
|
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"
|
|
xmlns:converters="using:Microsoft.PowerToys.Settings.UI.Converters"
|
|
xmlns:tkconverters="using:CommunityToolkit.WinUI.Converters">
|
|
<Application.Resources>
|
|
<ResourceDictionary>
|
|
<ResourceDictionary.MergedDictionaries>
|
|
<XamlControlsResources xmlns="using:Microsoft.UI.Xaml.Controls" />
|
|
<ResourceDictionary Source="/SettingsXAML/Controls/KeyVisual/KeyVisual.xaml" />
|
|
<ResourceDictionary Source="/SettingsXAML/Controls/KeyVisual/KeyCharPresenter.xaml" />
|
|
<ResourceDictionary Source="/SettingsXAML/Controls/TitleBar/TitleBar.xaml" />
|
|
<ResourceDictionary Source="/SettingsXAML/Styles/TextBlock.xaml" />
|
|
<ResourceDictionary Source="/SettingsXAML/Styles/Button.xaml" />
|
|
<ResourceDictionary Source="/SettingsXAML/Styles/InfoBadge.xaml" />
|
|
<ResourceDictionary Source="/SettingsXAML/Themes/Colors.xaml" />
|
|
<ResourceDictionary Source="/SettingsXAML/Themes/Generic.xaml" />
|
|
|
|
<!-- Other merged dictionaries here -->
|
|
</ResourceDictionary.MergedDictionaries>
|
|
|
|
<!-- Converters -->
|
|
<tkconverters:BoolToVisibilityConverter
|
|
x:Key="ReverseBoolToVisibilityConverter"
|
|
FalseValue="Visible"
|
|
TrueValue="Collapsed" />
|
|
<tkconverters:BoolToVisibilityConverter
|
|
x:Key="BoolToVisibilityConverter"
|
|
FalseValue="Collapsed"
|
|
TrueValue="Visible" />
|
|
<tkconverters:BoolToObjectConverter
|
|
x:Key="BoolToComboBoxIndexConverter"
|
|
FalseValue="0"
|
|
TrueValue="1" />
|
|
<tkconverters:BoolToObjectConverter
|
|
x:Key="ReverseBoolToComboBoxIndexConverter"
|
|
FalseValue="1"
|
|
TrueValue="0" />
|
|
<tkconverters:DoubleToVisibilityConverter
|
|
x:Name="DoubleToVisibilityConverter"
|
|
FalseValue="Collapsed"
|
|
GreaterThan="0"
|
|
TrueValue="Visible" />
|
|
<tkconverters:DoubleToVisibilityConverter
|
|
x:Name="DoubleToInvertedVisibilityConverter"
|
|
FalseValue="Visible"
|
|
GreaterThan="0"
|
|
TrueValue="Collapsed" />
|
|
<tkconverters:StringFormatConverter x:Key="StringFormatConverter" />
|
|
<tkconverters:BoolNegationConverter x:Key="BoolNegationConverter" />
|
|
<tkconverters:EmptyObjectToObjectConverter
|
|
x:Key="EmptyObjectToObjectConverter"
|
|
EmptyValue="Collapsed"
|
|
NotEmptyValue="Visible" />
|
|
<converters:UpdateStateToBoolConverter x:Key="UpdateStateToBoolConverter" />
|
|
<tkconverters:StringVisibilityConverter x:Key="StringVisibilityConverter" />
|
|
<x:Double x:Key="SettingsCardSpacing">2</x:Double>
|
|
|
|
<!-- Overrides -->
|
|
<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>
|
|
|
|
<x:Double x:Key="PageMaxWidth">1000</x:Double>
|
|
|
|
<Style TargetType="ListViewItem">
|
|
<Setter Property="Margin" Value="0,0,0,2" />
|
|
<Setter Property="Padding" Value="0,0,0,0" />
|
|
<Setter Property="HorizontalContentAlignment" Value="Stretch" />
|
|
<Setter Property="IsTabStop" Value="False" />
|
|
</Style>
|
|
|
|
<Style BasedOn="{StaticResource DefaultCheckBoxStyle}" TargetType="controls:CheckBoxWithDescriptionControl" />
|
|
|
|
<TransitionCollection x:Key="SettingsCardsAnimations">
|
|
<EntranceThemeTransition FromVerticalOffset="50" />
|
|
<!-- Animates cards when loaded -->
|
|
<RepositionThemeTransition IsStaggeringEnabled="False" />
|
|
<!-- Smoothly animates individual cards upon whenever Expanders are expanded/collapsed -->
|
|
</TransitionCollection>
|
|
|
|
<!-- Additional resources or settings can be added here -->
|
|
|
|
</ResourceDictionary>
|
|
</Application.Resources>
|
|
</Application>
|