From a8d06ce042fe1125d5c69f5c7d6204307c2c61c8 Mon Sep 17 00:00:00 2001 From: leo Date: Sun, 7 Apr 2024 15:00:18 +0800 Subject: [PATCH] ux: set RenderOptions.BitmapInterpolationMode = BitmapInterpolationMode.HighQuality for avatars --- src/Views/Avatar.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Views/Avatar.cs b/src/Views/Avatar.cs index 0627175e..6eaf828f 100644 --- a/src/Views/Avatar.cs +++ b/src/Views/Avatar.cs @@ -7,6 +7,7 @@ using Avalonia; using Avalonia.Controls; using Avalonia.Interactivity; using Avalonia.Media; +using Avalonia.Media.Imaging; namespace SourceGit.Views { @@ -48,6 +49,8 @@ namespace SourceGit.Views ContextMenu = new ContextMenu(); ContextMenu.Items.Add(refetch); + + RenderOptions.SetBitmapInterpolationMode(this, BitmapInterpolationMode.HighQuality); } public override void Render(DrawingContext context)