From dbd91c9b581ba9f66e0a1438a9e82dc7fd2c70ad Mon Sep 17 00:00:00 2001 From: leo Date: Wed, 21 Feb 2024 10:12:52 +0800 Subject: [PATCH] style: arrange buttons in Repository's tool bar --- src/ViewModels/Repository.cs | 4 -- src/Views/Repository.axaml | 122 ++++++++++++++++------------------- 2 files changed, 57 insertions(+), 69 deletions(-) diff --git a/src/ViewModels/Repository.cs b/src/ViewModels/Repository.cs index a2da4b2e..636921d3 100644 --- a/src/ViewModels/Repository.cs +++ b/src/ViewModels/Repository.cs @@ -294,10 +294,6 @@ namespace SourceGit.ViewModels { SearchedCommits = visible; } - public void ExitSearchMode() { - IsSearching = false; - } - public void SetWatcherEnabled(bool enabled) { if (_watcher != null) _watcher.SetEnabled(enabled); } diff --git a/src/Views/Repository.axaml b/src/Views/Repository.axaml index 4876121f..c707c760 100644 --- a/src/Views/Repository.axaml +++ b/src/Views/Repository.axaml @@ -25,6 +25,13 @@ + + + + @@ -53,13 +60,9 @@ VerticalAlignment="Center" Fill="{DynamicResource Brush.Border2}"/> - - - + @@ -70,10 +73,6 @@ IsVisible="{Binding SelectedViewIndex, Converter={x:Static c:IntConverters.IsZero}}" ToolTip.Tip="{DynamicResource Text.Histories.DisplayMode}"/> - - @@ -92,7 +91,12 @@ - + + + + @@ -141,12 +145,9 @@ - + - - @@ -345,61 +346,52 @@ - - - - - - - -