Devicons and Font Awesome library in @salt

0 votes
asked Jun 20 in Wanted features by gsilva (120 points)

It would be great if Devicons and Font Awesome library could be used in @salt wink, this would help create nicer menus.


@startsalt ProcessMenu

!include <font-awesome/common.puml>

!include <font-awesome/gears.puml>


{* Administración | <$gears> Procesos | Reportes | Seguridad

Procesos | Asignar Prendas }



With the latest version reports this error:

1 Answer

0 votes
answered Jun 21 by plantuml (176,140 points)

Ok, good idea!

We add a special syntax to scale the sprites (using a star). So with last beta you can have:

!include <font-awesome/gears.puml>
{^"My group box<$gears*.3>"
  Login    | "<$gears*.3>MyName   "
  Password | "****     "
  [Cancel] | [  OK<$gears*.3>   ]

Is this what you are looking for ?

This has not been really tested, so feeback welcome!

commented Jun 26 by gsilva (120 points)
We're on the right track.
But unfortunately it still fails for a drop-down menu.
If the menu is not foldable, the icon is drawn.
Another problem that arises is the background color of the icon versus the background color of the menu.
I'll report that in another issue anyway.