Forum > General

Lazarus Dark theme...

<< < (7/11) > >>


--- Quote from: thierrybo on December 18, 2022, 02:26:00 pm ---On my Linux pc, either qt5 or gtk2 dark mode make Lazarus practically unusable, properties values in object inspector are in unreadable, dark blue color.

--- End quote ---

You can always customise all of these through Tools > Options > Form Editor, Object inspector etc...

Anyone know how to change colors for the dropdown autocomplete window?

Edit: Figured it out, from the expected options window under Editor > Display > Colors, you have to change the Foreground of each property under Object pascal. My mistake was that I set Default text amd Reserved word  etc. and all code looked correct but not in autocomplete window.

What could make it easier is using Delphi IDE Theme Editor and apply a color scheme then edit the things you need.

Another variant of the dark theme for windows. Without qt, just installing the package metadarkstyledsgn from

So, not too sure of my way around Windows. In Linux, there is a tool, qt5ct (or qt6ct) that gives you very simple, very easy and complete control of how you app works.

I cannot find any mention of a windows version but maybe a more committed windows user can do better ?

All it does is establish a small set of config files with your choice of colours, you start your app with a particular env var that tells the Qt app to look at those config files. As most of that behaviour is built into Qt5 itself, I'd expect it to be there in a Windows Qt binary as well.

Is it worthwhile investigating to see if I am right, Windows Qt apps also obey that env var ?  It would  be dead easy to make a Lazarus app that writes the config files ....

Easy way to find out if your Windows Qt5 binary knows about the env var is to search the binary for it, here are two ways I would do it under Linux, maybe a windows user will recognise one or the other and apply the same trick to your Lazarus Qt5 binary -

--- Code: Bash  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---dbannon@dell:~$ strings tomboy-ng-qt5 | grep QT_QPA_PLATFORMTHEMEQT_QPA_PLATFORMTHEME : QT_QPA_PLATFORMTHEMEQT_QPA_PLATFORMTHEMEdbannon@dell:~$ grep -ni QT_QPA_PLATFORMTHEME tomboy-ng-qt5Binary file tomboy-ng-qt5 matches
Or put that lazarus windows qt5 binary somewhere I can find it and I will search it for you ......



--- Quote from: zamtmn on April 07, 2023, 01:58:24 am ---Another variant of the dark theme for windows. Without qt, just installing the package metadarkstyledsgn from

--- End quote ---
You made someone very happy, thank you! :-*


[0] Message Index

[#] Next page

[*] Previous page

Go to full version