From f03b4bfe9dc9c3cebaa81fd5f158202723a1889e Mon Sep 17 00:00:00 2001 From: Siegfried Pammer Date: Sat, 9 May 2026 09:46:28 +0200 Subject: [PATCH] Lighter column-header hover, arrow cursor in filter popup Two readability fixes for the metadata grid: - Override DataGridColumnHeaderHoveredBackgroundBrush / Pressed to the toolbar accent palette so the Simple theme's saturated dark fill stops burying header text while sorting / resizing. - Force StandardCursorType.Arrow on the filter popup's root Border. Without it the EW-resize cursor set by the column header's drag-grip can leak into the popup if the pointer enters from there before Avalonia recomputes the cursor. Assisted-by: Claude:claude-opus-4-7:Claude Code --- ILSpy/App.axaml | 7 +++++++ ILSpy/Metadata/MetadataColumnBuilder.cs | 5 +++++ 2 files changed, 12 insertions(+) diff --git a/ILSpy/App.axaml b/ILSpy/App.axaml index 2cb802502..9196ef9a1 100644 --- a/ILSpy/App.axaml +++ b/ILSpy/App.axaml @@ -26,6 +26,13 @@ + + + + diff --git a/ILSpy/Metadata/MetadataColumnBuilder.cs b/ILSpy/Metadata/MetadataColumnBuilder.cs index 41b3940b5..403f5c236 100644 --- a/ILSpy/Metadata/MetadataColumnBuilder.cs +++ b/ILSpy/Metadata/MetadataColumnBuilder.cs @@ -182,6 +182,11 @@ namespace ILSpy.Metadata BorderBrush = Brushes.Gray, BorderThickness = new Thickness(1), Background = Brushes.White, + // Force the arrow cursor on the popup surface — without this, the + // EW-resize cursor set on the DataGrid column header's drag-grip can + // leak into the popup if the pointer enters from there before + // Avalonia recomputes the cursor for the new hit-test target. + Cursor = new global::Avalonia.Input.Cursor(global::Avalonia.Input.StandardCursorType.Arrow), Child = new ScrollViewer { MaxHeight = 400, Content = popupContent,