@@ -5,7 +5,7 @@ namespace GitCredentialManager.UI.ViewModels
5
5
public class WindowViewModel : ViewModel
6
6
{
7
7
private bool _extendClientArea ;
8
- private bool _showClientChromeOverride ;
8
+ private bool _showCustomChromeOverride ;
9
9
private bool _showDebugControls ;
10
10
private string _title ;
11
11
@@ -16,8 +16,8 @@ public WindowViewModel()
16
16
{
17
17
Title = Constants . DefaultWindowTitle ;
18
18
19
- // Default to hiding the system chrome on macOS only for now
20
- ExtendClientArea = PlatformUtils . IsMacOS ( ) ;
19
+ // Extend the client area on Windows and macOS only
20
+ ExtendClientArea = PlatformUtils . IsMacOS ( ) || PlatformUtils . IsWindows ( ) ;
21
21
}
22
22
23
23
public bool WindowResult { get ; private set ; }
@@ -30,15 +30,17 @@ public bool ShowDebugControls
30
30
31
31
public bool ShowCustomChrome
32
32
{
33
- get => ShowClientChromeOverride || ( ExtendClientArea && ! PlatformUtils . IsMacOS ( ) ) ;
33
+ // On macOS we typically do NOT want to show the custom chrome if we've extended the client area
34
+ // because the native 'traffic light' controls will still be visible and we don't want to show our own.
35
+ get => ShowCustomChromeOverride || ( ExtendClientArea && ! PlatformUtils . IsMacOS ( ) ) ;
34
36
}
35
37
36
- public bool ShowClientChromeOverride
38
+ public bool ShowCustomChromeOverride
37
39
{
38
- get => _showClientChromeOverride ;
40
+ get => _showCustomChromeOverride ;
39
41
set
40
42
{
41
- SetAndRaisePropertyChanged ( ref _showClientChromeOverride , value ) ;
43
+ SetAndRaisePropertyChanged ( ref _showCustomChromeOverride , value ) ;
42
44
RaisePropertyChanged ( nameof ( ShowCustomChrome ) ) ;
43
45
}
44
46
}
0 commit comments