Devicons and Font Awesome library in @salt

+1 vote
asked Jun 20, 2018 in Wanted features by gsilva (160 points)

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

crying

@startsalt ProcessMenu

!include <font-awesome/common.puml>

!include <font-awesome/gears.puml>

{+

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

Procesos | Asignar Prendas }

}

@endsalt

With the latest version reports this error:

https://drive.google.com/file/d/1qL_XBuyKWoVKPwOb_AmS0zfttRZr_Iz7/view?usp=sharing

1 Answer

0 votes
answered Jun 21, 2018 by plantuml (295,000 points)

Ok, good idea!

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

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

Is this what you are looking for ?

This has not been really tested, so feeback welcome!

commented Jun 26, 2018 by gsilva (160 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.
...