From 6cffe3ccb89d1dc24afec690ced4b92ff4d7b5b5 Mon Sep 17 00:00:00 2001 From: Ari Sulistiono Date: Sun, 6 Sep 2026 10:01:20 +0700 Subject: [PATCH 1/5] Compact FAT header action hierarchy --- IoListTestingWindow.P2CompactHeader.cs | 67 ++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 IoListTestingWindow.P2CompactHeader.cs diff --git a/IoListTestingWindow.P2CompactHeader.cs b/IoListTestingWindow.P2CompactHeader.cs new file mode 100644 index 000000000..9d899819c --- /dev/null +++ b/IoListTestingWindow.P2CompactHeader.cs @@ -0,0 +1,67 @@ +using System.Windows; +using System.Windows.Controls; + +namespace ArIED61850Tester; + +/// +/// P2 bench-facing header compaction. +/// +/// P0 already separates operational actions from evidence/status actions. P2 only tightens +/// that existing hierarchy so the FAT header remains readable on normal engineering laptop +/// widths. Full evidence detail stays in the existing tooltips; protocol, evidence and grid +/// behavior are intentionally untouched. +/// +public partial class IoListTestingWindow +{ + private void ConfigureP2CompactHeader() + { + if (_p0PrimaryHeaderActions == null || _p0SecondaryHeaderActions == null) + return; + + _p0PrimaryHeaderActions.Margin = new Thickness(0); + _p0SecondaryHeaderActions.Margin = new Thickness(0, 3, 0, 0); + + foreach (var button in _p0PrimaryHeaderActions.Children.OfType