From 81b824e95069aa014a8db86e50c5faa2547aede0 Mon Sep 17 00:00:00 2001 From: Samir Boulema Date: Tue, 14 Apr 2026 21:23:01 +0200 Subject: [PATCH 1/5] feat: Compact mode #172 --- CodeNav.slnx | 4 +++- .../ToolWindows/Templates/CodeItemStyles.xaml | 18 +++++++++--------- .../ToolWindows/Templates/ExpanderStyles.xaml | 2 +- 3 files changed, 13 insertions(+), 11 deletions(-) diff --git a/CodeNav.slnx b/CodeNav.slnx index 31353c6..0159e60 100644 --- a/CodeNav.slnx +++ b/CodeNav.slnx @@ -1,7 +1,9 @@ - + + + diff --git a/src/CodeNav.OutOfProc/ToolWindows/Templates/CodeItemStyles.xaml b/src/CodeNav.OutOfProc/ToolWindows/Templates/CodeItemStyles.xaml index 4e2daf9..b077970 100644 --- a/src/CodeNav.OutOfProc/ToolWindows/Templates/CodeItemStyles.xaml +++ b/src/CodeNav.OutOfProc/ToolWindows/Templates/CodeItemStyles.xaml @@ -47,8 +47,8 @@ BorderThickness="0" HorizontalContentAlignment="Stretch" HorizontalAlignment="Stretch" - Margin="-3,-3,-3,0" - Padding="3"> + Margin="-3,0,-3,0" + Padding="3,0,3,0"> @@ -128,7 +128,7 @@ @@ -146,7 +146,7 @@ @@ -173,7 +173,7 @@ @@ -206,7 +206,7 @@ @@ -224,7 +224,7 @@ @@ -253,7 +253,7 @@ @@ -271,7 +271,7 @@ diff --git a/src/CodeNav.OutOfProc/ToolWindows/Templates/ExpanderStyles.xaml b/src/CodeNav.OutOfProc/ToolWindows/Templates/ExpanderStyles.xaml index a7308ca..ae11492 100644 --- a/src/CodeNav.OutOfProc/ToolWindows/Templates/ExpanderStyles.xaml +++ b/src/CodeNav.OutOfProc/ToolWindows/Templates/ExpanderStyles.xaml @@ -101,7 +101,7 @@ FocusVisualStyle="{StaticResource ExpanderHeaderFocusVisual}" DockPanel.Dock="Top" BorderThickness="0" - Padding="3,3" + Padding="3,0,3,0" ContextMenu="{DynamicResource ItemContextMenu}" ToolTip="{Binding Tooltip}"> From bbb48281e1ef2f37147e99b2626028e9d66b8570 Mon Sep 17 00:00:00 2001 From: Samir Boulema Date: Wed, 15 Apr 2026 23:02:12 +0200 Subject: [PATCH 2/5] Use triggers --- .../FilterDialog/FilterDialogControl.xaml | 28 ++-- .../SettingsDialog/SettingsDialogControl.xaml | 4 +- .../ToolWindows/CodeNavToolWindowControl.xaml | 16 +-- .../ToolWindows/Templates/CodeItemStyles.xaml | 125 +++++++++++++++--- .../ToolWindows/Templates/ExpanderStyles.xaml | 12 +- src/CodeNav.OutOfProc/ViewModels/CodeItem.cs | 7 + 6 files changed, 142 insertions(+), 50 deletions(-) diff --git a/src/CodeNav.OutOfProc/Dialogs/FilterDialog/FilterDialogControl.xaml b/src/CodeNav.OutOfProc/Dialogs/FilterDialog/FilterDialogControl.xaml index de711ec..67da4e9 100644 --- a/src/CodeNav.OutOfProc/Dialogs/FilterDialog/FilterDialogControl.xaml +++ b/src/CodeNav.OutOfProc/Dialogs/FilterDialog/FilterDialogControl.xaml @@ -16,8 +16,8 @@ @@ -25,7 +25,7 @@ diff --git a/src/CodeNav.OutOfProc/ToolWindows/CodeNavToolWindowControl.xaml b/src/CodeNav.OutOfProc/ToolWindows/CodeNavToolWindowControl.xaml index bfe85c2..ca37b77 100644 --- a/src/CodeNav.OutOfProc/ToolWindows/CodeNavToolWindowControl.xaml +++ b/src/CodeNav.OutOfProc/ToolWindows/CodeNavToolWindowControl.xaml @@ -20,7 +20,7 @@ - + - + - + - + + + + + + + @@ -116,9 +123,15 @@ HorizontalAlignment="Stretch"> - + + FontSize="{Binding FontSize}" + VerticalAlignment="Center"> - @@ -146,9 +160,23 @@ + + + @@ -173,11 +201,21 @@ + + + + + @@ -194,9 +232,15 @@ HorizontalAlignment="Stretch"> - + + FontSize="{Binding FontSize}" + VerticalAlignment="Center"> - @@ -224,12 +269,31 @@ + + + + + + + + @@ -245,15 +309,22 @@ HorizontalAlignment="Stretch"> - + + FontSize="{Binding FontSize}" + VerticalAlignment="Center" /> - @@ -271,11 +342,21 @@ + + + + + diff --git a/src/CodeNav.OutOfProc/ToolWindows/Templates/ExpanderStyles.xaml b/src/CodeNav.OutOfProc/ToolWindows/Templates/ExpanderStyles.xaml index ae11492..9914560 100644 --- a/src/CodeNav.OutOfProc/ToolWindows/Templates/ExpanderStyles.xaml +++ b/src/CodeNav.OutOfProc/ToolWindows/Templates/ExpanderStyles.xaml @@ -74,7 +74,7 @@ - + @@ -83,7 +83,8 @@ - - + - + - + + + + + + + @@ -116,9 +123,15 @@ HorizontalAlignment="Stretch"> - + + FontSize="{Binding FontSize}" + VerticalAlignment="Center"> - @@ -146,9 +160,23 @@ + + + @@ -173,11 +201,21 @@ + + + + + @@ -194,9 +232,15 @@ HorizontalAlignment="Stretch"> - + + FontSize="{Binding FontSize}" + VerticalAlignment="Center"> - @@ -224,12 +269,31 @@ + + + + + + + + @@ -245,15 +309,22 @@ HorizontalAlignment="Stretch"> - + + FontSize="{Binding FontSize}" + VerticalAlignment="Center" /> - @@ -271,11 +342,21 @@ + + + + + diff --git a/src/CodeNav.OutOfProc/ToolWindows/Templates/ExpanderStyles.xaml b/src/CodeNav.OutOfProc/ToolWindows/Templates/ExpanderStyles.xaml index ae11492..9914560 100644 --- a/src/CodeNav.OutOfProc/ToolWindows/Templates/ExpanderStyles.xaml +++ b/src/CodeNav.OutOfProc/ToolWindows/Templates/ExpanderStyles.xaml @@ -74,7 +74,7 @@ - + @@ -83,7 +83,8 @@ - - + @@ -162,7 +162,7 @@ - + @@ -171,7 +171,7 @@