From 1f6e5b8f92f484a99a99032bda524df50793771c Mon Sep 17 00:00:00 2001 From: MyDrift Date: Thu, 22 Aug 2024 21:51:23 +0200 Subject: [PATCH] add padding & margin to make search look good --- functions/public/Invoke-WPFUIElements.ps1 | 2 +- xaml/inputXML.xaml | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/functions/public/Invoke-WPFUIElements.ps1 b/functions/public/Invoke-WPFUIElements.ps1 index 2ec3f2bd..2319d6fe 100644 --- a/functions/public/Invoke-WPFUIElements.ps1 +++ b/functions/public/Invoke-WPFUIElements.ps1 @@ -35,7 +35,7 @@ function Invoke-WPFUIElements { if (!$borderstyle -or !$HoverTextBlockStyle -or !$ColorfulToggleSwitchStyle) { throw "Failed to retrieve Styles using 'FindResource' from main window element." } - + $targetGrid = $window.FindName($targetGridName) if (!$targetGrid) { diff --git a/xaml/inputXML.xaml b/xaml/inputXML.xaml index e80e715d..add30502 100644 --- a/xaml/inputXML.xaml +++ b/xaml/inputXML.xaml @@ -686,7 +686,8 @@ BorderThickness="1" Name="SearchBar" Foreground="{MainForegroundColor}" Background="{MainBackgroundColor}" - Padding="3,3,0,0" + Padding="3,3,30,0" + Margin="5,0,0,0" ToolTip="Press Ctrl-F and type app name to filter application list below. Press Esc to reset the filter">