From 885dccb52b287002fa37c73cde3a6484ca661fe5 Mon Sep 17 00:00:00 2001 From: leo Date: Mon, 24 Jun 2024 19:52:00 +0800 Subject: [PATCH] ux: multiple layout style changes --- src/Models/Notification.cs | 5 ++ src/Resources/Locales/en_US.axaml | 1 + src/Resources/Locales/zh_CN.axaml | 1 + src/Resources/Locales/zh_TW.axaml | 1 + src/Views/AddRemote.axaml | 2 +- src/Views/AddSubmodule.axaml | 2 +- src/Views/Apply.axaml | 2 +- src/Views/Archive.axaml | 2 +- src/Views/CheckoutCommit.axaml | 20 ++++---- src/Views/CherryPick.axaml | 2 +- src/Views/DropStash.axaml | 2 +- src/Views/Fetch.axaml | 2 +- src/Views/GitFlowStart.axaml | 2 +- src/Views/InitGitFlow.axaml | 2 +- src/Views/LFSTrackCustomPattern.axaml | 2 +- src/Views/Launcher.axaml | 70 ++++++++++++++------------- src/Views/PushTag.axaml | 2 +- src/Views/RenameBranch.axaml | 2 +- src/Views/Reset.axaml | 4 +- src/Views/Reword.axaml | 35 +++++--------- src/Views/Squash.axaml | 26 +++++----- src/Views/StashChanges.axaml | 2 +- 22 files changed, 96 insertions(+), 93 deletions(-) diff --git a/src/Models/Notification.cs b/src/Models/Notification.cs index 2d175da9..22cf1e67 100644 --- a/src/Models/Notification.cs +++ b/src/Models/Notification.cs @@ -4,6 +4,11 @@ { public bool IsError { get; set; } = false; public string Message { get; set; } = string.Empty; + + public void CopyMessage() + { + App.CopyText(Message); + } } public interface INotificationReceiver diff --git a/src/Resources/Locales/en_US.axaml b/src/Resources/Locales/en_US.axaml index 19071b59..206a270e 100644 --- a/src/Resources/Locales/en_US.axaml +++ b/src/Resources/Locales/en_US.axaml @@ -115,6 +115,7 @@ User Name User name for this repository Copy + COPY MESSAGE Copy Path Copy File Name Create Branch... diff --git a/src/Resources/Locales/zh_CN.axaml b/src/Resources/Locales/zh_CN.axaml index 1eaa9c8b..4490fee4 100644 --- a/src/Resources/Locales/zh_CN.axaml +++ b/src/Resources/Locales/zh_CN.axaml @@ -118,6 +118,7 @@ 用户名 应用于本仓库的用户名 复制 + 复制内容 复制路径 复制文件名 新建分支 ... diff --git a/src/Resources/Locales/zh_TW.axaml b/src/Resources/Locales/zh_TW.axaml index 4e0a2d0e..c5e68be8 100644 --- a/src/Resources/Locales/zh_TW.axaml +++ b/src/Resources/Locales/zh_TW.axaml @@ -118,6 +118,7 @@ 使用者名稱 應用於本倉庫的使用者名稱 複製 + 複製內容 複製路徑 複製檔名 新建分支 ... diff --git a/src/Views/AddRemote.axaml b/src/Views/AddRemote.axaml index 4123d501..9bcbb79c 100644 --- a/src/Views/AddRemote.axaml +++ b/src/Views/AddRemote.axaml @@ -14,7 +14,7 @@ Classes="bold" Text="{DynamicResource Text.Remote.AddTitle}"/> - + - + - + - + - - - - - - + + + + + + diff --git a/src/Views/CherryPick.axaml b/src/Views/CherryPick.axaml index e7b3cf67..9163526c 100644 --- a/src/Views/CherryPick.axaml +++ b/src/Views/CherryPick.axaml @@ -12,7 +12,7 @@ - + - + diff --git a/src/Views/Fetch.axaml b/src/Views/Fetch.axaml index 202a96fa..aaf9bec6 100644 --- a/src/Views/Fetch.axaml +++ b/src/Views/Fetch.axaml @@ -12,7 +12,7 @@ - + - + - + - + - + @@ -298,40 +298,44 @@ - - + + + + + + + + + + + - - - - - - - - - + - -