2020-12-11 22:34:21 +01:00
|
|
|
<!-- Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
|
|
|
|
the MIT License. See LICENSE in the project root for license information. -->
|
|
|
|
<Page
|
|
|
|
x:Class="Microsoft.Terminal.Settings.Editor.MainPage"
|
|
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
|
|
xmlns:muxc="using:Microsoft.UI.Xaml.Controls"
|
|
|
|
mc:Ignorable="d">
|
|
|
|
|
|
|
|
<Page.Resources>
|
|
|
|
<ResourceDictionary>
|
|
|
|
<ResourceDictionary.MergedDictionaries>
|
|
|
|
<ResourceDictionary Source="CommonResources.xaml"/>
|
|
|
|
</ResourceDictionary.MergedDictionaries>
|
|
|
|
|
|
|
|
<AcrylicBrush x:Key="NavigationViewDefaultPaneBackground"
|
|
|
|
BackgroundSource="Backdrop"
|
|
|
|
TintColor="{ThemeResource SystemChromeMediumColor}"
|
|
|
|
TintOpacity="0.5"/>
|
|
|
|
<AcrylicBrush x:Key="NavigationViewTopPaneBackground"
|
|
|
|
BackgroundSource="Backdrop"
|
|
|
|
TintColor="{ThemeResource SystemChromeMediumColor}"
|
|
|
|
TintOpacity="0.5"/>
|
|
|
|
<AcrylicBrush x:Key="NavigationViewExpandedPaneBackground"
|
|
|
|
BackgroundSource="HostBackdrop"
|
|
|
|
TintColor="{ThemeResource SystemChromeMediumColor}"
|
|
|
|
TintOpacity="0.7"/>
|
|
|
|
</ResourceDictionary>
|
|
|
|
</Page.Resources>
|
|
|
|
|
|
|
|
<muxc:NavigationView x:Name="SettingsNav"
|
|
|
|
IsSettingsVisible="False"
|
|
|
|
Header="{Binding ElementName=SettingsNav, Path=SelectedItem.Content, Mode=OneWay}"
|
|
|
|
Loaded="SettingsNav_Loaded"
|
|
|
|
ItemInvoked="SettingsNav_ItemInvoked"
|
2021-02-17 18:43:47 +01:00
|
|
|
IsBackButtonVisible="Collapsed"
|
|
|
|
TabFocusNavigation="Cycle">
|
2020-12-11 22:34:21 +01:00
|
|
|
|
|
|
|
<muxc:NavigationView.MenuItems>
|
|
|
|
|
|
|
|
<muxc:NavigationViewItem x:Uid="Nav_Launch"
|
|
|
|
Tag="Launch_Nav">
|
|
|
|
<muxc:NavigationViewItem.Icon>
|
|
|
|
<FontIcon Glyph=""/>
|
|
|
|
</muxc:NavigationViewItem.Icon>
|
|
|
|
</muxc:NavigationViewItem>
|
|
|
|
|
|
|
|
<muxc:NavigationViewItem x:Uid="Nav_Interaction"
|
|
|
|
Tag="Interaction_Nav">
|
|
|
|
<muxc:NavigationViewItem.Icon>
|
|
|
|
<FontIcon Glyph=""/>
|
|
|
|
</muxc:NavigationViewItem.Icon>
|
|
|
|
</muxc:NavigationViewItem>
|
|
|
|
|
|
|
|
<muxc:NavigationViewItem x:Uid="Nav_Appearance"
|
|
|
|
Tag="GlobalAppearance_Nav">
|
|
|
|
<muxc:NavigationViewItem.Icon>
|
|
|
|
<FontIcon Glyph=""/>
|
|
|
|
</muxc:NavigationViewItem.Icon>
|
|
|
|
</muxc:NavigationViewItem>
|
|
|
|
|
|
|
|
<muxc:NavigationViewItem x:Uid="Nav_ColorSchemes"
|
|
|
|
Tag="ColorSchemes_Nav">
|
|
|
|
<muxc:NavigationViewItem.Icon>
|
|
|
|
<FontIcon Glyph=""/>
|
|
|
|
</muxc:NavigationViewItem.Icon>
|
|
|
|
</muxc:NavigationViewItem>
|
|
|
|
|
|
|
|
<muxc:NavigationViewItem x:Uid="Nav_Rendering"
|
|
|
|
Tag="Rendering_Nav" >
|
|
|
|
<muxc:NavigationViewItem.Icon>
|
|
|
|
<FontIcon Glyph=""/>
|
|
|
|
</muxc:NavigationViewItem.Icon>
|
|
|
|
</muxc:NavigationViewItem>
|
|
|
|
|
|
|
|
<muxc:NavigationViewItemHeader x:Uid="Nav_Profiles"/>
|
|
|
|
|
|
|
|
<muxc:NavigationViewItem x:Uid="Nav_ProfileDefaults"
|
2021-02-20 00:50:52 +01:00
|
|
|
x:Name="BaseLayerMenuItem"
|
2020-12-11 22:34:21 +01:00
|
|
|
Tag="GlobalProfile_Nav">
|
|
|
|
<muxc:NavigationViewItem.Icon>
|
|
|
|
<FontIcon Glyph=""/>
|
|
|
|
</muxc:NavigationViewItem.Icon>
|
|
|
|
</muxc:NavigationViewItem>
|
|
|
|
|
|
|
|
</muxc:NavigationView.MenuItems>
|
|
|
|
|
|
|
|
<muxc:NavigationView.PaneFooter>
|
|
|
|
<!--The OpenJson item needs both Tapped and KeyDown handler-->
|
|
|
|
<muxc:NavigationViewItem x:Uid="Nav_OpenJSON"
|
2021-02-17 18:43:47 +01:00
|
|
|
x:Name="OpenJsonNavItem"
|
2020-12-11 22:34:21 +01:00
|
|
|
Tapped="OpenJsonTapped"
|
|
|
|
KeyDown="OpenJsonKeyDown">
|
|
|
|
<muxc:NavigationViewItem.Icon>
|
|
|
|
<FontIcon Glyph=""/>
|
|
|
|
</muxc:NavigationViewItem.Icon>
|
|
|
|
</muxc:NavigationViewItem>
|
|
|
|
</muxc:NavigationView.PaneFooter>
|
|
|
|
|
|
|
|
<Grid>
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<RowDefinition Height="*"></RowDefinition>
|
|
|
|
<RowDefinition Height="Auto"></RowDefinition>
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
<Frame x:Name="contentFrame"
|
|
|
|
Grid.Row="0"></Frame>
|
|
|
|
<Grid Height="100" Grid.Row="1"
|
|
|
|
BorderBrush="{ThemeResource SystemBaseLowColor}"
|
|
|
|
BorderThickness="0,1,0,0">
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
<ColumnDefinition Width="*"></ColumnDefinition>
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<TextBlock x:Uid="Settings_UnsavedSettingsWarning"
|
|
|
|
Visibility="Collapsed"
|
|
|
|
Foreground="Goldenrod"
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
HorizontalAlignment="Left"
|
|
|
|
TextAlignment="Left"
|
|
|
|
Margin="30,0,0,0"/>
|
|
|
|
<StackPanel VerticalAlignment="Center" HorizontalAlignment="Right" Orientation="Horizontal" Margin="0,0,30,0">
|
|
|
|
<Button x:Uid="Settings_ResetSettingsButton"
|
2021-02-17 18:43:47 +01:00
|
|
|
x:Name="ResetButton"
|
2020-12-11 22:34:21 +01:00
|
|
|
Click="ResetButton_Click"/>
|
|
|
|
<Button x:Uid="Settings_SaveSettingsButton"
|
2021-02-17 18:43:47 +01:00
|
|
|
x:Name="SaveButton"
|
2020-12-11 22:34:21 +01:00
|
|
|
Style="{StaticResource AccentButtonStyle}"
|
|
|
|
Margin="10,0,0,0"
|
|
|
|
Click="SaveButton_Click"/>
|
|
|
|
</StackPanel>
|
|
|
|
</Grid>
|
|
|
|
</Grid>
|
|
|
|
</muxc:NavigationView>
|
|
|
|
</Page>
|