From 09720f81d42dfd95d614a75f57fc115367a51092 Mon Sep 17 00:00:00 2001 From: leo Date: Tue, 2 Apr 2024 20:42:17 +0800 Subject: [PATCH] ux: use FontWeight.Bold for current head decorator --- src/Converters/DecoratorTypeConverters.cs | 3 +++ src/Views/Histories.axaml | 7 ++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/Converters/DecoratorTypeConverters.cs b/src/Converters/DecoratorTypeConverters.cs index 9a65ab4d..eb016360 100644 --- a/src/Converters/DecoratorTypeConverters.cs +++ b/src/Converters/DecoratorTypeConverters.cs @@ -36,5 +36,8 @@ namespace SourceGit.Converters return Application.Current?.FindResource(key) as StreamGeometry; }); + + public static readonly FuncValueConverter ToFontWeight = + new FuncValueConverter(v => v == Models.DecoratorType.CurrentBranchHead ? FontWeight.Bold : FontWeight.Regular); } } diff --git a/src/Views/Histories.axaml b/src/Views/Histories.axaml index 4a621c59..0dfedc9a 100644 --- a/src/Views/Histories.axaml +++ b/src/Views/Histories.axaml @@ -54,7 +54,12 @@ VerticalAlignment="Center"/> - +