Recent

Author Topic: Lazarus Dark theme...  (Read 26404 times)

madel

  • New Member
  • *
  • Posts: 19
Re: Lazarus Dark theme...
« Reply #30 on: January 29, 2023, 03:19:11 am »
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.

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

madel

  • New Member
  • *
  • Posts: 19
Re: Lazarus Dark theme...
« Reply #31 on: January 29, 2023, 05:04:14 am »
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.
« Last Edit: January 29, 2023, 05:40:26 am by madel »

zamtmn

  • Hero Member
  • *****
  • Posts: 594
Re: Lazarus Dark theme...
« Reply #32 on: April 07, 2023, 01:58:24 am »
Another variant of the dark theme for windows. Without qt, just installing the package metadarkstyledsgn from https://github.com/zamtmn/metadarkstyle

dbannon

  • Hero Member
  • *****
  • Posts: 2786
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Lazarus Dark theme...
« Reply #33 on: April 07, 2023, 02:45:23 am »
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  [Select][+][-]
  1. dbannon@dell:~$ strings tomboy-ng-qt5 | grep QT_QPA_PLATFORMTHEME
  2. QT_QPA_PLATFORMTHEME :
  3. QT_QPA_PLATFORMTHEME
  4. QT_QPA_PLATFORMTHEME
  5. dbannon@dell:~$ grep -ni QT_QPA_PLATFORMTHEME tomboy-ng-qt5
  6. Binary file tomboy-ng-qt5 matches

Or put that lazarus windows qt5 binary somewhere I can find it and I will search it for you ......

Davo
Lazarus 3, Linux (and reluctantly Win10/11, OSX Monterey)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

KodeZwerg

  • Hero Member
  • *****
  • Posts: 2007
  • Fifty shades of code.
    • Delphi & FreePascal
Re: Lazarus Dark theme...
« Reply #34 on: April 07, 2023, 03:04:04 am »
Another variant of the dark theme for windows. Without qt, just installing the package metadarkstyledsgn from https://github.com/zamtmn/metadarkstyle
You made someone very happy, thank you! :-*
« Last Edit: Tomorrow at 31:76:97 xm by KodeZwerg »

KodeZwerg

  • Hero Member
  • *****
  • Posts: 2007
  • Fifty shades of code.
    • Delphi & FreePascal
Re: Lazarus Dark theme...
« Reply #35 on: April 07, 2023, 05:16:20 pm »
Another variant of the dark theme for windows. Without qt, just installing the package metadarkstyledsgn from https://github.com/zamtmn/metadarkstyle
Is there a way that I just got one vertical ScrollBar for the Code-Editor?
Lazarus 2.3.0 (rev 91a1b7b2ba) FPC 3.2.2 x86_64-win64-win32/win64
(Win10 64bit)
« Last Edit: Tomorrow at 31:76:97 xm by KodeZwerg »

KodeZwerg

  • Hero Member
  • *****
  • Posts: 2007
  • Fifty shades of code.
    • Delphi & FreePascal
Re: Lazarus Dark theme...
« Reply #36 on: April 11, 2023, 09:27:48 am »
Am I the only person that having twice a vertical ScrollBar in different styles?
« Last Edit: Tomorrow at 31:76:97 xm by KodeZwerg »

zamtmn

  • Hero Member
  • *****
  • Posts: 594
Re: Lazarus Dark theme...
« Reply #37 on: April 11, 2023, 10:04:59 am »
no, of course it will be fixed, the patch will speed it up

tetrastes

  • Sr. Member
  • ****
  • Posts: 473
Re: Lazarus Dark theme...
« Reply #38 on: April 11, 2023, 11:47:30 am »
Am I the only person that having twice a vertical ScrollBar in different styles?

This is not ScrollBar, this is so called overview gutter. You can turn it off in Editor->Display options:
« Last Edit: April 11, 2023, 11:57:29 am by tetrastes »

KodeZwerg

  • Hero Member
  • *****
  • Posts: 2007
  • Fifty shades of code.
    • Delphi & FreePascal
Re: Lazarus Dark theme...
« Reply #39 on: April 11, 2023, 12:20:58 pm »
Am I the only person that having twice a vertical ScrollBar in different styles?

This is not ScrollBar, this is so called overview gutter. You can turn it off in Editor->Display options:
Ahhhhmazing! Yes exactly that was it, thanks my friend!
Sorry for confusion about my naming, I really thought it's a different styled ScrollBar that the darkmode has brought into my Lazarus, since I can do the same things like doing with the normal ScrollBar, drag drop click inside etc...
I never realized that it exists before I've installed the metadarkstyle package(s).
Again, sorry for the noise!  :-[  O:-)
« Last Edit: Tomorrow at 31:76:97 xm by KodeZwerg »

phoenix27

  • Jr. Member
  • **
  • Posts: 90
Re: Lazarus Dark theme...
« Reply #40 on: April 13, 2023, 04:16:28 pm »
I just installed the metadarkstyle but nothing changed. Is it automatic or should i do something?

KodeZwerg

  • Hero Member
  • *****
  • Posts: 2007
  • Fifty shades of code.
    • Delphi & FreePascal
Re: Lazarus Dark theme...
« Reply #41 on: April 13, 2023, 04:32:48 pm »
I just installed the metadarkstyle but nothing changed. Is it automatic or should i do something?
Installed both?
« Last Edit: Tomorrow at 31:76:97 xm by KodeZwerg »

phoenix27

  • Jr. Member
  • **
  • Posts: 90
Re: Lazarus Dark theme...
« Reply #42 on: April 13, 2023, 05:49:30 pm »
Yes i did, but nothing happens

chrv

  • Jr. Member
  • **
  • Posts: 58
Re: Lazarus Dark theme...
« Reply #43 on: April 13, 2023, 09:02:59 pm »
Hello everyone,

When I try to compile the MetaDarkStyle package, the compilation fails and I get the message

"metadarkstyle.pas(11,3) Fatal: Connot find LazarusPackageIntf used by MetaDarkStyle. Check if package FCL is in the dependencies of package MetaDarkStyle."

What am I missing?

Win32, Lazarus 2.012 FPC 3.2.0
Win32 Lazarus 2.0.12 FPC 3.2.0

KodeZwerg

  • Hero Member
  • *****
  • Posts: 2007
  • Fifty shades of code.
    • Delphi & FreePascal
Re: Lazarus Dark theme...
« Reply #44 on: April 13, 2023, 09:50:31 pm »
Yes i did, but nothing happens
After installing both packages, did you rebuild the IDE?
Is it automatic or should i do something?
It be activated automagical after successful install.
Win32, Lazarus 2.012 FPC 3.2.0
What am I missing?
Just a guess, a more current version of Lazarus.


With Lazarus 2.3.0 (rev main-2_3-3193-g3bdbedd91b) FPC 3.2.2 x86_64-win64-win32/win64 on Windows 10 64bit it works.
My only bug is with some checkboxes, like those inside of OPM, you will not see if they are checked or not (because dark checkbox with same dark ✓ sign)
And some highlighters not working, but still everything is very usable.
« Last Edit: Tomorrow at 31:76:97 xm by KodeZwerg »

 

TinyPortal © 2005-2018