From ed7e6d4012bda3e85d16badcec35a327c754796c Mon Sep 17 00:00:00 2001 From: leo Date: Thu, 16 Oct 2025 15:26:35 +0800 Subject: [PATCH] ux: remove `Use fixed tab width in titlebar` option from `Preferences` and makes it the only and default Signed-off-by: leo --- src/Converters/BoolConverters.cs | 3 --- src/Resources/Locales/en_US.axaml | 1 - src/ViewModels/Preferences.cs | 7 ------- src/Views/LauncherTabBar.axaml | 2 +- src/Views/Preferences.axaml | 9 ++------- 5 files changed, 3 insertions(+), 19 deletions(-) diff --git a/src/Converters/BoolConverters.cs b/src/Converters/BoolConverters.cs index d101c641..8a2f3141 100644 --- a/src/Converters/BoolConverters.cs +++ b/src/Converters/BoolConverters.cs @@ -5,9 +5,6 @@ namespace SourceGit.Converters { public static class BoolConverters { - public static readonly FuncValueConverter ToPageTabWidth = - new FuncValueConverter(x => x ? 200 : double.NaN); - public static readonly FuncValueConverter IsBoldToFontWeight = new FuncValueConverter(x => x ? FontWeight.Bold : FontWeight.Regular); diff --git a/src/Resources/Locales/en_US.axaml b/src/Resources/Locales/en_US.axaml index 163e2a7d..6a142842 100644 --- a/src/Resources/Locales/en_US.axaml +++ b/src/Resources/Locales/en_US.axaml @@ -570,7 +570,6 @@ Theme Theme Overrides Use auto-hide scrollbars - Use fixed tab width in titlebar Use native window frame DIFF/MERGE TOOL Install Path diff --git a/src/ViewModels/Preferences.cs b/src/ViewModels/Preferences.cs index 5b5bc31f..f7beb968 100644 --- a/src/ViewModels/Preferences.cs +++ b/src/ViewModels/Preferences.cs @@ -148,12 +148,6 @@ namespace SourceGit.ViewModels } } - public bool UseFixedTabWidth - { - get => _useFixedTabWidth; - set => SetProperty(ref _useFixedTabWidth, value); - } - public bool UseAutoHideScrollBars { get => _useAutoHideScrollBars; @@ -718,7 +712,6 @@ namespace SourceGit.ViewModels private int _maxHistoryCommits = 20000; private int _subjectGuideLength = 50; - private bool _useFixedTabWidth = true; private bool _useAutoHideScrollBars = true; private bool _useGitHubStyleAvatar = true; private bool _showAuthorTimeInGraph = false; diff --git a/src/Views/LauncherTabBar.axaml b/src/Views/LauncherTabBar.axaml index 4dafba4d..b14254e6 100644 --- a/src/Views/LauncherTabBar.axaml +++ b/src/Views/LauncherTabBar.axaml @@ -42,7 +42,7 @@ - - + - - -