85 lines
3.6 KiB
XML
85 lines
3.6 KiB
XML
<Page
|
|
x:Class="FluentTerminal.App.Views.SettingsPages.ShellSettings"
|
|
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"
|
|
mc:Ignorable="d">
|
|
<Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="32" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="*" />
|
|
</Grid.RowDefinitions>
|
|
<Grid Grid.Row="1" Margin="24,00,0,24">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition />
|
|
<ColumnDefinition />
|
|
</Grid.ColumnDefinitions>
|
|
<TextBlock
|
|
Margin="0,10,0,0"
|
|
VerticalAlignment="Center"
|
|
FontSize="28"
|
|
Style="{StaticResource TitleTextBlockStyle}"
|
|
Text="Shell" />
|
|
<CommandBar
|
|
Grid.Column="1"
|
|
HorizontalAlignment="Right"
|
|
VerticalAlignment="Top"
|
|
Background="{ThemeResource SystemControlBackgroundAltHighBrush}"
|
|
DefaultLabelPosition="Right">
|
|
<AppBarButton
|
|
Command="{x:Bind ViewModel.RestoreDefaultsCommand}"
|
|
Icon="Undo"
|
|
Label="Restore Defaults" />
|
|
</CommandBar>
|
|
</Grid>
|
|
<StackPanel Grid.Row="2" Margin="24,0,0,0">
|
|
|
|
<TextBlock Margin="0,0,0,8" Text="Type" />
|
|
<RadioButton Content="PowerShell" IsChecked="{x:Bind ViewModel.PoweShellIsSelected, Mode=TwoWay}" />
|
|
<RadioButton Content="CMD" IsChecked="{x:Bind ViewModel.CMDIsSelected, Mode=TwoWay}" />
|
|
<RadioButton Content="Custom" IsChecked="{x:Bind ViewModel.CustomShellIsSelected, Mode=TwoWay}" />
|
|
|
|
<StackPanel Margin="0,24,0,0" Orientation="Horizontal">
|
|
<TextBox
|
|
Width="400"
|
|
Header="Custom Shell Location"
|
|
IsEnabled="{x:Bind ViewModel.CustomShellIsSelected, Mode=OneWay}"
|
|
IsSpellCheckEnabled="False"
|
|
Text="{x:Bind ViewModel.CustomShellLocation, Mode=TwoWay}" />
|
|
<Button
|
|
Margin="6,0,0,0"
|
|
VerticalAlignment="Bottom"
|
|
Command="{x:Bind ViewModel.BrowseForCustomShellCommand}"
|
|
Content="..."
|
|
IsEnabled="{x:Bind ViewModel.CustomShellIsSelected, Mode=OneWay}"
|
|
Style="{StaticResource ButtonRevealStyle}" />
|
|
</StackPanel>
|
|
|
|
<StackPanel Margin="0,24,0,0" Orientation="Horizontal">
|
|
<TextBox
|
|
Width="400"
|
|
Header="Working Directory"
|
|
IsSpellCheckEnabled="False"
|
|
Text="{x:Bind ViewModel.WorkingDirectory, Mode=TwoWay}" />
|
|
<Button
|
|
Margin="6,0,0,0"
|
|
VerticalAlignment="Bottom"
|
|
Command="{x:Bind ViewModel.BrowseForWorkingDirectoryCommand}"
|
|
Content="..."
|
|
Style="{StaticResource ButtonRevealStyle}" />
|
|
</StackPanel>
|
|
|
|
<TextBox
|
|
Width="400"
|
|
Margin="0,24,0,0"
|
|
HorizontalAlignment="Left"
|
|
Header="Arguments"
|
|
IsSpellCheckEnabled="False"
|
|
Text="{x:Bind ViewModel.Arguments, Mode=TwoWay}" />
|
|
|
|
</StackPanel>
|
|
</Grid>
|
|
</Page>
|