File tree Expand file tree Collapse file tree 3 files changed +16
-3
lines changed Expand file tree Collapse file tree 3 files changed +16
-3
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,13 @@ namespace Files.App.Data.Items
88 [ Obsolete ( "Remove once Omnibar goes out of experimental." ) ]
99 public sealed partial class NavigationBarSuggestionItem : ObservableObject , IOmnibarTextMemberPathProvider
1010 {
11+ private object ? _Icon ;
12+ public object ? Icon
13+ {
14+ get => _Icon ;
15+ set => SetProperty ( ref _Icon , value ) ;
16+ }
17+
1118 private string ? _Text ;
1219 public string ? Text
1320 {
Original file line number Diff line number Diff line change 380380 <ColumnDefinition Width =" Auto" />
381381 </Grid .ColumnDefinitions>
382382
383- <ContentPresenter Grid.Column=" 0" >
384- <controls : ThemedIcon Style =" {ThemeResource App.ThemedIcons.Filter}" />
385- </ContentPresenter >
383+ <Viewbox
384+ Grid.Column=" 0"
385+ Width=" 16"
386+ Height=" 16" >
387+ <ContentPresenter Content =" {x:Bind Icon, Mode=OneWay}" />
388+ </Viewbox >
386389
387390 <!-- Primary Title -->
388391 <TextBlock
389392 x:Name=" PrimaryDisplayBlock"
390393 Grid.Column=" 1"
394+ VerticalAlignment=" Center"
391395 Foreground=" {ThemeResource TextFillColorPrimaryBrush}"
392396 MaxLines=" 1"
393397 TextTrimming=" CharacterEllipsis"
399403 <keyboard : KeyboardShortcut
400404 x:Name=" RightAlignedKeyboardShortcut"
401405 Grid.Column=" 2"
406+ VerticalAlignment=" Center"
402407 HotKeys=" {x:Bind HotKeys, Mode=OneWay}" />
403408 </Grid >
404409 </DataTemplate >
Original file line number Diff line number Diff line change @@ -1147,6 +1147,7 @@ public void PopulateOmnibarSuggestionsForCommandPaletteMode()
11471147 command . Code . ToString ( ) . Contains ( OmnibarCommandPaletteModeText , StringComparison . OrdinalIgnoreCase ) ) )
11481148 . Select ( command => new NavigationBarSuggestionItem ( )
11491149 {
1150+ Icon = command . Icon ,
11501151 Text = command . Code . ToString ( ) ,
11511152 PrimaryDisplay = command . Description ,
11521153 HotKeys = command . HotKeys ,
You can’t perform that action at this time.
0 commit comments