Recent

Author Topic: Lazarus Dark Theme Windows  (Read 7285 times)

d7_2_laz

  • Hero Member
  • *****
  • Posts: 552
Re: Lazarus Dark Theme Windows
« Reply #15 on: January 13, 2024, 10:58:54 pm »
Even the example „use_inifile“ doesn’t work??

Take that one as attached. It is self-contained and has all necessary files within (I don’t  have the package itself installed).
// -> If that works, afterwards you may remove the dependency to the subdir “unitsDarkmode_fix17” within the options for “path” and try again..

In uMainForm.pas, look at:
Code: Pascal  [Select][+][-]
  1. initialization
  2.   SetDarkStyle;

And
Code: Pascal  [Select][+][-]
  1. procedure SetDarkStyle;
  2. .
  3.      uMetaDarkStyle.ApplyMetaDarkStyle(DefaultDark);

Follow it for to study …. It’s the anchor for all …

« Last Edit: January 13, 2024, 11:14:36 pm by d7_2_laz »
Lazarus 3.6  FPC 3.2.2 Win10 64bit

Hansaplast

  • Hero Member
  • *****
  • Posts: 689
  • Tweaking4All.com
    • Tweaking4All
Re: Lazarus Dark Theme Windows
« Reply #16 on: January 14, 2024, 02:32:27 pm »
Even the example „use_inifile“ doesn’t work??
Take that one as attached. It is self-contained and has all necessary files within (I don’t  have the package itself installed).


Your example worked! Thank you!  :)
I'll study it to see how I can best use this.
Thanks again!

d7_2_laz

  • Hero Member
  • *****
  • Posts: 552
Re: Lazarus Dark Theme Windows
« Reply #17 on: January 14, 2024, 02:52:00 pm »
Good, so then you will have a good starting point for to look and get familiar with.

But please remember, this test project does use a meanwhile older local copy (within the sub-directory) of some few metadarkstyle files. Having some modifications in it.
At the end you surely want to use the files as installed from the package.
For that you should, finally, remove the subdir from the path parameter of the project settings.
Hopefully that works the same way.
Lazarus 3.6  FPC 3.2.2 Win10 64bit

 

TinyPortal © 2005-2018