Interactive 2D wave optics simulator. Turn any image into a refractive scene, add sources, watch waves refract, diffract and interfere. Probes, intensity maps, video export.
C#
A selected Messages row with the focus takes the selection's foreground at every level
Alexander Graef740ce592fb7b
diff --git a/WaveDudeNext.WPF/Panes/MessagesPane.xaml b/WaveDudeNext.WPF/Panes/MessagesPane.xamlindex fee023c..b38c3f5 100644--- a/WaveDudeNext.WPF/Panes/MessagesPane.xaml+++ b/WaveDudeNext.WPF/Panes/MessagesPane.xaml@@ -168,6 +168,16 @@ version. It is distributed WITHOUT ANY WARRANTY. See the LICENSE.md file or<Setter Property="Foreground" Value="{DynamicResource LogFatal}" /><Setter Property="FontWeight" Value="Bold" /></DataTrigger>+ <!-- the selected row with the focus takes the selection's foreground, as the tree's does: a style trigger+ outranks the template's, so the level colours above stayed on the accent blue (2026-11-03, the user's+ report: Debug's grey on blue); last, since a later trigger of the same style wins -->+ <MultiTrigger>+ <MultiTrigger.Conditions>+ <Condition Property="IsSelected" Value="True" />+ <Condition Property="Selector.IsSelectionActive" Value="True" />+ </MultiTrigger.Conditions>+ <Setter Property="Foreground" Value="{DynamicResource TreeViewItemSelectedForeground}" />+ </MultiTrigger></Style.Triggers></Style></ListView.ItemContainerStyle>