diff --git a/src/Notepads/Controls/DiffViewer/SideBySideDiffViewer.xaml b/src/Notepads/Controls/DiffViewer/SideBySideDiffViewer.xaml index 75cdd1464..407935940 100644 --- a/src/Notepads/Controls/DiffViewer/SideBySideDiffViewer.xaml +++ b/src/Notepads/Controls/DiffViewer/SideBySideDiffViewer.xaml @@ -1,116 +1,96 @@ - + - - - - - - + + + + + + - - + + - + - - + + - - + - - + + - - - + + + Grid.Row="1" + Padding="6,0,8,6" + HorizontalScrollBarVisibility="Hidden" + VerticalScrollBarVisibility="Hidden" + IsTabStop="False"> - + - - + - - + + - - + - + VerticalAlignment="Center" + FontStyle="Italic" + d:Text="After your changes" /> + VerticalScrollBarVisibility="Auto" + IsTabStop="False"> - + diff --git a/src/Notepads/Controls/FindAndReplace/FindAndReplaceControl.xaml b/src/Notepads/Controls/FindAndReplace/FindAndReplaceControl.xaml index b4cc714b3..0015256b3 100644 --- a/src/Notepads/Controls/FindAndReplace/FindAndReplaceControl.xaml +++ b/src/Notepads/Controls/FindAndReplace/FindAndReplaceControl.xaml @@ -1,92 +1,153 @@ - - - + + + + + + - - - - - - + + Click="ToggleReplaceModeButton_OnClick" + IsTabStop="False" /> - - + + IsSpellCheckEnabled="False" + KeyDown="FindBar_OnKeyDown" + LostFocus="FindBar_LostFocus" + d:PlaceholderText="Find" + TextChanged="FindBar_OnTextChanged" /> + + + + + + + + + + + + + + + + + + + + + + + + + - - + + + + + + + + + + + + + + + + + + + + + + + + Click="DismissButton_OnClick" + IsTabStop="False" /> - + + + + @@ -175,33 +240,33 @@ diff --git a/src/Notepads/Controls/FindAndReplace/FindAndReplaceControl.xaml.cs b/src/Notepads/Controls/FindAndReplace/FindAndReplaceControl.xaml.cs index 18cf21b3f..6367221e7 100644 --- a/src/Notepads/Controls/FindAndReplace/FindAndReplaceControl.xaml.cs +++ b/src/Notepads/Controls/FindAndReplace/FindAndReplaceControl.xaml.cs @@ -77,13 +77,15 @@ private async void ThemeSettingsService_OnAccentColorChanged(object sender, Colo public double GetHeight(bool showReplaceBar) { + double FindAndReplaceRootGridHeight = 36; + if (showReplaceBar) { - return FindBarPlaceHolder.Height + ReplaceBarPlaceHolder.Height; + return FindAndReplaceRootGridHeight + FindAndReplaceRootGridHeight; } else { - return FindBarPlaceHolder.Height; + return FindAndReplaceRootGridHeight; } } @@ -116,7 +118,8 @@ public void ShowReplaceBar(bool showReplaceBar) if (showReplaceBar) { ToggleReplaceModeButtonGrid.SetValue(Grid.RowSpanProperty, 2); - ToggleReplaceModeButton.Content = new FontIcon { Glyph = "\xE011", FontSize = 12 }; + ToggleReplaceModeButton.VerticalAlignment = VerticalAlignment.Stretch; + ToggleReplaceModeButton.Content = "\uE70D"; ReplaceBarPlaceHolder.Visibility = Visibility.Visible; if (!string.IsNullOrEmpty(FindBar.Text)) { @@ -127,7 +130,8 @@ public void ShowReplaceBar(bool showReplaceBar) else { ToggleReplaceModeButtonGrid.SetValue(Grid.RowSpanProperty, 1); - ToggleReplaceModeButton.Content = new FontIcon { Glyph = "\xE00F", FontSize = 12 }; + ToggleReplaceModeButton.VerticalAlignment = VerticalAlignment.Top; + ToggleReplaceModeButton.Content = "\uE76C"; ReplaceBarPlaceHolder.Visibility = Visibility.Collapsed; ReplaceButton.IsEnabled = false; ReplaceAllButton.IsEnabled = false; @@ -272,11 +276,11 @@ private void OptionButtonFlyoutItem_OnClick(object sender, RoutedEventArgs e) if (MatchCaseToggle.IsChecked || MatchWholeWordToggle.IsChecked || UseRegexToggle.IsChecked) { - OptionButtonSelectionIndicator.Visibility = Visibility.Visible; + OptionButtonSelectionIndicatorLineVisible.Begin(); } else { - OptionButtonSelectionIndicator.Visibility = Visibility.Collapsed; + OptionButtonSelectionIndicatorLineCollapsed.Begin(); } } diff --git a/src/Notepads/Controls/GoTo/GoToControl.xaml b/src/Notepads/Controls/GoTo/GoToControl.xaml index 296793793..fd9a59ae1 100644 --- a/src/Notepads/Controls/GoTo/GoToControl.xaml +++ b/src/Notepads/Controls/GoTo/GoToControl.xaml @@ -1,14 +1,17 @@ - + - - + @@ -16,49 +19,56 @@ - + - - - + + Visibility="Collapsed" + d:Visibility="Visible" + Click="SearchButton_OnClick" + IsTabStop="False" /> + Click="DismissButton_OnClick" + IsTabStop="False" /> diff --git a/src/Notepads/Resource/DismissButtonStyle.xaml b/src/Notepads/Resource/DismissButtonStyle.xaml index eb87ae7a1..8ce87e3a5 100644 --- a/src/Notepads/Resource/DismissButtonStyle.xaml +++ b/src/Notepads/Resource/DismissButtonStyle.xaml @@ -1,59 +1,81 @@ - + -