From 54ed2955885065a041dbcb56762a5ee1f8ac4302 Mon Sep 17 00:00:00 2001 From: gabrielconl <84711285+gabrielconl@users.noreply.github.com> Date: Thu, 9 Sep 2021 21:00:46 +0300 Subject: [PATCH] Search box visual tweaks (#11105) Made some changes to the search box: * Adjusted spacing inside the box * Detached the search box from the titlebar (as explained [here](https://github.com/microsoft/terminal/issues/1375#issuecomment-856667292)) * The search box is now 8px further to the left, in case the scrollbar is always enabled * Made some controls use default properties, so that they'll adjust nicely to the 2.6 styles Other: the search box and command palette now use OverlayCornerRadius Before/After: ![image](https://user-images.githubusercontent.com/84711285/131888377-513b9de4-a653-4086-9a67-8718c64dc75b.png) --- src/cascadia/TerminalApp/CommandPalette.xaml | 2 +- .../TerminalControl/SearchBoxControl.xaml | 27 +++++++++++-------- 2 files changed, 17 insertions(+), 12 deletions(-) diff --git a/src/cascadia/TerminalApp/CommandPalette.xaml b/src/cascadia/TerminalApp/CommandPalette.xaml index 3fbc4490e..29dbfb900 100644 --- a/src/cascadia/TerminalApp/CommandPalette.xaml +++ b/src/cascadia/TerminalApp/CommandPalette.xaml @@ -407,7 +407,7 @@ HorizontalAlignment="Stretch" VerticalAlignment="Top" Windows10version1903:Shadow="{StaticResource CommandPaletteShadow}" - CornerRadius="{ThemeResource ControlCornerRadius}" + CornerRadius="{ThemeResource OverlayCornerRadius}" PointerPressed="_backdropPointerPressed" Style="{ThemeResource CommandPaletteBackground}"> diff --git a/src/cascadia/TerminalControl/SearchBoxControl.xaml b/src/cascadia/TerminalControl/SearchBoxControl.xaml index 494b71609..a2fbf6e89 100644 --- a/src/cascadia/TerminalControl/SearchBoxControl.xaml +++ b/src/cascadia/TerminalControl/SearchBoxControl.xaml @@ -16,18 +16,23 @@ @@ -227,14 +232,15 @@ -