From 48cbe8dead1af42af2dda31d90eaecd5ebf020b3 Mon Sep 17 00:00:00 2001 From: Tibor Prokai Date: Tue, 27 Oct 2026 17:41:29 +0100 Subject: [PATCH] Add independent sidebar toggle to Dashboard --- src/ViewModels/LayoutInfo.cs | 7 +++++++ src/Views/Histories.axaml | 6 +++++- src/Views/LauncherPage.axaml | 1 + 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/src/ViewModels/LayoutInfo.cs b/src/ViewModels/LayoutInfo.cs index 43b58f5013..db172abf0b 100644 --- a/src/ViewModels/LayoutInfo.cs +++ b/src/ViewModels/LayoutInfo.cs @@ -47,6 +47,12 @@ public double RepositorySearchCommitWidth set; } = 250; + public bool IsSidebarCollapsedInDashboard + { + get => _isSidebarCollapsedInDashboard; + set => SetProperty(ref _isSidebarCollapsedInDashboard, value); + } + public bool IsSidebarCollapsedInLocalChanges { get => _isSidebarCollapsedInLocalChanges; @@ -81,6 +87,7 @@ public GridLength CommitDetailFilesLeftWidth private GridLength _stashesLeftWidth = new GridLength(300, GridUnitType.Pixel); private GridLength _commitDetailChangesLeftWidth = new GridLength(256, GridUnitType.Pixel); private GridLength _commitDetailFilesLeftWidth = new GridLength(256, GridUnitType.Pixel); + private bool _isSidebarCollapsedInDashboard = false; private bool _isSidebarCollapsedInLocalChanges = false; } } diff --git a/src/Views/Histories.axaml b/src/Views/Histories.axaml index a3d24529fd..05364b5bfe 100644 --- a/src/Views/Histories.axaml +++ b/src/Views/Histories.axaml @@ -105,7 +105,7 @@ - + @@ -253,6 +253,10 @@ Margin="4,0,0,0" VerticalAlignment="Center" Spacing="6"> + diff --git a/src/Views/LauncherPage.axaml b/src/Views/LauncherPage.axaml index 08107bfa90..5be4d0b020 100644 --- a/src/Views/LauncherPage.axaml +++ b/src/Views/LauncherPage.axaml @@ -53,6 +53,7 @@ +