@@ -185,7 +185,18 @@ public void viewReady(AfterNavigationEvent afterNavigationEvent) {
185185 continue ;
186186 }
187187
188- list .add (new ListItem (new RouterLink (depPlugin .name , PluginView .class , new RouteParameters (Map .of (PLUGIN_ID , dependency )))));
188+ HorizontalLayout layout = new HorizontalLayout ();
189+ layout .setAlignItems (Alignment .CENTER );
190+
191+ Image depIcon = new Image (getImageUrl (depPlugin , ThemeUtil .isDark ()), depPlugin .name );
192+ depIcon .setWidth (1.5f , Unit .EM );
193+ depIcon .setHeight (1.5f , Unit .EM );
194+
195+ RouterLink link = new RouterLink (depPlugin .name , PluginView .class , new RouteParameters (Map .of (PLUGIN_ID , dependency )));
196+ link .getStyle ().setTextDecoration ("none" );
197+
198+ layout .add (depIcon , link );
199+ list .add (new ListItem (layout ));
189200 }
190201 }
191202
@@ -198,12 +209,15 @@ public void viewReady(AfterNavigationEvent afterNavigationEvent) {
198209
199210 HorizontalLayout layout = new HorizontalLayout ();
200211 layout .setAlignItems (Alignment .CENTER );
201- layout .add (new Badge ("optional" ));
202- layout .add (new RouterLink (depPlugin .name ,
203- PluginView .class ,
204- new RouteParameters (Map .of (PLUGIN_ID , dependency ))
205- ));
206212
213+ Image depIcon = new Image (getImageUrl (depPlugin , ThemeUtil .isDark ()), depPlugin .name );
214+ depIcon .setWidth (1.5f , Unit .EM );
215+ depIcon .setHeight (1.5f , Unit .EM );
216+
217+ RouterLink link = new RouterLink (depPlugin .name , PluginView .class , new RouteParameters (Map .of (PLUGIN_ID , dependency )));
218+ link .getStyle ().setTextDecoration ("none" );
219+
220+ layout .add (depIcon , new Badge ("optional" ), link );
207221 list .add (new ListItem (layout ));
208222 }
209223 }
0 commit comments