From 80420918365381fb01da78f2b7ec8c2ca8281c00 Mon Sep 17 00:00:00 2001 From: leo Date: Fri, 22 Mar 2024 12:29:40 +0800 Subject: [PATCH] style: move some settings to `Appearance` tab --- src/SourceGit/Resources/Locales.Designer.cs | 81 +++++---- src/SourceGit/Resources/Locales.en.resx | 11 +- src/SourceGit/Resources/Locales.resx | 11 +- src/SourceGit/Resources/Locales.zh.resx | 11 +- src/SourceGit/Views/Preference.axaml | 175 ++++++++++---------- 5 files changed, 157 insertions(+), 132 deletions(-) diff --git a/src/SourceGit/Resources/Locales.Designer.cs b/src/SourceGit/Resources/Locales.Designer.cs index e3031dd9..09bcd24a 100644 --- a/src/SourceGit/Resources/Locales.Designer.cs +++ b/src/SourceGit/Resources/Locales.Designer.cs @@ -2238,6 +2238,51 @@ namespace SourceGit.Resources { } } + /// + /// Looks up a localized string similar to Appearance. + /// + public static string Text_Preference_Appearance { + get { + return ResourceManager.GetString("Text.Preference.Appearance", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Default FontFamily. + /// + public static string Text_Preference_Appearance_DefaultFont { + get { + return ResourceManager.GetString("Text.Preference.Appearance.DefaultFont", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Default Font Size. + /// + public static string Text_Preference_Appearance_DefaultFontSize { + get { + return ResourceManager.GetString("Text.Preference.Appearance.DefaultFontSize", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Monospace FontFamily. + /// + public static string Text_Preference_Appearance_MonospaceFont { + get { + return ResourceManager.GetString("Text.Preference.Appearance.MonospaceFont", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Theme. + /// + public static string Text_Preference_Appearance_Theme { + get { + return ResourceManager.GetString("Text.Preference.Appearance.Theme", resourceCulture); + } + } + /// /// Looks up a localized string similar to GENERAL. /// @@ -2256,24 +2301,6 @@ namespace SourceGit.Resources { } } - /// - /// Looks up a localized string similar to Default FontFamily. - /// - public static string Text_Preference_General_DefaultFont { - get { - return ResourceManager.GetString("Text.Preference.General.DefaultFont", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Default Font Size. - /// - public static string Text_Preference_General_DefaultFontSize { - get { - return ResourceManager.GetString("Text.Preference.General.DefaultFontSize", resourceCulture); - } - } - /// /// Looks up a localized string similar to Language. /// @@ -2292,15 +2319,6 @@ namespace SourceGit.Resources { } } - /// - /// Looks up a localized string similar to Monospace FontFamily. - /// - public static string Text_Preference_General_MonospaceFont { - get { - return ResourceManager.GetString("Text.Preference.General.MonospaceFont", resourceCulture); - } - } - /// /// Looks up a localized string similar to Restore windows. /// @@ -2310,15 +2328,6 @@ namespace SourceGit.Resources { } } - /// - /// Looks up a localized string similar to Theme. - /// - public static string Text_Preference_General_Theme { - get { - return ResourceManager.GetString("Text.Preference.General.Theme", resourceCulture); - } - } - /// /// Looks up a localized string similar to Use fixed tab width in titlebar. /// diff --git a/src/SourceGit/Resources/Locales.en.resx b/src/SourceGit/Resources/Locales.en.resx index 98817ed8..a41f7d8e 100644 --- a/src/SourceGit/Resources/Locales.en.resx +++ b/src/SourceGit/Resources/Locales.en.resx @@ -984,7 +984,7 @@ Avatar Server - + Theme @@ -1290,13 +1290,16 @@ Syntax Highlighting - + Default FontFamily - + Monospace FontFamily - + Default Font Size + + APPEARANCE + \ No newline at end of file diff --git a/src/SourceGit/Resources/Locales.resx b/src/SourceGit/Resources/Locales.resx index 958c7119..0d73ab60 100644 --- a/src/SourceGit/Resources/Locales.resx +++ b/src/SourceGit/Resources/Locales.resx @@ -984,7 +984,7 @@ Avatar Server - + Theme @@ -1290,13 +1290,16 @@ Syntax Highlighting - + Default FontFamily - + Monospace FontFamily - + Default Font Size + + Appearance + \ No newline at end of file diff --git a/src/SourceGit/Resources/Locales.zh.resx b/src/SourceGit/Resources/Locales.zh.resx index f3baef16..58441466 100644 --- a/src/SourceGit/Resources/Locales.zh.resx +++ b/src/SourceGit/Resources/Locales.zh.resx @@ -984,7 +984,7 @@ 头像服务 - + 主题 @@ -1290,13 +1290,16 @@ 语法高亮 - + 缺省字体 - + 等宽字体 - + 默认字体大小 + + 外观配置 + \ No newline at end of file diff --git a/src/SourceGit/Views/Preference.axaml b/src/SourceGit/Views/Preference.axaml index a0aacbbc..9625d027 100644 --- a/src/SourceGit/Views/Preference.axaml +++ b/src/SourceGit/Views/Preference.axaml @@ -67,7 +67,7 @@ - + - - - Default - Dark - Light - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - - + + + + + + + + + Default + Dark + Light + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +