Forum > General

Lazarus Dark theme...

<< < (6/14) > >>

madel:
Does anyone know how to force qt5 dark mode on Windows 7 which doesn't have one unlike Win10 or 11 as qt5 simply follows the OS theme

madel:
Alright so I kinda found a way to force a specific style using qt5 widgets. Done by creating lazarus.exe shortcut (in taskbar or anywhere) and passing -style xxx, but so far only 'fusion' is working, does anyone know qt5 dark style names? I've looked but couldn't find anything.

Another possible way to force a style is by using stylesheets, by passing

--- Code: ----style default -stylesheet=path/to/style.qss
--- End code ---
example: I put my style.qss in c:\lazarus\styles

--- Code: ----style default -stylesheet=styles/style.qss
--- End code ---

But the problem with that is it doesn't match lazarus IDE, and I don't think any readily available stylesheet will since it probably must be made specifically for lazarus but I'm not sure and could be wrong but that's my experience.

EDIT: I found a way to get qt5 widget styles that are available on my system and only found ['windowsvista', 'windows', 'fusion'] so I guess I've got no option for a dark style. I might look more into it and I'll keep updating this comment with whatever I find hoping that it might help someone else moving the same path.

To find available widget styles:

--- Code: ---python -c "from PyQt5.QtWidgets import QStyleFactory; print(QStyleFactory.keys())"
--- End code ---
from a command prompt, obviously needs python installed. I also have PyQt5 installed with pip. I'm not sure if its output is directly involved with lazarus qt5 styling or not.

zamtmn:

--- Quote from: LeoBruno on August 07, 2022, 10:52:02 pm ---Where can I find up to date dlls?
Is there a official repository for 64bit dlls?


--- Quote from: zamtmn on February 28, 2022, 03:50:53 am ---https://disk.yandex.ru/d/_LWZvwTJG0x7vw

Copy darklazqt5/lazarus to your lazarus directory (this contains 64bit qt dll and udarkstyle.pas)
Apply darklazqt5/lazarus.pp.patch
Build Lazarus with qt5 widget type

contains only 64bit dll

--- End quote ---

--- End quote ---
of course no! oficial is https://download.qt.io and https://gitlab.com/freepascal.org/lazarus/lazarus/-/tree/main/lcl/interfaces/qt5/cbindings

zamtmn:
trunk win64 qt5pas.dll with dependencies https://ci.appveyor.com/project/zamtmn/qt5pas-win64

thierrybo:
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.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version