Skip to content

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#

The dock panes' tabs are 23 px high with 10 px beside their text: more room in the tab strip

Alexander Graefbe0023fc91df
diff --git a/WaveDudeNext.WPF/Themes/Controls.xaml b/WaveDudeNext.WPF/Themes/Controls.xaml
index 37b4d95..6f8ccb4 100644
--- a/WaveDudeNext.WPF/Themes/Controls.xaml
+++ b/WaveDudeNext.WPF/Themes/Controls.xaml
@@ -796,7 +796,10 @@ version. It is distributed WITHOUT ANY WARRANTY. See the LICENSE.md file or
<Setter.Value>
<Style TargetType="{x:Type ListBoxItem}">
<Setter Property="Foreground" Value="{DynamicResource ToolTabForeground}" />
- <Setter Property="Padding" Value="6,2" />
+ <!-- a tab is 23 px high, as a tree row, a toolbar button and a menu entry are, its text centred the same way
+ (4 px above, 3 and the border's 1 below) and 10 px from the tab's edge, the side border included
+ (2026-11-06, the user's request: at 6,2 the tabs were 20 px high and stood cramped) -->
+ <Setter Property="Padding" Value="9,4,9,3" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type ListBoxItem}">