mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-09 04:37:30 +02:00
[PowerRename] Resolve UI focus issue (#14605)
* UI tweaks * Fixed 0 margins * Fixed height for button * Update MainWindow.xaml
This commit is contained in:
@@ -64,7 +64,6 @@
|
||||
IsItemClickEnabled="False"
|
||||
Grid.ColumnSpan="6"
|
||||
ItemsSource="{x:Bind ExplorerItems, Mode=OneWay}"
|
||||
Margin="0,0,0,0"
|
||||
Grid.Row="1">
|
||||
<ListView.ItemContainerStyle>
|
||||
<Style TargetType="ListViewItem">
|
||||
@@ -121,17 +120,33 @@
|
||||
</ListView>
|
||||
</Grid>
|
||||
|
||||
<Grid Grid.Column="0" Grid.Row="1" VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
|
||||
<Grid Grid.Column="0" Grid.Row="1" MaxWidth="357" VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="*" />
|
||||
<RowDefinition Height="48" />
|
||||
</Grid.RowDefinitions>
|
||||
<ScrollViewer>
|
||||
|
||||
<StackPanel Orientation="Vertical" Padding="0,0,0,16" Margin="0,0,12,0">
|
||||
<Grid>
|
||||
<AutoSuggestBox x:Name="textBox_search" x:Uid="SearchBox" Height="40" VerticalContentAlignment="Center" ItemsSource="{x:Bind SearchMRU}" />
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*"/>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<AutoSuggestBox x:Name="textBox_search" x:Uid="SearchBox" Height="40" VerticalContentAlignment="Center" ItemsSource="{x:Bind SearchMRU}" />
|
||||
|
||||
<Button FontFamily="{ThemeResource SymbolThemeFontFamily}" VerticalAlignment="Center" Visibility="{Binding ElementName=checkBox_regex, Path=IsChecked}" MinHeight="32" Margin="4" x:Uid="RegExButton" Background="Transparent" BorderBrush="Transparent" Content="" HorizontalAlignment="Right">
|
||||
<Button Grid.Column="1"
|
||||
FontFamily="{ThemeResource SymbolThemeFontFamily}"
|
||||
VerticalAlignment="Center"
|
||||
Visibility="{Binding ElementName=checkBox_regex, Path=IsChecked}"
|
||||
Height="40"
|
||||
Width="28"
|
||||
Padding="0"
|
||||
Margin="0,0,-4,0"
|
||||
BorderBrush="Transparent"
|
||||
Background="Transparent"
|
||||
x:Uid="RegExButton"
|
||||
Content=""
|
||||
HorizontalAlignment="Right">
|
||||
<Button.Flyout>
|
||||
<Flyout x:Name="RegExFlyout">
|
||||
<Grid>
|
||||
@@ -153,7 +168,7 @@
|
||||
<TextBlock FontFamily="Consolas" Foreground="{ThemeResource ButtonForeground}" Text="{x:Bind Code}" />
|
||||
</Border>
|
||||
|
||||
<TextBlock Text="{x:Bind Description}" FontSize="12" Grid.Column="1" Margin="0,0,0,0" Foreground="{ThemeResource TextFillColorSecondaryBrush}" VerticalAlignment="Center" />
|
||||
<TextBlock Text="{x:Bind Description}" FontSize="12" Grid.Column="1" Foreground="{ThemeResource TextFillColorSecondaryBrush}" VerticalAlignment="Center" />
|
||||
</Grid>
|
||||
</DataTemplate>
|
||||
</ListView.ItemTemplate>
|
||||
@@ -174,9 +189,24 @@
|
||||
|
||||
<Rectangle Height="1" Fill="{ThemeResource CardStrokeColorDefaultBrush}" HorizontalAlignment="Stretch" Margin="0,16,0,20" />
|
||||
<Grid>
|
||||
<AutoSuggestBox x:Name="textBox_replace" Margin="0,0,0,0" x:Uid="ReplaceBox" Height="40" VerticalContentAlignment="Center" Padding="12,12,0,0" ItemsSource="{x:Bind ReplaceMRU}" />
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*"/>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<AutoSuggestBox x:Name="textBox_replace" x:Uid="ReplaceBox" Height="40" VerticalContentAlignment="Center" Padding="12,12,0,0" ItemsSource="{x:Bind ReplaceMRU}" />
|
||||
|
||||
<Button FontFamily="{ThemeResource SymbolThemeFontFamily}" VerticalAlignment="Center" MinHeight="32" Margin="4" x:Uid="FileCreationButton" Background="Transparent" BorderBrush="Transparent" Content="" HorizontalAlignment="Right">
|
||||
<Button FontFamily="{ThemeResource SymbolThemeFontFamily}"
|
||||
VerticalAlignment="Center"
|
||||
x:Uid="FileCreationButton"
|
||||
Grid.Column="1"
|
||||
Width="28"
|
||||
Height="40"
|
||||
Padding="0"
|
||||
Margin="0,0,-4,0"
|
||||
BorderBrush="Transparent"
|
||||
Background="Transparent"
|
||||
Content=""
|
||||
HorizontalAlignment="Right">
|
||||
<Button.Flyout>
|
||||
<Flyout x:Name="DateTimeFlyout" ShouldConstrainToRootBounds="False">
|
||||
<Grid>
|
||||
@@ -197,7 +227,7 @@
|
||||
<TextBlock FontFamily="Consolas" Foreground="{ThemeResource ButtonForeground}" Text="{x:Bind Code}" />
|
||||
</Border>
|
||||
|
||||
<TextBlock Text="{x:Bind Description}" FontSize="12" Grid.Column="1" Margin="0,0,0,0" Foreground="{ThemeResource TextFillColorSecondaryBrush}" VerticalAlignment="Center" />
|
||||
<TextBlock Text="{x:Bind Description}" FontSize="12" Grid.Column="1" Foreground="{ThemeResource TextFillColorSecondaryBrush}" VerticalAlignment="Center" />
|
||||
</Grid>
|
||||
</DataTemplate>
|
||||
</ListView.ItemTemplate>
|
||||
@@ -237,7 +267,7 @@
|
||||
<ToggleButton x:Name="toggleButton_enumItems" Content="" FontFamily="{ThemeResource SymbolThemeFontFamily}" MinHeight="32" x:Uid="ToggleButton_EnumItems" Style="{StaticResource CustomToggleButtonStyle}" />
|
||||
</StackPanel>
|
||||
</StackPanel>
|
||||
</ScrollViewer>
|
||||
|
||||
|
||||
<Rectangle Height="1" Fill="{ThemeResource CardStrokeColorDefaultBrush}" HorizontalAlignment="Stretch" Margin="0,0,12,0" VerticalAlignment="Top" Grid.Row="1" />
|
||||
|
||||
|
||||
Reference in New Issue
Block a user