2021-03-30 00:09:38 +02: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">
|
2020-12-11 22:34:21 +01:00
|
|
|
|
|
|
|
<Page.Resources>
|
|
|
|
<ResourceDictionary>
|
|
|
|
<ResourceDictionary.MergedDictionaries>
|
2021-03-30 00:09:38 +02:00
|
|
|
<ResourceDictionary Source="CommonResources.xaml" />
|
2020-12-11 22:34:21 +01:00
|
|
|
</ResourceDictionary.MergedDictionaries>
|
|
|
|
|
|
|
|
<AcrylicBrush x:Key="NavigationViewDefaultPaneBackground"
|
|
|
|
BackgroundSource="Backdrop"
|
|
|
|
TintColor="{ThemeResource SystemChromeMediumColor}"
|
2021-03-30 00:09:38 +02:00
|
|
|
TintOpacity="0.5" />
|
2020-12-11 22:34:21 +01:00
|
|
|
<AcrylicBrush x:Key="NavigationViewTopPaneBackground"
|
|
|
|
BackgroundSource="Backdrop"
|
|
|
|
TintColor="{ThemeResource SystemChromeMediumColor}"
|
2021-03-30 00:09:38 +02:00
|
|
|
TintOpacity="0.5" />
|
2020-12-11 22:34:21 +01:00
|
|
|
<AcrylicBrush x:Key="NavigationViewExpandedPaneBackground"
|
|
|
|
BackgroundSource="HostBackdrop"
|
|
|
|
TintColor="{ThemeResource SystemChromeMediumColor}"
|
2021-03-30 00:09:38 +02:00
|
|
|
TintOpacity="0.7" />
|
2020-12-11 22:34:21 +01:00
|
|
|
</ResourceDictionary>
|
|
|
|
</Page.Resources>
|
|
|
|
|
|
|
|
<muxc:NavigationView x:Name="SettingsNav"
|
|
|
|
Header="{Binding ElementName=SettingsNav, Path=SelectedItem.Content, Mode=OneWay}"
|
2021-02-17 18:43:47 +01:00
|
|
|
IsBackButtonVisible="Collapsed"
|
2021-03-30 00:09:38 +02:00
|
|
|
IsSettingsVisible="False"
|
|
|
|
ItemInvoked="SettingsNav_ItemInvoked"
|
|
|
|
Loaded="SettingsNav_Loaded"
|
2021-02-17 18:43:47 +01:00
|
|
|
TabFocusNavigation="Cycle">
|
2020-12-11 22:34:21 +01:00
|
|
|
|
|
|
|
<muxc:NavigationView.MenuItems>
|
2021-02-24 00:37:23 +01:00
|
|
|
|
2020-12-11 22:34:21 +01:00
|
|
|
<muxc:NavigationViewItem x:Uid="Nav_Launch"
|
|
|
|
Tag="Launch_Nav">
|
|
|
|
<muxc:NavigationViewItem.Icon>
|
2021-03-30 00:09:38 +02:00
|
|
|
<FontIcon Glyph="" />
|
2020-12-11 22:34:21 +01:00
|
|
|
</muxc:NavigationViewItem.Icon>
|
|
|
|
</muxc:NavigationViewItem>
|
2021-02-24 00:37:23 +01:00
|
|
|
|
2020-12-11 22:34:21 +01:00
|
|
|
<muxc:NavigationViewItem x:Uid="Nav_Interaction"
|
|
|
|
Tag="Interaction_Nav">
|
|
|
|
<muxc:NavigationViewItem.Icon>
|
2021-03-30 00:09:38 +02:00
|
|
|
<FontIcon Glyph="" />
|
2020-12-11 22:34:21 +01:00
|
|
|
</muxc:NavigationViewItem.Icon>
|
|
|
|
</muxc:NavigationViewItem>
|
2021-02-24 00:37:23 +01:00
|
|
|
|
2020-12-11 22:34:21 +01:00
|
|
|
<muxc:NavigationViewItem x:Uid="Nav_Appearance"
|
|
|
|
Tag="GlobalAppearance_Nav">
|
|
|
|
<muxc:NavigationViewItem.Icon>
|
2021-03-30 00:09:38 +02:00
|
|
|
<FontIcon Glyph="" />
|
2020-12-11 22:34:21 +01:00
|
|
|
</muxc:NavigationViewItem.Icon>
|
|
|
|
</muxc:NavigationViewItem>
|
2021-02-24 00:37:23 +01:00
|
|
|
|
2020-12-11 22:34:21 +01:00
|
|
|
<muxc:NavigationViewItem x:Uid="Nav_ColorSchemes"
|
|
|
|
Tag="ColorSchemes_Nav">
|
|
|
|
<muxc:NavigationViewItem.Icon>
|
2021-03-30 00:09:38 +02:00
|
|
|
<FontIcon Glyph="" />
|
2020-12-11 22:34:21 +01:00
|
|
|
</muxc:NavigationViewItem.Icon>
|
|
|
|
</muxc:NavigationViewItem>
|
2021-02-24 00:37:23 +01:00
|
|
|
|
2020-12-11 22:34:21 +01:00
|
|
|
<muxc:NavigationViewItem x:Uid="Nav_Rendering"
|
2021-03-30 00:09:38 +02:00
|
|
|
Tag="Rendering_Nav">
|
2020-12-11 22:34:21 +01:00
|
|
|
<muxc:NavigationViewItem.Icon>
|
2021-03-30 00:09:38 +02:00
|
|
|
<FontIcon Glyph="" />
|
2020-12-11 22:34:21 +01:00
|
|
|
</muxc:NavigationViewItem.Icon>
|
|
|
|
</muxc:NavigationViewItem>
|
2021-02-24 00:37:23 +01:00
|
|
|
|
|
|
|
<muxc:NavigationViewItem x:Uid="Nav_Actions"
|
2021-03-30 00:09:38 +02:00
|
|
|
Tag="Actions_Nav">
|
2021-02-24 00:37:23 +01:00
|
|
|
<muxc:NavigationViewItem.Icon>
|
2021-03-30 00:09:38 +02:00
|
|
|
<FontIcon Glyph="" />
|
2021-02-24 00:37:23 +01:00
|
|
|
</muxc:NavigationViewItem.Icon>
|
|
|
|
</muxc:NavigationViewItem>
|
|
|
|
|
2021-03-30 00:09:38 +02:00
|
|
|
<muxc:NavigationViewItemHeader x:Uid="Nav_Profiles" />
|
2021-02-24 00:37:23 +01:00
|
|
|
|
2021-03-30 00:09:38 +02:00
|
|
|
<muxc:NavigationViewItem x:Name="BaseLayerMenuItem"
|
|
|
|
x:Uid="Nav_ProfileDefaults"
|
2020-12-11 22:34:21 +01:00
|
|
|
Tag="GlobalProfile_Nav">
|
|
|
|
<muxc:NavigationViewItem.Icon>
|
2021-03-30 00:09:38 +02:00
|
|
|
<FontIcon Glyph="" />
|
2020-12-11 22:34:21 +01:00
|
|
|
</muxc:NavigationViewItem.Icon>
|
2021-02-24 00:37:23 +01:00
|
|
|
</muxc:NavigationViewItem>
|
|
|
|
|
2020-12-11 22:34:21 +01:00
|
|
|
</muxc:NavigationView.MenuItems>
|
2021-02-24 00:37:23 +01:00
|
|
|
|
2020-12-11 22:34:21 +01:00
|
|
|
<muxc:NavigationView.PaneFooter>
|
2021-03-30 00:09:38 +02:00
|
|
|
<!-- The OpenJson item needs both Tapped and KeyDown handler -->
|
|
|
|
<muxc:NavigationViewItem x:Name="OpenJsonNavItem"
|
|
|
|
x:Uid="Nav_OpenJSON"
|
|
|
|
KeyDown="OpenJsonKeyDown"
|
|
|
|
Tapped="OpenJsonTapped">
|
2020-12-11 22:34:21 +01:00
|
|
|
<muxc:NavigationViewItem.Icon>
|
2021-03-30 00:09:38 +02:00
|
|
|
<FontIcon Glyph="" />
|
2020-12-11 22:34:21 +01:00
|
|
|
</muxc:NavigationViewItem.Icon>
|
|
|
|
</muxc:NavigationViewItem>
|
|
|
|
</muxc:NavigationView.PaneFooter>
|
2021-02-24 00:37:23 +01:00
|
|
|
|
2020-12-11 22:34:21 +01:00
|
|
|
<Grid>
|
|
|
|
<Grid.RowDefinitions>
|
2021-03-30 00:09:38 +02:00
|
|
|
<RowDefinition Height="*" />
|
|
|
|
<RowDefinition Height="Auto" />
|
2020-12-11 22:34:21 +01:00
|
|
|
</Grid.RowDefinitions>
|
|
|
|
<Frame x:Name="contentFrame"
|
2021-03-30 00:09:38 +02:00
|
|
|
Grid.Row="0" />
|
|
|
|
<Grid Grid.Row="1"
|
|
|
|
Height="100"
|
2021-02-24 00:37:23 +01:00
|
|
|
BorderBrush="{ThemeResource SystemBaseLowColor}"
|
|
|
|
BorderThickness="0,1,0,0">
|
|
|
|
<Grid.ColumnDefinitions>
|
2021-03-30 00:09:38 +02:00
|
|
|
<ColumnDefinition Width="*" />
|
2021-02-24 00:37:23 +01:00
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<TextBlock x:Uid="Settings_UnsavedSettingsWarning"
|
2021-03-30 00:09:38 +02:00
|
|
|
Margin="30,0,0,0"
|
2021-02-24 00:37:23 +01:00
|
|
|
HorizontalAlignment="Left"
|
2021-03-30 00:09:38 +02:00
|
|
|
VerticalAlignment="Center"
|
|
|
|
Foreground="Goldenrod"
|
2021-02-24 00:37:23 +01:00
|
|
|
TextAlignment="Left"
|
2021-03-30 00:09:38 +02:00
|
|
|
Visibility="Collapsed" />
|
|
|
|
<StackPanel Margin="0,0,30,0"
|
|
|
|
HorizontalAlignment="Right"
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
Orientation="Horizontal">
|
|
|
|
<Button x:Name="ResetButton"
|
|
|
|
x:Uid="Settings_ResetSettingsButton"
|
|
|
|
Click="ResetButton_Click" />
|
|
|
|
<Button x:Name="SaveButton"
|
|
|
|
x:Uid="Settings_SaveSettingsButton"
|
2021-02-24 00:37:23 +01:00
|
|
|
Margin="10,0,0,0"
|
2021-03-30 00:09:38 +02:00
|
|
|
Click="SaveButton_Click"
|
|
|
|
Style="{StaticResource AccentButtonStyle}" />
|
2021-02-24 00:37:23 +01:00
|
|
|
</StackPanel>
|
2020-12-11 22:34:21 +01:00
|
|
|
</Grid>
|
|
|
|
</Grid>
|
|
|
|
</muxc:NavigationView>
|
|
|
|
</Page>
|