From 3953e84bbdc8b0509289827e9753b6c357c16178 Mon Sep 17 00:00:00 2001 From: Tibor Prokai Date: Mon, 26 Oct 2026 19:08:48 +0100 Subject: [PATCH] Add convenient copy buttons for commit details and branch names Place copy buttons before commit messages, SHAs, parent SHAs, author and committer identities and dates, and individual references. Show the copied value in each tooltip and make the toolbar branch icon copy the current branch name. Allow CopyButton to use a custom icon and CommitRefsPresenter to display individual decorators. --- src/Resources/Locales/en_US.axaml | 1 + src/Views/CommitBaseInfo.axaml | 256 +++++++++++++++++------------- src/Views/CommitRefsPresenter.cs | 13 +- src/Views/CopyButton.cs | 18 ++- src/Views/RepositoryToolbar.axaml | 15 +- 5 files changed, 179 insertions(+), 124 deletions(-) diff --git a/src/Resources/Locales/en_US.axaml b/src/Resources/Locales/en_US.axaml index 9abb3bdcc9..2c4a1461e9 100644 --- a/src/Resources/Locales/en_US.axaml +++ b/src/Resources/Locales/en_US.axaml @@ -313,6 +313,7 @@ Short Description: Type of Change: Copy + Copy: {0} Copy All Text Copy as Patch Copy Full Path diff --git a/src/Views/CommitBaseInfo.axaml b/src/Views/CommitBaseInfo.axaml index d6c0dba6b3..9c55acb850 100644 --- a/src/Views/CommitBaseInfo.axaml +++ b/src/Views/CommitBaseInfo.axaml @@ -19,18 +19,24 @@ - - - - - - - + + + + + + + + + + + + @@ -39,18 +45,24 @@ - - - - - - - + + + + + + + + + + + + @@ -62,10 +74,9 @@ - - - - + + +