2024-03-04 18:46:08 -08:00
|
|
|
<Window xmlns="https://github.com/avaloniaui"
|
|
|
|
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:vm="using:SourceGit.ViewModels"
|
|
|
|
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
|
|
|
|
x:Class="SourceGit.Views.Hotkeys"
|
|
|
|
Icon="/App.ico"
|
|
|
|
Title="{DynamicResource Text.Hotkeys}"
|
2024-03-14 03:23:36 -07:00
|
|
|
Background="Transparent"
|
2024-03-04 18:46:08 -08:00
|
|
|
SizeToContent="WidthAndHeight"
|
|
|
|
CanResize="False"
|
|
|
|
WindowStartupLocation="CenterOwner"
|
2024-03-14 03:23:36 -07:00
|
|
|
ExtendClientAreaToDecorationsHint="True"
|
|
|
|
ExtendClientAreaChromeHints="NoChrome"
|
|
|
|
SystemDecorations="{OnPlatform Full, Linux=None}">
|
2024-03-14 03:29:19 -07:00
|
|
|
<Grid RowDefinitions="Auto,*" Margin="{OnPlatform 0, Linux=6}">
|
2024-03-14 03:23:36 -07:00
|
|
|
<!-- Custom window shadow for Linux -->
|
|
|
|
<Border Grid.Row="0" Grid.RowSpan="2"
|
|
|
|
Background="{DynamicResource Brush.Window}"
|
|
|
|
Effect="drop-shadow(0 0 6 #A0000000)"
|
|
|
|
IsVisible="{OnPlatform False, Linux=True}"/>
|
|
|
|
|
|
|
|
<!-- TitleBar -->
|
|
|
|
<Grid Grid.Row="0" ColumnDefinitions="Auto,*,Auto" Height="30">
|
2024-03-07 19:13:53 -08:00
|
|
|
<Border Grid.Column="0" Grid.ColumnSpan="3"
|
|
|
|
Background="{DynamicResource Brush.TitleBar}"
|
|
|
|
BorderThickness="0,0,0,1" BorderBrush="{DynamicResource Brush.Border0}"
|
2024-03-14 03:23:36 -07:00
|
|
|
PointerPressed="BeginMoveWindow"/>
|
2024-03-07 19:13:53 -08:00
|
|
|
|
2024-03-04 18:46:08 -08:00
|
|
|
<Path Grid.Column="0"
|
|
|
|
Width="14" Height="14"
|
|
|
|
Margin="10,0,0,0"
|
|
|
|
Data="{StaticResource Icons.Hotkeys}"
|
2024-03-14 03:23:36 -07:00
|
|
|
IsVisible="{OnPlatform True, macOS=False}"/>
|
2024-03-04 18:46:08 -08:00
|
|
|
|
2024-03-07 19:13:53 -08:00
|
|
|
<Grid Grid.Column="0" Classes="caption_button_box" Margin="2,4,0,0" IsVisible="{OnPlatform False, macOS=True}">
|
2024-03-04 18:46:08 -08:00
|
|
|
<Button Classes="caption_button_macos" Click="CloseWindow">
|
|
|
|
<Grid>
|
|
|
|
<Ellipse Fill="{DynamicResource Brush.MacOS.Close}"/>
|
|
|
|
<Path Height="6" Width="6" Stretch="Fill" Fill="#404040" Stroke="#404040" StrokeThickness="1" Data="{StaticResource Icons.Window.Close}"/>
|
|
|
|
</Grid>
|
|
|
|
</Button>
|
|
|
|
</Grid>
|
|
|
|
|
|
|
|
<TextBlock Grid.Column="0" Grid.ColumnSpan="3"
|
|
|
|
Classes="bold"
|
|
|
|
Text="{DynamicResource Text.Hotkeys}"
|
|
|
|
HorizontalAlignment="Center" VerticalAlignment="Center"
|
|
|
|
IsHitTestVisible="False"/>
|
|
|
|
|
|
|
|
<Button Grid.Column="2"
|
|
|
|
Classes="caption_button"
|
|
|
|
Click="CloseWindow"
|
2024-03-14 03:23:36 -07:00
|
|
|
IsVisible="{OnPlatform True, macOS=False}">
|
2024-03-04 18:46:08 -08:00
|
|
|
<Path Data="{StaticResource Icons.Window.Close}"/>
|
|
|
|
</Button>
|
|
|
|
</Grid>
|
|
|
|
|
2024-03-14 03:23:36 -07:00
|
|
|
<!-- Body -->
|
|
|
|
<Border Grid.Row="1" Background="{DynamicResource Brush.Window}">
|
|
|
|
<StackPanel Orientation="Vertical" Margin="16,8,16,16">
|
|
|
|
<TextBlock Text="{DynamicResource Text.Hotkeys.Global}"
|
|
|
|
Foreground="{DynamicResource Brush.FG2}"
|
|
|
|
FontWeight="Bold"
|
|
|
|
FontSize="13"
|
|
|
|
Margin="0,0,0,8"/>
|
|
|
|
|
|
|
|
<Grid RowDefinitions="20,20,20,20" ColumnDefinitions="Auto,*">
|
|
|
|
<TextBlock Grid.Row="0" Grid.Column="0" Classes="monospace bold" Text="Ctrl+T"/>
|
|
|
|
<TextBlock Grid.Row="0" Grid.Column="1" Margin="16,0,0,0" Text="{DynamicResource Text.Hotkeys.Global.NewTab}" />
|
|
|
|
|
|
|
|
<TextBlock Grid.Row="1" Grid.Column="0" Classes="monospace bold" Text="Ctrl+W" />
|
|
|
|
<TextBlock Grid.Row="1" Grid.Column="1" Margin="16,0,0,0" Text="{DynamicResource Text.Hotkeys.Global.CloseTab}" />
|
|
|
|
|
|
|
|
<TextBlock Grid.Row="2" Grid.Column="0" Classes="monospace bold" Text="Ctrl+Tab"/>
|
|
|
|
<TextBlock Grid.Row="2" Grid.Column="1" Margin="16,0,0,0" Text="{DynamicResource Text.Hotkeys.Global.GotoNextTab}" />
|
|
|
|
|
|
|
|
<TextBlock Grid.Row="3" Grid.Column="0" Classes="monospace bold" Text="ESC"/>
|
|
|
|
<TextBlock Grid.Row="3" Grid.Column="1" Margin="16,0,0,0" Text="{DynamicResource Text.Hotkeys.Global.CancelPopup}" />
|
|
|
|
</Grid>
|
|
|
|
|
|
|
|
<TextBlock Text="{DynamicResource Text.Hotkeys.Repo}"
|
|
|
|
Foreground="{DynamicResource Brush.FG2}"
|
|
|
|
FontWeight="Bold"
|
|
|
|
FontSize="13"
|
|
|
|
Margin="0,8"/>
|
|
|
|
|
|
|
|
<Grid RowDefinitions="20,20,20,20,20" ColumnDefinitions="Auto,*">
|
|
|
|
<TextBlock Grid.Row="0" Grid.Column="0" Classes="monospace bold" Text="Ctrl+F"/>
|
|
|
|
<TextBlock Grid.Row="0" Grid.Column="1" Margin="16,0,0,0" Text="{DynamicResource Text.Hotkeys.Repo.ToggleSearch}" />
|
|
|
|
|
|
|
|
<TextBlock Grid.Row="1" Grid.Column="0" Classes="monospace bold" Text="Ctrl+1"/>
|
|
|
|
<TextBlock Grid.Row="1" Grid.Column="1" Margin="16,0,0,0" Text="{DynamicResource Text.Hotkeys.Repo.ViewHistories}" />
|
|
|
|
|
|
|
|
<TextBlock Grid.Row="2" Grid.Column="0" Classes="monospace bold" Text="Ctrl+2"/>
|
|
|
|
<TextBlock Grid.Row="2" Grid.Column="1" Margin="16,0,0,0" Text="{DynamicResource Text.Hotkeys.Repo.ViewChanges}" />
|
|
|
|
|
|
|
|
<TextBlock Grid.Row="3" Grid.Column="0" Classes="monospace bold" Text="Ctrl+3"/>
|
|
|
|
<TextBlock Grid.Row="3" Grid.Column="1" Margin="16,0,0,0" Text="{DynamicResource Text.Hotkeys.Repo.ViewStashes}" />
|
|
|
|
|
|
|
|
<TextBlock Grid.Row="4" Grid.Column="0" Classes="monospace bold" Text="SPACE"/>
|
|
|
|
<TextBlock Grid.Row="4" Grid.Column="1" Margin="16,0,0,0" Text="{DynamicResource Text.Hotkeys.Repo.StageOrUnstageSelected}" />
|
|
|
|
</Grid>
|
|
|
|
|
|
|
|
<TextBlock Text="{DynamicResource Text.Hotkeys.TextEditor}"
|
|
|
|
Foreground="{DynamicResource Brush.FG2}"
|
|
|
|
FontWeight="Bold"
|
|
|
|
FontSize="13"
|
|
|
|
Margin="0,8"/>
|
|
|
|
|
|
|
|
<Grid RowDefinitions="20,20,20,20" ColumnDefinitions="Auto,*">
|
|
|
|
<TextBlock Grid.Row="0" Grid.Column="0" Classes="monospace bold" Text="Ctrl+F"/>
|
|
|
|
<TextBlock Grid.Row="0" Grid.Column="1" Margin="16,0,0,0" Text="{DynamicResource Text.Hotkeys.TextEditor.Search}" />
|
|
|
|
|
|
|
|
<TextBlock Grid.Row="1" Grid.Column="0" Classes="monospace bold" Text="Shift+F3"/>
|
|
|
|
<TextBlock Grid.Row="1" Grid.Column="1" Margin="16,0,0,0" Text="{DynamicResource Text.Hotkeys.TextEditor.GotoPrevMatch}" />
|
|
|
|
|
|
|
|
<TextBlock Grid.Row="2" Grid.Column="0" Classes="monospace bold" Text="F3"/>
|
|
|
|
<TextBlock Grid.Row="2" Grid.Column="1" Margin="16,0,0,0" Text="{DynamicResource Text.Hotkeys.TextEditor.GotoNextMatch}" />
|
|
|
|
|
|
|
|
<TextBlock Grid.Row="3" Grid.Column="0" Classes="monospace bold" Text="ESC"/>
|
|
|
|
<TextBlock Grid.Row="3" Grid.Column="1" Margin="16,0,0,0" Text="{DynamicResource Text.Hotkeys.TextEditor.CloseSearch}" />
|
|
|
|
</Grid>
|
|
|
|
</StackPanel>
|
|
|
|
</Border>
|
2024-03-04 18:46:08 -08:00
|
|
|
</Grid>
|
|
|
|
</Window>
|