From 9ae926db9fa6b942b7b331a4d41663781e2c9b8a Mon Sep 17 00:00:00 2001 From: leo Date: Fri, 3 May 2024 11:43:33 +0800 Subject: [PATCH] code_style: rename BoolConverters.BoolToStarOrAutoGridLength to BoolConverters.ToStarOrAutoGridLength --- src/Converters/BoolConverters.cs | 2 +- src/Views/CommitBaseInfo.axaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Converters/BoolConverters.cs b/src/Converters/BoolConverters.cs index 02b9df8b..c860a1a6 100644 --- a/src/Converters/BoolConverters.cs +++ b/src/Converters/BoolConverters.cs @@ -12,7 +12,7 @@ namespace SourceGit.Converters public static readonly FuncValueConverter BoldIfTrue = new FuncValueConverter(x => x ? FontWeight.Bold : FontWeight.Regular); - public static readonly FuncValueConverter BoolToStarOrAutoGridLength = + public static readonly FuncValueConverter ToStarOrAutoGridLength = new(value => value ? new GridLength(1, GridUnitType.Star) : new GridLength(1, GridUnitType.Auto)); } } diff --git a/src/Views/CommitBaseInfo.axaml b/src/Views/CommitBaseInfo.axaml index 37375319..87313098 100644 --- a/src/Views/CommitBaseInfo.axaml +++ b/src/Views/CommitBaseInfo.axaml @@ -14,7 +14,7 @@ - +