From 8f114e8a324f8678257dd38d9e5ed025b4327a43 Mon Sep 17 00:00:00 2001 From: leo Date: Fri, 23 Aug 2024 17:41:38 +0800 Subject: [PATCH] ux: change style for commit ref decorators (#395) * change font from `Fonts.Monospace` to `Fonts.Primary` * increase the font size --- src/Views/CommitBaseInfo.axaml | 4 ++-- src/Views/Histories.axaml | 4 ++-- src/Views/Histories.axaml.cs | 1 - 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/Views/CommitBaseInfo.axaml b/src/Views/CommitBaseInfo.axaml index 26192d12..d6ec6eae 100644 --- a/src/Views/CommitBaseInfo.axaml +++ b/src/Views/CommitBaseInfo.axaml @@ -100,8 +100,8 @@ BranchNameBackground="{DynamicResource Brush.DecoratorBranch}" TagNameBackground="{DynamicResource Brush.DecoratorTag}" LabelForeground="{DynamicResource Brush.DecoratorFG}" - FontFamily="{DynamicResource Fonts.Monospace}" - FontSize="10" + FontFamily="{DynamicResource Fonts.Primary}" + FontSize="11" VerticalAlignment="Center" Refs="{Binding Decorators}"/> diff --git a/src/Views/Histories.axaml b/src/Views/Histories.axaml index a06f805a..b89ab8c4 100644 --- a/src/Views/Histories.axaml +++ b/src/Views/Histories.axaml @@ -72,8 +72,8 @@ BranchNameBackground="{DynamicResource Brush.DecoratorBranch}" TagNameBackground="{DynamicResource Brush.DecoratorTag}" LabelForeground="{DynamicResource Brush.DecoratorFG}" - FontFamily="{DynamicResource Fonts.Monospace}" - FontSize="10" + FontFamily="{DynamicResource Fonts.Primary}" + FontSize="11" VerticalAlignment="Center" Refs="{Binding Decorators}"/> diff --git a/src/Views/Histories.axaml.cs b/src/Views/Histories.axaml.cs index 80192c1e..8ad7256a 100644 --- a/src/Views/Histories.axaml.cs +++ b/src/Views/Histories.axaml.cs @@ -11,7 +11,6 @@ using Avalonia.Input; using Avalonia.Interactivity; using Avalonia.Media; using Avalonia.Threading; -using Avalonia.Utilities; using Avalonia.VisualTree; namespace SourceGit.Views