From 4c60818d682dd26cf2200f2d2281e275b6cc41a3 Mon Sep 17 00:00:00 2001 From: leo Date: Tue, 15 Oct 2024 09:18:24 +0800 Subject: [PATCH] ux: new style for current HEAD --- src/Views/CommitRefsPresenter.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Views/CommitRefsPresenter.cs b/src/Views/CommitRefsPresenter.cs index 71eddc66..628a7cd3 100644 --- a/src/Views/CommitRefsPresenter.cs +++ b/src/Views/CommitRefsPresenter.cs @@ -77,12 +77,9 @@ namespace SourceGit.Views var iconRect = new RoundedRect(new Rect(x, 0, 16, 16), new CornerRadius(2, 0, 0, 2)); var entireRect = new RoundedRect(new Rect(x, 0, item.Width, 16), new CornerRadius(2)); - using (context.PushTransform(Matrix.CreateTranslation(x + 3, 3))) - context.DrawGeometry(fg, null, item.Icon); - if (item.IsHead) { - using (context.PushOpacity(.4)) + using (context.PushOpacity(.6)) context.DrawRectangle(item.Brush, null, entireRect); context.DrawText(item.Label, new Point(x + 16, 8.0 - item.Label.Height * 0.5)); @@ -99,6 +96,9 @@ namespace SourceGit.Views context.DrawRectangle(null, new Pen(item.Brush), entireRect); } + using (context.PushTransform(Matrix.CreateTranslation(x + 3, 3))) + context.DrawGeometry(fg, null, item.Icon); + x += item.Width + 4; } }