diff --git a/src/Converters/WindowStateConverters.cs b/src/Converters/WindowStateConverters.cs deleted file mode 100644 index 05f0b1cd..00000000 --- a/src/Converters/WindowStateConverters.cs +++ /dev/null @@ -1,34 +0,0 @@ -using System; - -using Avalonia; -using Avalonia.Controls; -using Avalonia.Data.Converters; - -namespace SourceGit.Converters -{ - public static class WindowStateConverters - { - public static readonly FuncValueConverter ToContentMargin = - new FuncValueConverter(state => - { - if (OperatingSystem.IsWindows() && state == WindowState.Maximized) - return new Thickness(6); - else if (OperatingSystem.IsLinux() && state != WindowState.Maximized) - return new Thickness(6); - else - return new Thickness(0); - }); - - public static readonly FuncValueConverter ToTitleBarHeight = - new FuncValueConverter(state => - { - if (state == WindowState.Maximized) - return new GridLength(OperatingSystem.IsMacOS() ? 34 : 30); - else - return new GridLength(38); - }); - - public static readonly FuncValueConverter IsNormal = - new FuncValueConverter(state => state == WindowState.Normal); - } -} diff --git a/src/Resources/Styles.axaml b/src/Resources/Styles.axaml index 114ac72d..219187cf 100644 --- a/src/Resources/Styles.axaml +++ b/src/Resources/Styles.axaml @@ -18,6 +18,129 @@ + + + + + + + + + + + + + +