enhance: allow to configure editor tab width in preferences window (#1048)

Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
leo 2025-03-04 17:26:27 +08:00
parent 11af5d9b29
commit 2137ad9ec9
No known key found for this signature in database
11 changed files with 98 additions and 19 deletions

View file

@ -111,6 +111,12 @@ namespace SourceGit.ViewModels
set => SetProperty(ref _editorFontSize, value);
}
public int EditorTabWidth
{
get => _editorTabWidth;
set => SetProperty(ref _editorTabWidth, value);
}
public LayoutInfo Layout
{
get => _layout;
@ -649,6 +655,7 @@ namespace SourceGit.ViewModels
private bool _useSystemWindowFrame = false;
private double _defaultFontSize = 13;
private double _editorFontSize = 13;
private int _editorTabWidth = 4;
private LayoutInfo _layout = new LayoutInfo();
private int _maxHistoryCommits = 20000;