diff --git a/src/Converters/BoolConverters.cs b/src/Converters/BoolConverters.cs index 2eb8c60a..e372eaa9 100644 --- a/src/Converters/BoolConverters.cs +++ b/src/Converters/BoolConverters.cs @@ -1,4 +1,7 @@ -using Avalonia.Data.Converters; +using System; +using System.Globalization; + +using Avalonia.Data.Converters; using Avalonia.Media; namespace SourceGit.Converters @@ -13,5 +16,21 @@ namespace SourceGit.Converters public static readonly FuncValueConverter BoldIfTrue = new FuncValueConverter(x => x ? FontWeight.Bold : FontWeight.Regular); + + public class InverseConverter : IValueConverter + { + public object Convert(object value, Type targetType, object parameter, CultureInfo culture) + { + return !(bool)value; + } + + public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) + { + return !(bool)value; + } + } + + public static readonly InverseConverter Inverse = new InverseConverter(); + } } diff --git a/src/Resources/Icons.axaml b/src/Resources/Icons.axaml index 8574c130..613dd090 100644 --- a/src/Resources/Icons.axaml +++ b/src/Resources/Icons.axaml @@ -103,4 +103,5 @@ M897 673v13c0 51-42 93-93 93h-10c-1 0-2 0-2 0H220c-23 0-42 19-42 42v13c0 23 19 42 42 42h552c14 0 26 12 26 26 0 14-12 26-26 26H220c-51 0-93-42-93-93v-13c0-51 42-93 93-93h20c1-0 2-0 2-0h562c23 0 42-19 42-42v-13c0-11-5-22-13-29-8-7-17-11-28-10H660c-14 0-26-12-26-26 0-14 12-26 26-26h144c24-1 47 7 65 24 18 17 29 42 29 67zM479 98c-112 0-203 91-203 203 0 44 14 85 38 118l132 208c15 24 50 24 66 0l133-209c23-33 37-73 37-117 0-112-91-203-203-203zm0 327c-68 0-122-55-122-122s55-122 122-122 122 55 122 122-55 122-122 122z M416 64H768v64h-64v704h64v64H448v-64h64V512H416a224 224 0 1 1 0-448zM576 832h64V128H576v704zM416 128H512v320H416a160 160 0 0 1 0-320z M512 64A447 447 0 0064 512c0 248 200 448 448 448s448-200 448-448S760 64 512 64zM218 295h31c54 0 105 19 145 55 13 12 13 31 3 43a35 35 0 01-22 10 36 36 0 01-21-7 155 155 0 00-103-39h-31a32 32 0 01-31-31c0-18 13-31 30-31zm31 433h-31a32 32 0 01-31-31c0-16 13-31 31-31h31A154 154 0 00403 512 217 217 0 01620 295h75l-93-67a33 33 0 01-7-43 33 33 0 0143-7l205 148-205 148a29 29 0 01-18 6 32 32 0 01-31-31c0-10 4-19 13-25l93-67H620a154 154 0 00-154 154c0 122-97 220-217 220zm390 118a29 29 0 01-18 6 32 32 0 01-31-31c0-10 4-19 13-25l93-67h-75c-52 0-103-19-143-54-12-12-13-31-1-43a30 30 0 0142-3 151 151 0 00102 39h75L602 599a33 33 0 01-7-43 33 33 0 0143-7l205 148-203 151z + M832 64h128v278l-128-146V64zm64 448L512 73 128 512H0L448 0h128l448 512h-128zm0 83V1024H640V704c0-35-29-64-64-64h-128a64 64 0 00-64 64v320H128V595l384-424 384 424z diff --git a/src/Resources/Locales/en_US.axaml b/src/Resources/Locales/en_US.axaml index 75df3bcd..879d81c9 100644 --- a/src/Resources/Locales/en_US.axaml +++ b/src/Resources/Locales/en_US.axaml @@ -435,7 +435,6 @@ TAGS NEW TAG Open In Terminal - WORKSPACE Git Repository URL Reset Current Branch To Revision Reset Mode: diff --git a/src/Resources/Locales/zh_CN.axaml b/src/Resources/Locales/zh_CN.axaml index 813b9c36..2626b068 100644 --- a/src/Resources/Locales/zh_CN.axaml +++ b/src/Resources/Locales/zh_CN.axaml @@ -437,7 +437,6 @@ 标签列表 新建标签 在终端中打开 - 工作区 远程仓库地址 重置(reset)当前分支到指定版本 重置模式 : diff --git a/src/Resources/Locales/zh_TW.axaml b/src/Resources/Locales/zh_TW.axaml index 65aa5f50..6d00ca4a 100644 --- a/src/Resources/Locales/zh_TW.axaml +++ b/src/Resources/Locales/zh_TW.axaml @@ -437,7 +437,6 @@ 標籤列表 新建標籤 在終端中開啟 - 工作區 遠端倉庫地址 重置(reset)當前分支到指定版本 重置模式 : diff --git a/src/Resources/Styles.axaml b/src/Resources/Styles.axaml index 0f3cb1e7..d7be181b 100644 --- a/src/Resources/Styles.axaml +++ b/src/Resources/Styles.axaml @@ -972,6 +972,30 @@ + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + - - - + + + + + + + + - - - - - + + + + - - - - - - + + + + + - + + + + + + + + + + + + + + + + + + - - - - - + - - - - - - - - - - - - + + + - - - - - - - - - - - - - - + + + + + - - - - - - - + + + + + + - - - - + + - - - - - + + + + - - - - - - - - - - - - + + + + + + + + + + + - + - + + + + + - - - - - - - - - - - + + + + + + + + - - - - - - - - - - + + + + + + + - - - - - - - + + + + + + + + + - - - - + + + + + + + + + + + + - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - + +