From e29d78e2aed6cbd4390a9431aff035f55236d4d3 Mon Sep 17 00:00:00 2001 From: leo Date: Wed, 24 Jul 2024 16:35:35 +0800 Subject: [PATCH] feature: show current branch on toolbar (#283) * re-arrange toolbar buttons * move `Navigate to HEAD` button to toolbar --- src/Views/Repository.axaml | 5 +-- src/Views/RepositoryToolbar.axaml | 51 ++++++++++++++++++++++++++----- 2 files changed, 44 insertions(+), 12 deletions(-) diff --git a/src/Views/Repository.axaml b/src/Views/Repository.axaml index 24ed3c92..24b5232b 100644 --- a/src/Views/Repository.axaml +++ b/src/Views/Repository.axaml @@ -76,7 +76,7 @@ - + - diff --git a/src/Views/RepositoryToolbar.axaml b/src/Views/RepositoryToolbar.axaml index f301b384..b8860a62 100644 --- a/src/Views/RepositoryToolbar.axaml +++ b/src/Views/RepositoryToolbar.axaml @@ -2,6 +2,7 @@ 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:m="using:SourceGit.Models" xmlns:vm="using:SourceGit.ViewModels" mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450" x:Class="SourceGit.Views.RepositoryToolbar" @@ -19,6 +20,19 @@ + + + + + + @@ -58,19 +72,40 @@ + + + + - + - + + + + + + + + -