Lazarus

Using the Lazarus IDE => General => Topic started by: Robert W.B. on July 27, 2021, 07:42:12 pm

Title: Lazarus Dark theme...
Post by: Robert W.B. on July 27, 2021, 07:42:12 pm
Hi. Is there any way to change to dark theme in Lazarus?
Title: Re: Lazarus Dark theme...
Post by: skalogryz on July 27, 2021, 07:58:17 pm
on macOS Lazarus looks pretty dark!
Title: Re: Lazarus Dark theme...
Post by: Gustavo 'Gus' Carreno on July 27, 2021, 08:08:28 pm
Hey Robert William Blennerhed,

Attached is an image of my Lazarus under Ubuntu's Dark Theme.

The only thing that isn't in Dark Mode is the Code Editor. That's by design and I've been lazy and haven't experimented with Code Editor Themes.

But yeah, under Linux you just have to set your OS's Dark Theme and Lazarus will comply.

I'm guessing the same is possible under Windows.

Unfortunately there are no themes implemented INSIDE Lazarus. It can only follow suite from what the OS is telling the GTK2 widgets.

So to answer your question on a technical and accurate sense: No.
To answer your question on a broader way: Yes. Just change your OS's theme. And then play around with the Code Editor colours.

Cheers,
Gus
Title: Re: Lazarus Dark theme...
Post by: Robert W.B. on July 27, 2021, 08:13:04 pm
Thanks for the Help.
Title: Re: Lazarus Dark theme...
Post by: Gustavo 'Gus' Carreno on July 27, 2021, 08:30:39 pm
Hey Robert William Blennerhed,

Thanks for the Help.

You're more than welcome!!

Cheers,
Gus
Title: Re: Lazarus Dark theme...
Post by: wp on July 27, 2021, 08:43:24 pm
The only thing that isn't in Dark Mode is the Code Editor. That's by design and I've been lazy and haven't experimented with Code Editor Themes.
Right-click on the editor. In the IDE options select "Editor" > "Display" > "Colors". The second dropdown in the right toolbar is the "Color scheme", select "Twilight" and the editor will be dark as well. Search the forum, there are contributions how to extend the list of color schemes.

I'm guessing the same is possible under Windows.
No. Windows does not have a real dark mode for the desktop applications, except for a few.
Title: Re: Lazarus Dark theme...
Post by: Gustavo 'Gus' Carreno on July 27, 2021, 10:38:52 pm
Hey WP,

The only thing that isn't in Dark Mode is the Code Editor. That's by design and I've been lazy and haven't experimented with Code Editor Themes.
Right-click on the editor. In the IDE options select "Editor" > "Display" > "Colors". The second dropdown in the right toolbar is the "Color scheme", select "Twilight" and the editor will be dark as well. Search the forum, there are contributions how to extend the list of color schemes.

Many thanks WP for reminding me where it is. Like I said, I've been lazy and I haven't played around with the themes, but nonetheless I had a vague idea about the general place where I could find it.

But I do appreciate the fact that you suggested Twilight. I always struggle with a selection on these things cuz I'm gonna spend SOOO much time looking at it that if I don't get used to it, it's gonna get my head in ;)

I'm guessing the same is possible under Windows.
No. Windows does not have a real dark mode for the desktop applications, except for a few.

Hummm, I wasn't aware that Windows doesn't have a Dark Theme. I'm aware that some apps have their own but I was under the impression that Windows already implemented an OS wide Dark Theme.
Maybe it's just me being so comfortable with it under Ubuntu, that I assume, wrongly, that Windows did it first, or had it already.

Oh well, there's another reason for choosing Linux :P

Cheers,
Gus
Title: Re: Lazarus Dark theme...
Post by: trev on July 28, 2021, 01:09:28 am
Oh well, there's another another reason for choosing Linux :P

Or macOS ;-)
Title: Re: Lazarus Dark theme...
Post by: Gustavo 'Gus' Carreno on July 28, 2021, 01:15:41 am
Hey Trev,

Or macOS ;-)

LOL!!! Yeah indeed :)

Anything that is based on Unix for me is a good choice. Anything but Windows :P

Cheers,
Gus
Title: Re: Lazarus Dark theme...
Post by: Gustavo 'Gus' Carreno on July 28, 2021, 01:21:40 am
Hey WP,

Thanks for the Twilight hint.

I have to say that it was a good start, but it wasn't completely to my liking...

Attached image is what I'm using now, based on some choices I got from VS Code. But it's still a work in progress cuz I'm not quite sure about the blue...

Cheers,
Gus
Title: Re: Lazarus Dark theme...
Post by: olly on July 28, 2021, 01:55:48 am
It's not actually too hard to custom color components but...

Nothing is natively drawn in SynEdit, TreeView or Toolbar but the annoying issue is native scroll bars. I do wonder how much effort adding support for custom drawn scrollbars into components that use them.

I've seen custom scrollbars "hacked" into TTreeView in CudaText I think. But methods like UpdateScrollbars is private and obviously not virtual.

Needs to be thought about someone with good LCL knowledge. Maybe worth suggesting the feature on the bugtracker?
Title: Re: Lazarus Dark theme...
Post by: PascalDragon on July 28, 2021, 09:14:40 am
I'm guessing the same is possible under Windows.
No. Windows does not have a real dark mode for the desktop applications, except for a few.

Hummm, I wasn't aware that Windows doesn't have a Dark Theme. I'm aware that some apps have their own but I was under the impression that Windows already implemented an OS wide Dark Theme.
Maybe it's just me being so comfortable with it under Ubuntu, that I assume, wrongly, that Windows did it first, or had it already.

There are undocumented ways to enable dark theme in an application on Windows, but that's the point: they're undocumented (and they even change a bit from Windows version to Windows version).
Title: Re: Lazarus Dark theme...
Post by: Gustavo 'Gus' Carreno on July 28, 2021, 03:39:27 pm
Hey PascalDragon,

There are undocumented ways to enable dark theme in an application on Windows, but that's the point: they're undocumented (and they even change a bit from Windows version to Windows version).

I wasn't aware of that!! Again, many thanks for a bit of info that I'll treasure and relay forward if necessary!!

Cheers,
Gus
Title: Re: Lazarus Dark theme...
Post by: wp on July 28, 2021, 04:01:20 pm
Search the forum, there are contributions how to extend the list of color schemes.
A list of user-provided color schemes can be found in the wiki: https://wiki.lazarus.freepascal.org/UserSuppliedSchemeSettings
Title: Re: Lazarus Dark theme...
Post by: zamtmn on January 06, 2022, 08:47:24 pm
If build lazarus with qt5 for windows and using https://github.com/doublecmd/doublecmd/blob/master/src/platform/win/udarkstyle.pas you can get a dark theme
Title: Re: Lazarus Dark theme...
Post by: jex on February 28, 2022, 12:43:41 am
If build lazarus with qt5 for windows and using https://github.com/doublecmd/doublecmd/blob/master/src/platform/win/udarkstyle.pas you can get a dark theme

Can you please provide steps on how to achieve that or maybe release a compiled binary?
Title: Re: Lazarus Dark theme...
Post by: 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
Title: Re: Lazarus Dark theme...
Post by: jex on February 28, 2022, 01:03:21 pm
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

Perfect! Thank you so much for the help!
Got it working, looks great.

More info that might help others, I also used "Delphi IDE Theme Editor" tool and using "yggdrasil" theme.
What it means to "Apply lazarus.pp.patch" is that you need Git, copy the patch file to the lazarus installation folder and use CMD to get to the same folder and use "git apply lazarus.pp.patch" and that's it. Now launch lazarus normally. To get docked style IDE, I used these packages packages (from menu Packages Install/Uninstall packages): "AnchorDocking 1.0," "AnchorDockingDsgn 1.0" and "DockedFormEditor 0.0".

If you try to compile a project you may get an error if you don't have qt5 installed, you can use LCL by going to Project options > Config and targets > I chose win32 wigetset because I'm on Windows. --- Waiting for M$ implements an actual win32 GLOBAL dark theme  ::)

Hope this helps.
Title: Re: Lazarus Dark theme...
Post by: Frate on April 05, 2022, 10:15:47 am
Hi,

I'm trying to build lazarus v2.2.0 with qt5 following your advice.
Unfortunately I'm having this issue when trying to build:

Code: Text  [Select][+][-]
  1. glqtcontext.pas(25,57) Fatal: Can't find unit X used by GLQTContext

probably related to this https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues/38969, but if so how were you able to build it?
Do I need another version of Lazarus?
Maybe works only on 32bit (downloading now to try)?

I appreciate any help

Update:
I'm able to build the 32 bit version but when running lazarus.exe i get a Qt5Network.dll not found. I'm now downloading Qt following this wiki https://wiki.freepascal.org/Qt5_Interface
Title: Re: Lazarus Dark theme...
Post by: zamtmn on April 05, 2022, 11:35:30 am
LazOpenGLContext support only GLX, not true qt opengl control. this is old issue((

Only uninstall LazOpenGLContext((
Title: Re: Lazarus Dark theme...
Post by: Frate on April 05, 2022, 01:35:59 pm
Thanks zamtmn for your reply.

I was able to build and run the 32 bit version with qt.
Now I have to figure out how to enable dark mode in windows 11 (I've tested on a win 10 machine and works fine).
Title: Re: Lazarus Dark theme...
Post by: Frate on April 05, 2022, 01:57:40 pm
If build lazarus with qt5 for windows and using https://github.com/doublecmd/doublecmd/blob/master/src/platform/win/udarkstyle.pas you can get a dark theme

Well, using this defintely works! I think that on windows 11 os dark mode is not detected correctly (my guess).

For some reason opening the online package manager makes the IDE crash, but its a minor thing. I can easily install packages manually.

Thank you so much! Maybe one day we will have an out of the box solution.
Title: Re: Lazarus Dark theme...
Post by: LeoBruno on July 03, 2022, 12:17:22 am
Thank you guys!!

Specially zamtmn and jex.
Title: Re: Lazarus Dark theme...
Post by: LeoBruno on July 16, 2022, 03:04:37 pm
Can you provide the "yggdrasil" theme?

Couldn´t find it.
Title: Re: Lazarus Dark theme...
Post by: 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?

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
Title: Re: Lazarus Dark theme...
Post by: madel on August 14, 2022, 11:04:43 pm
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
Title: Re: Lazarus Dark theme...
Post by: madel on August 15, 2022, 11:52:26 am
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: [Select]
-style default -stylesheet=path/to/style.qssexample: I put my style.qss in c:\lazarus\styles
Code: [Select]
-style default -stylesheet=styles/style.qss
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: [Select]
python -c "from PyQt5.QtWidgets import QStyleFactory; print(QStyleFactory.keys())"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.
Title: Re: Lazarus Dark theme...
Post by: zamtmn on September 01, 2022, 04:06:38 pm
Where can I find up to date dlls?
Is there a official repository for 64bit dlls?

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
of course no! oficial is https://download.qt.io and https://gitlab.com/freepascal.org/lazarus/lazarus/-/tree/main/lcl/interfaces/qt5/cbindings
Title: Re: Lazarus Dark theme...
Post by: zamtmn on December 12, 2022, 11:20:43 am
trunk win64 qt5pas.dll with dependencies https://ci.appveyor.com/project/zamtmn/qt5pas-win64
Title: Re: Lazarus Dark theme...
Post by: 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.
Title: Re: Lazarus Dark theme...
Post by: madel 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...
Title: Re: Lazarus Dark theme...
Post by: madel 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.
Title: Re: Lazarus Dark theme...
Post by: 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 https://github.com/zamtmn/metadarkstyle
Title: Re: Lazarus Dark theme...
Post by: dbannon 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
Title: Re: Lazarus Dark theme...
Post by: KodeZwerg 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! :-*
Title: Re: Lazarus Dark theme...
Post by: KodeZwerg 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)
Title: Re: Lazarus Dark theme...
Post by: KodeZwerg on April 11, 2023, 09:27:48 am
Am I the only person that having twice a vertical ScrollBar in different styles?
Title: Re: Lazarus Dark theme...
Post by: zamtmn on April 11, 2023, 10:04:59 am
no, of course it will be fixed, the patch will speed it up
Title: Re: Lazarus Dark theme...
Post by: tetrastes 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:
Title: Re: Lazarus Dark theme...
Post by: KodeZwerg 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:-)
Title: Re: Lazarus Dark theme...
Post by: phoenix27 on April 13, 2023, 04:16:28 pm
I just installed the metadarkstyle but nothing changed. Is it automatic or should i do something?
Title: Re: Lazarus Dark theme...
Post by: KodeZwerg 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?
Title: Re: Lazarus Dark theme...
Post by: phoenix27 on April 13, 2023, 05:49:30 pm
Yes i did, but nothing happens
Title: Re: Lazarus Dark theme...
Post by: chrv 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
Title: Re: Lazarus Dark theme...
Post by: KodeZwerg 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.
Title: Re: Lazarus Dark theme...
Post by: chrv on April 17, 2023, 12:49:17 pm
Quote
Just a guess, a more current version of Lazarus.
You are write : it works without problem on Laz2.2.6.

Unfortunately, my app does not compile on Laz2.2.6
Is there any plan Dark theme to be compatible with Laz2.0.12 ?
Title: Re: Lazarus Dark theme...
Post by: zamtmn on April 17, 2023, 08:41:47 pm
These are some changes in the package system, I don't think there are any objective reasons to not work, everything is going to work with fpc 3.2. Try to recreate package in your version. I don't support older versions of lazarus
Title: Re: Lazarus Dark theme...
Post by: KodeZwerg on April 17, 2023, 09:52:33 pm
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)
Thank you for fixing! Latest release working cool on Windows 10 64bit with Lazarus 2.3.0 (rev main-2_3-3223-g00a23612bf) FPC 3.2.2 x86_64-win64-win32/win64
[] is now having a very good contrast!
And some highlighters not working, but still everything is very usable.
In general I do now see that a button (TBitButton? TSpeedButton?) is getting slightly highlighted, thanks man, you rock!
Title: Re: Lazarus Dark theme...
Post by: KodeZwerg on April 17, 2023, 09:57:58 pm
Is it planned to add to IDE project option an entry like "Style [ ] native [ ] light [✓] dark" ? - That would be amazing!

And is it possible to explain me, I guess I missed that information somewhere, how is it currently meant to be done to compile a project that should not be dark?

Many many kudos!  :-*
Title: Re: Lazarus Dark theme...
Post by: zamtmn on April 18, 2023, 11:53:36 pm
A small problem with MetaDarkStyleDSGN settings implementing.
registerMetaDarkStyleDSGN.SetDarkStyle need run before Lazarus forms create, I'm doing it now in registerMetaDarkStyleDSGN initialization section, but EnvironmentOptions it's not ready yet... Therefore, we need changes in Lazarus, or our own mechanism for saving settings. Maybe there are solutions that I haven't seen?

I figured it out, now it works
Title: Re: Lazarus Dark theme...
Post by: zamtmn on May 22, 2023, 10:57:51 am
A small update.
It is possible to use color schemes (not all gui elements can do this at the moment, but you can try) a color scheme is a file like https://github.com/zamtmn/metadarkstyle/blob/main/src/test.darkstylecolors linked inside with LResources or placed in PrimaryConfigPath+'/userschemes/' or SecondaryConfigPath+'/userschemes/' paths. File name is the scheme name, the extension should be 'darkstylecolors'. Need restart lazarus
Title: Re: Lazarus Dark theme...
Post by: madel on June 11, 2023, 12:06:16 am
I'm not sure what I'm doing wrong but I can't get metadarkstyle to work on Windows 11 and Lazarus 2.2.6. I installed both packages as in screenshot and rebuilt the IDE many times but nothing changes. I also tried removing and reinstalling the packages but nothing still. Any guidance?
Title: Re: Lazarus Dark theme...
Post by: zamtmn on June 11, 2023, 10:55:39 am
You need set
Code: Pascal  [Select][+][-]
  1. PreferredAppMode - Force dark
  2. Color scheme - dark
in options\darkstyle
Title: Re: Lazarus Dark theme...
Post by: Raf20076 on June 11, 2023, 11:20:00 am
Dark theme is not good for your eyes.

When it comes to visual-acuity tasks and proofreading tasks, studies have shown that people with normal and corrected vision perform better with Light mode. This means that text in Light mode is clearer and quicker to understand for people with normal or corrected vision.

The researchers put this down to the fact that when we look at a bright background, our pupils constrict and increase acuity while scanning text. When looking at a black background, the opposite effect occurs, and dilated pupils make it harder to focus on the text. Dark theme  also causes your eyes to dilate. Since there is less light to take in, your eyes have to work harder to see clearly. Eye dilation can reduce your vision's sharpness, so you may have to strain to see well.

I never use dark theme on anything.
Title: Re: Lazarus Dark theme...
Post by: madel on June 11, 2023, 04:01:28 pm
You need set
Code: Pascal  [Select][+][-]
  1. PreferredAppMode - Force dark
  2. Color scheme - dark
in options\darkstyle
There's nothing like that in Lazarus -> Options. I tried setting these in code, recompiled and reinstalled the package but nothing.

Trying with a fresh Lazarus install. I can install the metadarkstyle.lpk file fine. But the other file (metadarkstyledsgn.lpk) gives the following error.
'
Lazarus 2.2.6 (rev lazarus_2_2_6) FPC 3.2.2 x86_64-win64-win32/win64
Windows 11 Pro x64
Title: Re: Lazarus Dark theme...
Post by: zamtmn on June 11, 2023, 08:18:02 pm
this leapfrog with IDE packages - appeared in the trunk version, they are not in the stable version.
Ok, in https://github.com/zamtmn/metadarkstyle/commit/703c82eda117dc64cba058a80769fa8c3b4729c5 I add Lazarus 2.2.6 support. If you use 2.2.6 please install metadarkstyledsgn226 instead metadarkstyledsgn for trunk lazarus.
Title: Re: Lazarus Dark theme...
Post by: madel on June 11, 2023, 10:52:19 pm
this leapfrog with IDE packages - appeared in the trunk version, they are not in the stable version.
Ok, in https://github.com/zamtmn/metadarkstyle/commit/703c82eda117dc64cba058a80769fa8c3b4729c5 I add Lazarus 2.2.6 support. If you use 2.2.6 please install metadarkstyledsgn226 instead metadarkstyledsgn for trunk lazarus.

Thank you for your help!
This works but unfortunately trying to open Lazarus - Options gives an Access Violation error.
Title: Re: Lazarus Dark theme...
Post by: zamtmn on June 12, 2023, 12:07:35 pm
>>This works but unfortunately trying to open Lazarus - Options gives an Access Violation error.
Stacktrace?
Run lazarus under gdb, and run "bt" command after AV
Title: Re: Lazarus Dark theme...
Post by: zamtmn on June 12, 2023, 10:19:10 pm
@madel
fixed, please try again
Title: Re: Lazarus Dark theme...
Post by: madel on June 12, 2023, 10:57:09 pm
@zamtmn
Works perfectly now. Sorry for not being able to get back to you faster.
Thanks for your amazing work!
Title: Re: Lazarus Dark theme...
Post by: Rafaz on July 24, 2023, 11:39:58 am
Why the form is going dark too?
Title: Re: Lazarus Dark theme...
Post by: zamtmn on July 24, 2023, 12:51:19 pm
What form?
Title: Re: Lazarus Dark theme...
Post by: TRon on July 24, 2023, 01:05:25 pm
Dark theme is not good for your eyes.

When it comes to visual-acuity tasks and proofreading tasks, studies have shown that people with normal and corrected vision perform better with Light mode. This means that text in Light mode is clearer and quicker to understand for people with normal or corrected vision.

The researchers put this down to the fact that when we look at a bright background, our pupils constrict and increase acuity while scanning text. When looking at a black background, the opposite effect occurs, and dilated pupils make it harder to focus on the text. Dark theme  also causes your eyes to dilate. Since there is less light to take in, your eyes have to work harder to see clearly. Eye dilation can reduce your vision's sharpness, so you may have to strain to see well.

I never use dark theme on anything.
The science behind that might be perfectly solid but that does not change the fact that when I stare at a screen for 8 hours a day, come home and add another 4 hours that, for me, it is impossible to see anything anymore for the last 2 hours because everything on the screen is "dancing" at that point when using a light theme.

That effect will last for about 2 days (so can't use a monitor).

Using a dark theme prevents that from happening for me.

Especially the freakin' (plain) white backgrounds with black text are killing. It gets a lot better when at least using pastel colors but in the end that doesn't help my case either (just delays). And yeah rules and regulations with regards to mandatory 'monitor breaks' just as regulations wrt ergonomics (always invented by those that have no experience because that is not how things work in practice).

And did the researchers that you mentioned also account for people that have an sight/eye deficiency such as colour-blindness or bad eye-sight ? There are several other circumstances where using a light theme is not really an option.

So I very much appreciate people that are trying to get things configured the way they want to and share that with others. The way (some) operating systems think how theming/schemes works is hilarious at times and is exactly what drives people to try and modify things.


Each to its own ?
Title: Re: Lazarus Dark theme...
Post by: Fibonacci on July 24, 2023, 04:06:18 pm
If only the form designer was not styled it would be awesome
Title: Re: Lazarus Dark theme...
Post by: marcos-ebm on July 24, 2023, 04:29:05 pm
https://github.com/zamtmn/metadarkstyle/issues/1
Title: Re: Lazarus Dark theme...
Post by: cpicanco on September 20, 2023, 12:26:09 am
Does anyone have tested https://github.com/namazso/SecureUxTheme ?

EDIT:
https://www.youtube.com/watch?v=XSiSUiootRo
TinyPortal © 2005-2018