mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-09 20:57:22 +02:00
Background
This commit is contained in:
@@ -7,7 +7,7 @@
|
|||||||
<Application.Resources>
|
<Application.Resources>
|
||||||
<ResourceDictionary>
|
<ResourceDictionary>
|
||||||
<ResourceDictionary.MergedDictionaries>
|
<ResourceDictionary.MergedDictionaries>
|
||||||
<XamlControlsResources xmlns="using:Microsoft.UI.Xaml.Controls" />
|
<XamlControlsResources xmlns="using:Microsoft.UI.Xaml.Controls" ControlsResourcesVersion="Version2" />
|
||||||
<ResourceDictionary Source="/Controls/KeyVisual/KeyVisual.xaml" />
|
<ResourceDictionary Source="/Controls/KeyVisual/KeyVisual.xaml" />
|
||||||
<ResourceDictionary Source="/Styles/_FontSizes.xaml" />
|
<ResourceDictionary Source="/Styles/_FontSizes.xaml" />
|
||||||
<ResourceDictionary Source="/Styles/_Thickness.xaml" />
|
<ResourceDictionary Source="/Styles/_Thickness.xaml" />
|
||||||
@@ -15,7 +15,32 @@
|
|||||||
<ResourceDictionary Source="/Styles/TextBlock.xaml" />
|
<ResourceDictionary Source="/Styles/TextBlock.xaml" />
|
||||||
<ResourceDictionary Source="/Styles/Button.xaml"/>
|
<ResourceDictionary Source="/Styles/Button.xaml"/>
|
||||||
</ResourceDictionary.MergedDictionaries>
|
</ResourceDictionary.MergedDictionaries>
|
||||||
|
|
||||||
<converters:ModuleEnabledToOpacityConverter x:Key="ModuleEnabledToOpacityConverter"/>
|
<converters:ModuleEnabledToOpacityConverter x:Key="ModuleEnabledToOpacityConverter"/>
|
||||||
|
|
||||||
|
<ResourceDictionary.ThemeDictionaries>
|
||||||
|
<ResourceDictionary x:Key="Light">
|
||||||
|
<SolidColorBrush x:Key="HomePageBackgroundBrush" Color="Transparent"/>
|
||||||
|
<SolidColorBrush x:Key="PageHeaderForegroundBrush" Color="White"/>
|
||||||
|
<StaticResource x:Key="ControlExampleDisplayBrush" ResourceKey="SolidBackgroundFillColorBaseBrush" />
|
||||||
|
<Thickness x:Key="ControlExampleDisplayBorderThickness">0</Thickness>
|
||||||
|
<SolidColorBrush x:Key="NavigationViewExpandedPaneBackground" Color="Transparent"/>
|
||||||
|
</ResourceDictionary>
|
||||||
|
<ResourceDictionary x:Key="Dark">
|
||||||
|
<SolidColorBrush x:Key="HomePageBackgroundBrush" Color="Transparent"/>
|
||||||
|
<SolidColorBrush x:Key="PageHeaderForegroundBrush" Color="White"/>
|
||||||
|
<StaticResource x:Key="ControlExampleDisplayBrush" ResourceKey="SolidBackgroundFillColorBaseBrush" />
|
||||||
|
<Thickness x:Key="ControlExampleDisplayBorderThickness">0</Thickness>
|
||||||
|
<SolidColorBrush x:Key="NavigationViewExpandedPaneBackground" Color="Transparent"/>
|
||||||
|
</ResourceDictionary>
|
||||||
|
<ResourceDictionary x:Key="HighContrast">
|
||||||
|
<SolidColorBrush x:Key="HomePageBackgroundBrush" Color="{ThemeResource SystemColorWindowColor}" />
|
||||||
|
<SolidColorBrush x:Key="PageHeaderForegroundBrush" Color="White"/>
|
||||||
|
<SolidColorBrush x:Key="ControlExampleDisplayBrush" Color="{ThemeResource SystemColorWindowColor}" />
|
||||||
|
<Thickness x:Key="ControlExampleDisplayBorderThickness">1</Thickness>
|
||||||
|
<SolidColorBrush x:Key="NavigationViewExpandedPaneBackground" Color="Transparent"/>
|
||||||
|
</ResourceDictionary>
|
||||||
|
</ResourceDictionary.ThemeDictionaries>
|
||||||
</ResourceDictionary>
|
</ResourceDictionary>
|
||||||
</Application.Resources>
|
</Application.Resources>
|
||||||
</xaml:XamlApplication>
|
</xaml:XamlApplication>
|
||||||
@@ -372,18 +372,10 @@
|
|||||||
<SubType>Designer</SubType>
|
<SubType>Designer</SubType>
|
||||||
<Generator>MSBuild:Compile</Generator>
|
<Generator>MSBuild:Compile</Generator>
|
||||||
</Page>
|
</Page>
|
||||||
<Page Include="Styles\Page.xaml">
|
|
||||||
<Generator>MSBuild:Compile</Generator>
|
|
||||||
<SubType>Designer</SubType>
|
|
||||||
</Page>
|
|
||||||
<Page Include="Styles\TextBlock.xaml">
|
<Page Include="Styles\TextBlock.xaml">
|
||||||
<Generator>MSBuild:Compile</Generator>
|
<Generator>MSBuild:Compile</Generator>
|
||||||
<SubType>Designer</SubType>
|
<SubType>Designer</SubType>
|
||||||
</Page>
|
</Page>
|
||||||
<Page Include="Styles\_Colors.xaml">
|
|
||||||
<Generator>MSBuild:Compile</Generator>
|
|
||||||
<SubType>Designer</SubType>
|
|
||||||
</Page>
|
|
||||||
<Page Include="Styles\_FontSizes.xaml">
|
<Page Include="Styles\_FontSizes.xaml">
|
||||||
<Generator>MSBuild:Compile</Generator>
|
<Generator>MSBuild:Compile</Generator>
|
||||||
<SubType>Designer</SubType>
|
<SubType>Designer</SubType>
|
||||||
|
|||||||
@@ -10,8 +10,33 @@
|
|||||||
xmlns:views="using:Microsoft.PowerToys.Settings.UI.Views"
|
xmlns:views="using:Microsoft.PowerToys.Settings.UI.Views"
|
||||||
xmlns:ic="using:Microsoft.Xaml.Interactions.Core"
|
xmlns:ic="using:Microsoft.Xaml.Interactions.Core"
|
||||||
xmlns:i="using:Microsoft.Xaml.Interactivity"
|
xmlns:i="using:Microsoft.Xaml.Interactivity"
|
||||||
|
winui:BackdropMaterial.ApplyToRootOrPageBackground="True"
|
||||||
|
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"
|
||||||
mc:Ignorable="d">
|
mc:Ignorable="d">
|
||||||
|
|
||||||
|
<UserControl.Resources>
|
||||||
|
<ResourceDictionary>
|
||||||
|
<ResourceDictionary.MergedDictionaries>
|
||||||
|
<ResourceDictionary>
|
||||||
|
<ResourceDictionary.ThemeDictionaries>
|
||||||
|
<ResourceDictionary x:Key="Light">
|
||||||
|
<StaticResource x:Key="NavigationViewContentBackground" ResourceKey="LayerFillColorDefaultBrush"/>
|
||||||
|
<SolidColorBrush x:Key="NavigationViewExpandedPaneBackground" Color="Transparent"/>
|
||||||
|
</ResourceDictionary>
|
||||||
|
<ResourceDictionary x:Key="Dark">
|
||||||
|
<StaticResource x:Key="NavigationViewContentBackground" ResourceKey="LayerFillColorDefaultBrush"/>
|
||||||
|
<SolidColorBrush x:Key="NavigationViewExpandedPaneBackground" Color="Transparent"/>
|
||||||
|
</ResourceDictionary>
|
||||||
|
<ResourceDictionary x:Key="HighContrast">
|
||||||
|
<SolidColorBrush x:Key="NavigationViewContentBackground" Color="{ThemeResource SystemColorWindowColor}" />
|
||||||
|
<SolidColorBrush x:Key="NavigationViewExpandedPaneBackground" Color="{ThemeResource SystemColorWindowColor}" />
|
||||||
|
</ResourceDictionary>
|
||||||
|
</ResourceDictionary.ThemeDictionaries>
|
||||||
|
</ResourceDictionary>
|
||||||
|
</ResourceDictionary.MergedDictionaries>
|
||||||
|
</ResourceDictionary>
|
||||||
|
</UserControl.Resources>
|
||||||
|
|
||||||
<i:Interaction.Behaviors>
|
<i:Interaction.Behaviors>
|
||||||
<ic:EventTriggerBehavior EventName="Loaded">
|
<ic:EventTriggerBehavior EventName="Loaded">
|
||||||
<ic:InvokeCommandAction Command="{x:Bind ViewModel.LoadedCommand}" />
|
<ic:InvokeCommandAction Command="{x:Bind ViewModel.LoadedCommand}" />
|
||||||
@@ -21,6 +46,7 @@
|
|||||||
<Grid>
|
<Grid>
|
||||||
<winui:NavigationView
|
<winui:NavigationView
|
||||||
x:Name="navigationView"
|
x:Name="navigationView"
|
||||||
|
Background="{ThemeResource HomePageBackgroundBrush}"
|
||||||
IsBackButtonVisible="Collapsed"
|
IsBackButtonVisible="Collapsed"
|
||||||
IsBackEnabled="{x:Bind ViewModel.IsBackEnabled, Mode=OneWay}"
|
IsBackEnabled="{x:Bind ViewModel.IsBackEnabled, Mode=OneWay}"
|
||||||
SelectedItem="{x:Bind ViewModel.Selected, Mode=OneWay}"
|
SelectedItem="{x:Bind ViewModel.Selected, Mode=OneWay}"
|
||||||
|
|||||||
Reference in New Issue
Block a user