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:s="using:SourceGit"
|
|
|
|
xmlns:vm="using:SourceGit.ViewModels"
|
|
|
|
xmlns:v="using:SourceGit.Views"
|
|
|
|
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
|
|
|
|
x:Class="SourceGit.Views.Launcher"
|
|
|
|
x:DataType="vm:Launcher"
|
|
|
|
Icon="/App.ico"
|
|
|
|
Title="SourceGit"
|
2024-07-29 05:40:53 -07:00
|
|
|
MinWidth="1024" MinHeight="600"
|
2024-06-12 20:54:10 -07:00
|
|
|
WindowStartupLocation="CenterScreen">
|
2024-06-26 05:56:29 -07:00
|
|
|
<Grid x:Name="MainLayout">
|
2024-02-05 23:08:37 -08:00
|
|
|
<Grid.RowDefinitions>
|
2024-06-26 05:56:29 -07:00
|
|
|
<RowDefinition Height="38"/>
|
2024-02-05 23:08:37 -08:00
|
|
|
<RowDefinition Height="*"/>
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
2024-03-14 03:23:36 -07:00
|
|
|
<!-- Custom TitleBar -->
|
2024-02-05 23:08:37 -08:00
|
|
|
<Grid Grid.Row="0" ColumnDefinitions="Auto,*,Auto">
|
|
|
|
<!-- Bottom border -->
|
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-06-12 20:54:10 -07:00
|
|
|
DoubleTapped="OnTitleBarDoubleTapped"
|
2024-08-06 00:12:44 -07:00
|
|
|
PointerPressed="BeginMoveWindow"/>
|
2024-02-05 23:08:37 -08:00
|
|
|
|
|
|
|
<!-- Caption Buttons (macOS) -->
|
2024-03-07 19:13:53 -08:00
|
|
|
<Border Grid.Column="0" VerticalAlignment="Stretch" Margin="2,0,8,3" IsVisible="{OnPlatform False, macOS=True}">
|
2024-02-05 23:08:37 -08:00
|
|
|
<v:CaptionButtonsMacOS VerticalAlignment="Bottom"/>
|
|
|
|
</Border>
|
|
|
|
|
2024-06-26 05:56:29 -07:00
|
|
|
<!-- Menu (Windows/Linux) -->
|
2024-06-29 02:04:39 -07:00
|
|
|
<Button Grid.Column="0" Classes="icon_button" VerticalAlignment="Bottom" Margin="6,0,2,3" IsVisible="{OnPlatform True, macOS=False}">
|
2024-02-05 23:08:37 -08:00
|
|
|
<Button.Flyout>
|
2024-02-06 01:00:39 -08:00
|
|
|
<MenuFlyout Placement="BottomEdgeAlignedLeft" VerticalOffset="-8">
|
2024-05-11 03:06:31 -07:00
|
|
|
<MenuItem Header="{DynamicResource Text.Preference}" Command="{x:Static s:App.OpenPreferenceCommand}" InputGesture="Ctrl+Shift+P">
|
2024-02-05 23:08:37 -08:00
|
|
|
<MenuItem.Icon>
|
2024-06-17 04:44:54 -07:00
|
|
|
<Path Width="14" Height="14" Data="{StaticResource Icons.Settings}"/>
|
2024-02-05 23:08:37 -08:00
|
|
|
</MenuItem.Icon>
|
|
|
|
</MenuItem>
|
2024-05-10 20:31:14 -07:00
|
|
|
<MenuItem Header="{DynamicResource Text.Hotkeys}" Command="{x:Static s:App.OpenHotkeysCommand}">
|
2024-03-04 18:46:08 -08:00
|
|
|
<MenuItem.Icon>
|
|
|
|
<Path Width="14" Height="14" Data="{StaticResource Icons.Hotkeys}"/>
|
|
|
|
</MenuItem.Icon>
|
|
|
|
</MenuItem>
|
2024-03-26 07:11:06 -07:00
|
|
|
<MenuItem Header="-"/>
|
2024-05-10 20:31:14 -07:00
|
|
|
<MenuItem Header="{DynamicResource Text.SelfUpdate}" Command="{x:Static s:App.CheckForUpdateCommand}">
|
2024-03-26 07:11:06 -07:00
|
|
|
<MenuItem.Icon>
|
|
|
|
<Path Width="14" Height="14" Data="{StaticResource Icons.SoftwareUpdate}"/>
|
|
|
|
</MenuItem.Icon>
|
|
|
|
</MenuItem>
|
|
|
|
<MenuItem Header="-"/>
|
2024-05-10 20:31:14 -07:00
|
|
|
<MenuItem Header="{DynamicResource Text.About}" Command="{x:Static s:App.OpenAboutCommand}">
|
2024-02-05 23:08:37 -08:00
|
|
|
<MenuItem.Icon>
|
|
|
|
<Path Width="14" Height="14" Data="{StaticResource Icons.Info}"/>
|
|
|
|
</MenuItem.Icon>
|
|
|
|
</MenuItem>
|
|
|
|
</MenuFlyout>
|
|
|
|
</Button.Flyout>
|
2024-02-17 18:41:41 -08:00
|
|
|
<Path Width="12" Height="12" Data="{StaticResource Icons.Menu}"/>
|
2024-02-05 23:08:37 -08:00
|
|
|
</Button>
|
|
|
|
|
|
|
|
<!-- Pages Tabs-->
|
2024-06-26 05:56:29 -07:00
|
|
|
<v:LauncherTabBar Grid.Column="1" Height="30" VerticalAlignment="Bottom"/>
|
2024-02-05 23:08:37 -08:00
|
|
|
|
2024-03-14 03:23:36 -07:00
|
|
|
<!-- Caption Buttons (Windows/Linux)-->
|
|
|
|
<Border Grid.Column="2" Margin="32,0,0,0" IsVisible="{OnPlatform True, macOS=False}">
|
2024-02-05 23:08:37 -08:00
|
|
|
<v:CaptionButtons Height="30" VerticalAlignment="Top"/>
|
|
|
|
</Border>
|
|
|
|
</Grid>
|
2024-07-14 09:30:31 -07:00
|
|
|
|
|
|
|
<!-- Page -->
|
|
|
|
<ContentControl Grid.Row="1" Content="{Binding ActivePage}">
|
2024-05-30 00:13:59 -07:00
|
|
|
<ContentControl.DataTemplates>
|
2024-07-14 09:30:31 -07:00
|
|
|
<DataTemplate DataType="vm:LauncherPage">
|
|
|
|
<v:LauncherPage/>
|
2024-05-30 00:13:59 -07:00
|
|
|
</DataTemplate>
|
|
|
|
</ContentControl.DataTemplates>
|
|
|
|
</ContentControl>
|
2024-02-05 23:08:37 -08:00
|
|
|
</Grid>
|
2024-06-12 20:54:10 -07:00
|
|
|
</v:ChromelessWindow>
|