Skip to content

Commit 8e09c3a

Browse files
committed
ux: style for searching keyword in command palette
Signed-off-by: leo <longshuang@msn.cn>
1 parent da39cb9 commit 8e09c3a

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

src/Views/RepositoryCommandPalette.axaml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -90,12 +90,18 @@
9090
<Border Grid.Column="1" Margin="8,0,0,0" IsHitTestVisible="False">
9191
<TextBlock VerticalAlignment="Center" Text="{Binding Label, Mode=OneWay}"/>
9292
</Border>
93-
<TextBlock Grid.Column="2"
94-
Margin="8,0,0,0"
95-
VerticalAlignment="Center"
96-
FontSize="12"
97-
Foreground="{DynamicResource MenuFlyoutItemKeyboardAcceleratorTextForeground}"
98-
Text="{Binding Keyword, Mode=OneWay}"/>
93+
<Border Grid.Column="2"
94+
Height="18"
95+
Margin="8,0,0,0" Padding="6,0"
96+
CornerRadius="9"
97+
Background="{DynamicResource Brush.Popup}"
98+
BorderThickness="1" BorderBrush="{DynamicResource Brush.Border2}"
99+
IsHitTestVisible="False">
100+
<TextBlock VerticalAlignment="Center"
101+
FontSize="12"
102+
Foreground="{DynamicResource MenuFlyoutItemKeyboardAcceleratorTextForeground}"
103+
Text="{Binding Keyword, Mode=OneWay}"/>
104+
</Border>
99105
</Grid>
100106
</DataTemplate>
101107
</ListBox.ItemTemplate>

0 commit comments

Comments
 (0)