From a3ffa7a7d6744580df5ce024d732e55a6fc187a7 Mon Sep 17 00:00:00 2001 From: Siegfried Pammer Date: Thu, 4 Jun 2026 21:06:03 +0200 Subject: [PATCH] Don't bleed custom node text colour through the selection Auto-loaded and non-public assembly-tree nodes set an explicit TextBlock foreground, which overrode the selected-row foreground and left the dim/gray colour bleeding through the accent selection fill -- often barely legible. Scope those foreground setters to DataGridRow:not(:selected) so the override drops on selection and the text inherits the normal selected-row foreground, like every other node. --- ILSpy/AssemblyTree/AssemblyListPane.axaml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/ILSpy/AssemblyTree/AssemblyListPane.axaml b/ILSpy/AssemblyTree/AssemblyListPane.axaml index 56aff2cea..bdcd30eab 100644 --- a/ILSpy/AssemblyTree/AssemblyListPane.axaml +++ b/ILSpy/AssemblyTree/AssemblyListPane.axaml @@ -7,13 +7,18 @@ x:Class="ILSpy.AssemblyTree.AssemblyListPane" x:DataType="tree:AssemblyTreeModel"> - -