Forum > General

Lazarus Dark mode

(1/3) > >>

wytwyt02:
The macOS and Win10 support dark mode, lazarus only support to change the editor schema, but how to change the entire lazarus ide to dark?

lainz:

--- Quote from: wytwyt02 on January 19, 2020, 07:04:13 am ---The macOS and Win10 support dark mode, lazarus only support to change the editor schema, but how to change the entire lazarus ide to dark?

--- End quote ---

Only Windows Explorer under Windows 10, and apps made for the store. Also with Electron apps there's an API to detect if the OS is running in dark mode and get the user color, and these are Win32 apps, so it must be possible to do with an app made with Lazarus.

There's an undocumented dll call that changes the theme of the application, but I tried it and didn't work. It applies the look of the Windows Explorer to the app.

On macOS I know is possible changing the manifest, but not everything is fine tuned and of course it requires latest trunk of fpc and lazarus.

xaver13:
I have tried so called greyeye theme from devianart https://www.deviantart.com/eversins/art/GreyEveTheme-FINAL-Windows-10-High-Contrast-Theme-643504863

Best result for me was when I changed "ButtonText" to more grey color (120,120,120, was 220,220,220) Lazarus looked quite fine. But I was not satisfied. F.e. outlook and start menu look ugly because of "high contrast" use. Maybe would be better to use another windows theme (not so agressive in dirrection to high contrast). Have you please another experience? Thank you very much for your opinions.

mr-highball:
there might be better info out there, but looking through msdn and some SO posts, as long as a manifest is included as a resource file that lets the OS know it's built to support styling, the app is linked with a particular lib, and a method is called (either for the entire app, or a particular control) themes would be supported,

(details for lib / method)
https://docs.microsoft.com/en-us/windows/win32/controls/cookbook-overview?redirectedfrom=MSDN

I haven't tried any of this stuff, just putting it here to maybe help

jwdietrich:
Well, but what I am searching for is a kind of notification (e.g. an event) that my app receives to get informed that the theme changed. At least it should be possible to get information if a dark or a light mode is currently active.

Navigation

[0] Message Index

[#] Next page

Go to full version