Using the Lattice Diamond IDE in GNU/Linux

11 August, 2025
Discuss on Zubax Forum >
Pavel Kirienko
CEO & CTO

The Lattice Diamond IDE does not support the dark theme, but there is no mechanism in place to prevent the app from trying to follow the global system theme set in KDE. As such, using the app in a dark-themed desktop environment results in an incorrectly rendered and unusable UI, such as black text on a dark background, etc. There are a few mentions of this issue online, but to my knowledge, none of the discussions out there contain a working solution.

Behold the working solution:

  1. Remove the auto-generated config ~/.config/Trolltech.conf.
  2. export KDE_FULL_SESSION=
  3. Run the app: diamond

If that didn’t work, try emptying the KDE_SESSION_VERSION and XDG_CURRENT_DESKTOP environment variables as well.

To make the fix permanent, edit either the diamond wrapper script (which is located at diamond/bin/lin64/diamond inside the installation directory) or its diamond_env helper by adding the empty environment variable export statement from above.

The resulting default UI theme may look a bit dated. Adding the following to the aforementioned ~/.config/Trolltech.conf may improve the appearance:

[qt]
GUIEffects=none
KDE\contrast=7
KWinPalette\activeBackground=#e3e5e7
KWinPalette\activeBlend=#e3e5e7
KWinPalette\activeForeground=#232629
KWinPalette\activeTitleBtnBg=#eff0f1
KWinPalette\frame=#eff0f1
KWinPalette\inactiveBackground=#eff0f1
KWinPalette\inactiveBlend=#eff0f1
KWinPalette\inactiveForeground=#707d8a
KWinPalette\inactiveFrame=#eff0f1
KWinPalette\inactiveTitleBtnBg=#eff0f1
Palette\active=#232629, #fcfcfc, #ffffff, #f9fafa, #71757a, #bdc1c6, #232629, #ffffff, #232629, #ffffff, #eff0f1, #3b3d3f, #3daee9, #ffffff, #2980b9, #9b59b6, #f7f7f7, #000000, #f7f7f7, #232629, #232629
Palette\disabled=#a0a1a3, #f0f0f0, #ffffff, #eff0f1, #6b7074, #b4babf, #aaabac, #ffffff, #a8a9aa, #f3f3f3, #e3e5e7, #3b3d3f, #e3e5e7, #a0a1a3, #a3cae2, #d6bae1, #ebebeb, #000000, #f7f7f7, #232629, #232629
Palette\inactive=#232629, #fcfcfc, #ffffff, #f9fafa, #71757a, #bdc1c6, #232629, #ffffff, #232629, #ffffff, #eff0f1, #3b3d3f, #c2e0f5, #232629, #2980b9, #9b59b6, #f7f7f7, #000000, #f7f7f7, #232629, #232629
font="Noto Sans,10,-1,0,50,0,0,0,0,0"

Once edited, Trolltech.conf must be made read-only! The config was generated by switching the global theme to the light theme once before launching Diamond.

The resulting appearance is shown below:

Discuss on Zubax Forum >