2024-06-12 20:54:10 -07:00
|
|
|
<v:ChromelessWindow 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:c="using:SourceGit.Converters"
|
|
|
|
xmlns:vm="using:SourceGit.ViewModels"
|
|
|
|
xmlns:v="using:SourceGit.Views"
|
|
|
|
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
|
|
|
|
x:Class="SourceGit.Views.Hotkeys"
|
|
|
|
Icon="/App.ico"
|
|
|
|
Title="{DynamicResource Text.Hotkeys}"
|
|
|
|
SizeToContent="WidthAndHeight"
|
|
|
|
CanResize="False"
|
|
|
|
WindowStartupLocation="CenterOwner">
|
|
|
|
<Grid RowDefinitions="Auto,*">
|
2024-03-14 03:23:36 -07:00
|
|
|
<!-- 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}"/>
|
2024-07-14 19:27:10 -07:00
|
|
|
<Path Height="6" Width="6" Stretch="Fill" Fill="#505050" Data="{StaticResource Icons.MacOS.Close}"/>
|
2024-03-04 18:46:08 -08:00
|
|
|
</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 -->
|
2024-06-12 20:54:10 -07:00
|
|
|
<Border Grid.Row="1">
|
2024-03-14 03:23:36 -07:00
|
|
|
<StackPanel Orientation="Vertical" Margin="16,8,16,16">
|
|
|
|
<TextBlock Text="{DynamicResource Text.Hotkeys.Global}"
|
|
|
|
Foreground="{DynamicResource Brush.FG2}"
|
|
|
|
FontWeight="Bold"
|
2024-06-21 02:48:19 -07:00
|
|
|
FontSize="{Binding Source={x:Static vm:Preference.Instance}, Path=DefaultFontSize, Converter={x:Static c:DoubleConverters.Increase}}"
|
2024-03-14 03:23:36 -07:00
|
|
|
Margin="0,0,0,8"/>
|
|
|
|
|
2024-05-11 03:06:31 -07:00
|
|
|
<Grid RowDefinitions="20,20,20,20,20,20" ColumnDefinitions="150,*">
|
2024-05-12 20:32:49 -07:00
|
|
|
<TextBlock Grid.Row="0" Grid.Column="0" Classes="monospace bold" Text="{OnPlatform Ctrl+Shift+P, macOS=⌘+\,}"/>
|
2024-05-11 03:06:31 -07:00
|
|
|
<TextBlock Grid.Row="0" Grid.Column="1" Margin="16,0,0,0" Text="{DynamicResource Text.Hotkeys.Global.OpenPreference}"/>
|
|
|
|
|
|
|
|
<TextBlock Grid.Row="1" Grid.Column="0" Classes="monospace bold" Text="{OnPlatform Ctrl+T, macOS=⌘+T}"/>
|
|
|
|
<TextBlock Grid.Row="1" Grid.Column="1" Margin="16,0,0,0" Text="{DynamicResource Text.Hotkeys.Global.NewTab}" />
|
2024-03-14 03:23:36 -07:00
|
|
|
|
2024-05-11 03:06:31 -07:00
|
|
|
<TextBlock Grid.Row="2" Grid.Column="0" Classes="monospace bold" Text="{OnPlatform Ctrl+W, macOS=⌘+W}" />
|
|
|
|
<TextBlock Grid.Row="2" Grid.Column="1" Margin="16,0,0,0" Text="{DynamicResource Text.Hotkeys.Global.CloseTab}" />
|
2024-03-14 03:23:36 -07:00
|
|
|
|
2024-05-11 03:06:31 -07:00
|
|
|
<TextBlock Grid.Row="3" Grid.Column="0" Classes="monospace bold" Text="{OnPlatform Shift+Ctrl+Tab, macOS=⌘+⌥+←}"/>
|
|
|
|
<TextBlock Grid.Row="3" Grid.Column="1" Margin="16,0,0,0" Text="{DynamicResource Text.Hotkeys.Global.GotoPrevTab}" />
|
2024-03-14 03:23:36 -07:00
|
|
|
|
2024-05-11 03:06:31 -07:00
|
|
|
<TextBlock Grid.Row="4" Grid.Column="0" Classes="monospace bold" Text="{OnPlatform Ctrl+Tab, macOS=⌘+⌥+→}"/>
|
|
|
|
<TextBlock Grid.Row="4" Grid.Column="1" Margin="16,0,0,0" Text="{DynamicResource Text.Hotkeys.Global.GotoNextTab}" />
|
2024-05-05 19:22:13 -07:00
|
|
|
|
2024-05-11 03:06:31 -07:00
|
|
|
<TextBlock Grid.Row="5" Grid.Column="0" Classes="monospace bold" Text="ESC"/>
|
|
|
|
<TextBlock Grid.Row="5" Grid.Column="1" Margin="16,0,0,0" Text="{DynamicResource Text.Hotkeys.Global.CancelPopup}" />
|
2024-03-14 03:23:36 -07:00
|
|
|
</Grid>
|
|
|
|
|
|
|
|
<TextBlock Text="{DynamicResource Text.Hotkeys.Repo}"
|
|
|
|
Foreground="{DynamicResource Brush.FG2}"
|
|
|
|
FontWeight="Bold"
|
2024-06-21 02:48:19 -07:00
|
|
|
FontSize="{Binding Source={x:Static vm:Preference.Instance}, Path=DefaultFontSize, Converter={x:Static c:DoubleConverters.Increase}}"
|
2024-03-14 03:23:36 -07:00
|
|
|
Margin="0,8"/>
|
|
|
|
|
2024-06-25 18:31:58 -07:00
|
|
|
<Grid RowDefinitions="20,20,20,20,20,20,20,20,20" ColumnDefinitions="150,*">
|
|
|
|
<TextBlock Grid.Row="0" Grid.Column="0" Classes="monospace bold" Text="{OnPlatform Ctrl+Shift+H, macOS=⌘+⇧+H}"/>
|
|
|
|
<TextBlock Grid.Row="0" Grid.Column="1" Margin="16,0,0,0" Text="{DynamicResource Text.Hotkeys.Repo.GoHome}" />
|
|
|
|
|
|
|
|
<TextBlock Grid.Row="1" Grid.Column="0" Classes="monospace bold" Text="{OnPlatform Ctrl+F, macOS=⌘+F}"/>
|
|
|
|
<TextBlock Grid.Row="1" Grid.Column="1" Margin="16,0,0,0" Text="{DynamicResource Text.Hotkeys.Repo.OpenSearchCommits}" />
|
2024-03-14 03:23:36 -07:00
|
|
|
|
2024-06-25 18:31:58 -07:00
|
|
|
<TextBlock Grid.Row="2" Grid.Column="0" Classes="monospace bold" Text="{OnPlatform Ctrl+1, macOS=⌘+1}"/>
|
|
|
|
<TextBlock Grid.Row="2" Grid.Column="1" Margin="16,0,0,0" Text="{DynamicResource Text.Hotkeys.Repo.ViewHistories}" />
|
2024-03-14 03:23:36 -07:00
|
|
|
|
2024-06-25 18:31:58 -07:00
|
|
|
<TextBlock Grid.Row="3" Grid.Column="0" Classes="monospace bold" Text="{OnPlatform Ctrl+2, macOS=⌘+2}"/>
|
|
|
|
<TextBlock Grid.Row="3" Grid.Column="1" Margin="16,0,0,0" Text="{DynamicResource Text.Hotkeys.Repo.ViewChanges}" />
|
2024-03-14 03:23:36 -07:00
|
|
|
|
2024-06-25 18:31:58 -07:00
|
|
|
<TextBlock Grid.Row="4" Grid.Column="0" Classes="monospace bold" Text="{OnPlatform Ctrl+3, macOS=⌘+3}"/>
|
|
|
|
<TextBlock Grid.Row="4" Grid.Column="1" Margin="16,0,0,0" Text="{DynamicResource Text.Hotkeys.Repo.ViewStashes}" />
|
2024-03-14 03:23:36 -07:00
|
|
|
|
2024-06-25 18:31:58 -07:00
|
|
|
<TextBlock Grid.Row="5" Grid.Column="0" Classes="monospace bold" Text="{OnPlatform Space, macOS=␣}"/>
|
|
|
|
<TextBlock Grid.Row="5" Grid.Column="1" Margin="16,0,0,0" Text="{DynamicResource Text.Hotkeys.Repo.StageOrUnstageSelected}" />
|
2024-04-27 19:19:12 -07:00
|
|
|
|
2024-06-25 18:31:58 -07:00
|
|
|
<TextBlock Grid.Row="6" Grid.Column="0" Classes="monospace bold" Text="{OnPlatform Ctrl+Enter, macOS=⌘+Enter}"/>
|
|
|
|
<TextBlock Grid.Row="6" Grid.Column="1" Margin="16,0,0,0" Text="{DynamicResource Text.Hotkeys.Repo.Commit}" />
|
2024-06-13 05:39:10 -07:00
|
|
|
|
2024-06-25 18:31:58 -07:00
|
|
|
<TextBlock Grid.Row="7" Grid.Column="0" Classes="monospace bold" Text="{OnPlatform Ctrl+Shift+Enter, macOS=⌘+⇧+Enter}"/>
|
|
|
|
<TextBlock Grid.Row="7" Grid.Column="1" Margin="16,0,0,0" Text="{DynamicResource Text.Hotkeys.Repo.CommitAndPush}" />
|
2024-06-13 05:39:10 -07:00
|
|
|
|
2024-06-25 18:31:58 -07:00
|
|
|
<TextBlock Grid.Row="8" Grid.Column="0" Classes="monospace bold" Text="F5"/>
|
|
|
|
<TextBlock Grid.Row="8" Grid.Column="1" Margin="16,0,0,0" Text="{DynamicResource Text.Hotkeys.Repo.Refresh}" />
|
2024-03-14 03:23:36 -07:00
|
|
|
</Grid>
|
|
|
|
|
|
|
|
<TextBlock Text="{DynamicResource Text.Hotkeys.TextEditor}"
|
|
|
|
Foreground="{DynamicResource Brush.FG2}"
|
|
|
|
FontWeight="Bold"
|
2024-06-21 02:48:19 -07:00
|
|
|
FontSize="{Binding Source={x:Static vm:Preference.Instance}, Path=DefaultFontSize, Converter={x:Static c:DoubleConverters.Increase}}"
|
2024-03-14 03:23:36 -07:00
|
|
|
Margin="0,8"/>
|
|
|
|
|
2024-05-05 19:22:13 -07:00
|
|
|
<Grid RowDefinitions="20,20,20,20" ColumnDefinitions="150,*">
|
2024-05-05 03:19:59 -07:00
|
|
|
<TextBlock Grid.Row="0" Grid.Column="0" Classes="monospace bold" Text="{OnPlatform Ctrl+F, macOS=⌘+F}"/>
|
2024-03-14 03:23:36 -07:00
|
|
|
<TextBlock Grid.Row="0" Grid.Column="1" Margin="16,0,0,0" Text="{DynamicResource Text.Hotkeys.TextEditor.Search}" />
|
|
|
|
|
2024-05-05 19:22:13 -07:00
|
|
|
<TextBlock Grid.Row="1" Grid.Column="0" Classes="monospace bold" Text="{OnPlatform Shift+F3/Shift+Enter, macOS=⇧+F3/⇧+Enter}"/>
|
2024-03-14 03:23:36 -07:00
|
|
|
<TextBlock Grid.Row="1" Grid.Column="1" Margin="16,0,0,0" Text="{DynamicResource Text.Hotkeys.TextEditor.GotoPrevMatch}" />
|
|
|
|
|
2024-05-05 19:22:13 -07:00
|
|
|
<TextBlock Grid.Row="2" Grid.Column="0" Classes="monospace bold" Text="F3/Enter"/>
|
2024-03-14 03:23:36 -07:00
|
|
|
<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>
|
2024-06-12 20:54:10 -07:00
|
|
|
</v:ChromelessWindow>
|