style: search bar style

This commit is contained in:
leo 2024-03-12 16:32:40 +08:00
parent a37c11e32f
commit ea49de2379
2 changed files with 9 additions and 10 deletions

View file

@ -364,9 +364,9 @@
</StackPanel> </StackPanel>
</TextBox.InnerRightContent> </TextBox.InnerRightContent>
</TextBox> </TextBox>
<Button Classes="icon_button" <Button Margin="5,0,0,0"
Margin="5,0,0,0"
Width="28" Width="28"
Background="Transparent"
VerticalAlignment="Stretch" VerticalAlignment="Stretch"
Command="{x:Static aes:SearchCommands.FindPrevious}"> Command="{x:Static aes:SearchCommands.FindPrevious}">
<ToolTip.Tip> <ToolTip.Tip>
@ -379,10 +379,10 @@
Width="14" Width="14"
Fill="{DynamicResource Brush.FG1}"/> Fill="{DynamicResource Brush.FG1}"/>
</Button> </Button>
<Button Classes="icon_button" <Button Margin="3,0,0,0"
Margin="3,0,0,0"
VerticalAlignment="Stretch" VerticalAlignment="Stretch"
Width="28" Width="28"
Background="Transparent"
Command="{x:Static aes:SearchCommands.FindNext}"> Command="{x:Static aes:SearchCommands.FindNext}">
<ToolTip.Tip> <ToolTip.Tip>
<TextBlock Text="{x:Static ae:SR.SearchFindNextText}" /> <TextBlock Text="{x:Static ae:SR.SearchFindNextText}" />
@ -409,10 +409,10 @@
Margin="0 0 0 0" Margin="0 0 0 0"
CornerRadius="2" CornerRadius="2"
Text="{Binding ReplacePattern, RelativeSource={RelativeSource TemplatedParent}}" /> Text="{Binding ReplacePattern, RelativeSource={RelativeSource TemplatedParent}}" />
<Button Classes="icon_button" <Button Margin="5, 0, 0, 0"
Margin="5, 0, 0, 0"
VerticalAlignment="Stretch" VerticalAlignment="Stretch"
Width="28" Width="28"
Background="Transparent"
Command="{x:Static aes:SearchCommands.ReplaceNext}"> Command="{x:Static aes:SearchCommands.ReplaceNext}">
<ToolTip.Tip> <ToolTip.Tip>
<TextBlock Text="{x:Static ae:SR.SearchReplaceNext}" /> <TextBlock Text="{x:Static ae:SR.SearchReplaceNext}" />
@ -424,10 +424,10 @@
Width="12" Width="12"
Fill="{DynamicResource Brush.FG1}"/> Fill="{DynamicResource Brush.FG1}"/>
</Button> </Button>
<Button Classes="icon_button" <Button Margin="3, 0, 0, 0"
Margin="3, 0, 0, 0"
VerticalAlignment="Stretch" VerticalAlignment="Stretch"
Width="28" Width="28"
Background="Transparent"
Command="{x:Static aes:SearchCommands.ReplaceAll}"> Command="{x:Static aes:SearchCommands.ReplaceAll}">
<ToolTip.Tip> <ToolTip.Tip>
<TextBlock Text="{x:Static ae:SR.SearchReplaceAll}" /> <TextBlock Text="{x:Static ae:SR.SearchReplaceAll}" />
@ -443,7 +443,7 @@
<StackPanel Name="PART_MessageView" <StackPanel Name="PART_MessageView"
IsVisible="False" IsVisible="False"
Orientation="Horizontal" Orientation="Horizontal"
Margin="0 5 0 0 " Margin="0 5 0 0"
Grid.Column="2" Grid.Column="2"
Grid.Row="2"> Grid.Row="2">
<TextBlock Name="PART_MessageContent" <TextBlock Name="PART_MessageContent"

View file

@ -364,7 +364,6 @@
Margin="4,2" Margin="4,2"
FontSize="12" FontSize="12"
Height="24" Height="24"
CornerRadius="12"
BorderThickness="1" BorderThickness="1"
BorderBrush="{DynamicResource Brush.Border2}" BorderBrush="{DynamicResource Brush.Border2}"
Background="{DynamicResource Brush.Contents}" Background="{DynamicResource Brush.Contents}"