mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-05 02:36:19 +02:00
[Settings] Adding collapse button to settings navview (#5237)
* Adding collapse button to settings navview * Custom panewidth
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
xmlns:Controls="clr-namespace:Microsoft.Toolkit.Wpf.UI.Controls;assembly=Microsoft.Toolkit.Wpf.UI.Controls"
|
||||
xmlns:xaml="clr-namespace:Microsoft.Toolkit.Wpf.UI.XamlHost;assembly=Microsoft.Toolkit.Wpf.UI.XamlHost"
|
||||
mc:Ignorable="d"
|
||||
Title="PowerToys Settings" Height="800" Width="1000" Closing="MainWindow_Closing">
|
||||
Title="PowerToys Settings" Height="800" Width="1100" Closing="MainWindow_Closing">
|
||||
<Grid>
|
||||
<xaml:WindowsXamlHost InitialTypeName="Microsoft.PowerToys.Settings.UI.Views.ShellPage" ChildChanged="WindowsXamlHost_ChildChanged" />
|
||||
</Grid>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
<x:Double x:Key="SidePanelWidth">240</x:Double>
|
||||
|
||||
<!-- Breakpoint for wide layout (side panel next to content) -->
|
||||
<x:Double x:Key="WideLayoutMinWidth">1100</x:Double>
|
||||
<x:Double x:Key="WideLayoutMinWidth">1008</x:Double>
|
||||
|
||||
<!-- Breakpoint for small layout (side panel under content) -->
|
||||
<x:Double x:Key="SmallLayoutMinWidth">480</x:Double>
|
||||
|
||||
@@ -25,10 +25,9 @@
|
||||
IsBackEnabled="{x:Bind ViewModel.IsBackEnabled, Mode=OneWay}"
|
||||
SelectedItem="{x:Bind ViewModel.Selected, Mode=OneWay}"
|
||||
IsSettingsVisible="False"
|
||||
IsPaneToggleButtonVisible="False"
|
||||
PaneDisplayMode="Left"
|
||||
Background="{ThemeResource SystemControlBackgroundAltHighBrush}"
|
||||
>
|
||||
OpenPaneLength="296"
|
||||
CompactModeThresholdWidth="0"
|
||||
Background="{ThemeResource SystemControlBackgroundAltHighBrush}">
|
||||
<winui:NavigationView.MenuItems>
|
||||
<winui:NavigationViewItem x:Uid="Shell_General" helpers:NavHelper.NavigateTo="views:GeneralPage">
|
||||
<winui:NavigationViewItem.Icon>
|
||||
@@ -96,7 +95,7 @@
|
||||
<behaviors:NavigationViewHeaderBehavior.DefaultHeaderTemplate>
|
||||
<DataTemplate>
|
||||
<!-- TODO: Style clean up-->
|
||||
<Grid Margin="0, 12, 0, 6">
|
||||
<Grid Margin="0, -2, 0, 6">
|
||||
<TextBlock
|
||||
Text="{Binding}"
|
||||
FontWeight="Bold"
|
||||
|
||||
Reference in New Issue
Block a user