Cameo/MagicDraw on Linux operating system does not look nearly as professional as in Windows. This is due fact that Cameo/Magicdraw uses the standard look and feel which is not visually appealing and the fonts are very small, especially on a smaller (14-inch) screen.
I created a plugin enabling users to use the wonderful open source FlatLAF look and feel theme (https://www.formdev.com/flatlaf/).
You can directly download the release without build from the following address:
https://github.com/modeldriven-hu/lookandfeel/releases/tag/1.0.0
- Cameo/MagicDraw latest
- Java JDK 11
- Maven
git clone https://github.com/modeldriven-hu/lookandfeel.git
Configure Cameo/MagicDraw root directory according to local setup, for example:
set CAMEO_ROOT=C:/home/Tools/Cameo
or when using PowerShell:
$env:CAMEO_ROOT = "C:/Home/Tools/Cameo"
or under Linux:
'export CAMEO_ROOT=/home/zsolt/tools/cameo'
Execute mvn clean package
in the git folder
Extract target/hu.modeldriven.lookandfeel.zip
into CAMEO_ROOT/plugins
Although Cameo is able to load our plugin at startup but it seems to have some issues with the dependent FlatLaf library. The solution for the problem right now is to add the library to the classpath of Cameo directly.
In CAMEO_ROOT/lib
folder there is a file called classpath.jar
. This is a
standard zip file.
- Extract the file
META-INF/MANIFEST.MF
to some location. This file contains the list of dependencies. - Add the text
flatlaf-2.5.jar
to the end of the file right aftery.jar
- Save the file and copy it back to the jar file
An alternative solution is to simply replace the existing classpath.jar file with the file from the release.
Just download the file from https://github.com/modeldriven-hu/lookandfeel/releases/download/1.0.0/classpath.jar
and overwrite the existing classpath.jar
with the downloaded one.
You need also to add flatlaf-2.5.jar to the CAMEO_ROOT/lib
folder. The jar file is located in hu.modeldriven.lookandfeel.zip
which you either downloaded from the website our built yourself.
- Copy
flatlaf-2.5.jar
file intoCAMEO_ROOT/lib
folder
In order to use the plugin you need to restart Cameo.
In the Options
menu select Flat look and feel
then select
the desired theme and press Apply.