Lazarus

Miscellaneous => Suggestions => Topic started by: Gald on July 18, 2022, 09:16:27 am

Title: About the medical problem of white on Lazarus Win (quite Dark Mode)
Post by: Gald on July 18, 2022, 09:16:27 am
Hello!

I'm not here to ask about a Dark Mode, but to ask you guys, attention to a real problem that affects a lot of people, some in a medical way, others are just the extensive time exposure to the White and bright color.

I know that Win32/Win64 can't deal with dark for now (there's a new Microsoft project going on this).

The white color can hurt (for real) most people's eyes in dark places or after many hours on the computer.
So, that's why I'll ask our "I personally don't like this guy" to go help someone in another thread.

The idea is quite simple:

The object inspector has a configuration of color it didn't offend anyone!
Did the IDE Options > Object Inspector > Colors offend you?

For the Lazarus default components, as I see, all of them have property color.
Only the Page/Tab components didn't have color but can use with a Shape component to paint his background.

Again: I'm not asking for a true dark mode, but only the ability to change it for something less aggressive as white color.

Before comment, please, see the image related!

Ps: Here is my personal set of colors from code editor in xml.
Title: Re: About the medical problem of white on Lazarus Win (quite Dark Mode)
Post by: Handoko on July 18, 2022, 11:48:14 am
Tested your color scheme on my WinXP Win7, that looks good:
Title: Re: About the medical problem of white on Lazarus Win (quite Dark Mode)
Post by: Gald on July 19, 2022, 06:05:59 am
Looks good

I'm glad you liked!

Tested on my WinXP

Wait a sec are u trying to cheat me?
This is Win7 with a classic and comfortable theme.  :P
Title: Re: About the medical problem of white on Lazarus Win (quite Dark Mode)
Post by: Handoko on July 19, 2022, 10:10:28 am
Oops, my mistake. I own a license copy of WinXP. I purchased and installed in my VirtualBox for testing software. But recently I installed a Windows 7 too. I mistakenly started that Win7 for testing the color scheme.

Anyway, I would recommend to set the background colors for highlighting strings and numbers. That's very useful especially when debugging very long code.
Title: Re: About the medical problem of white on Lazarus Win (quite Dark Mode)
Post by: Nicole on July 19, 2022, 12:53:40 pm
Thank you for your posting.
This would be so great!

My doctor advised me not to use "dark mode", but just to avoid this "white".
So a soft orange or smooth pink as background would be nice.

I tried to change the colors, but ended up with a mess.
So an option to click on for changing all would be great.

Instead of a dark mode a "soft-mode" would be quite more interesting to me.
Not "black on white", but "black on very bright orange".

Why I prefer the latter is, that the time to focus anything is shorter.
The moment, I have to try harder to read something, my eyes grew tired as well.
Title: Re: About the medical problem of white on Lazarus Win (quite Dark Mode)
Post by: Martin_fr on July 19, 2022, 01:51:04 pm
As for as the editor colors go, there is a nice selection: https://wiki.freepascal.org/UserSuppliedSchemeSettings
And the one posted by GALD could be added there too, if not yet done.
Title: Re: About the medical problem of white on Lazarus Win (quite Dark Mode)
Post by: Nicole on July 19, 2022, 02:18:30 pm
WOW, thank you!
Title: Re: About the medical problem of white on Lazarus Win (quite Dark Mode)
Post by: DomingoGP on July 21, 2022, 07:29:10 pm
I have written a small package for ide that changes the background colour of a few types of controls. Maybe someone can use it to improve the problem a bit.

Warning: this package is a hack that doesn't pretend to implement styles for the ide, only to remove some white colour.


Usage: open the package, modify the colour constants, compile and install in the IDE.




Title: Re: About the medical problem of white on Lazarus Win (quite Dark Mode)
Post by: Handoko on July 21, 2022, 07:42:48 pm
Almost perfect.
Thank you for sharing it.
Title: Re: About the medical problem of white on Lazarus Win (quite Dark Mode)
Post by: Nicole on July 21, 2022, 08:08:12 pm
sorry for the newbie question:
How to import a color scheme? I only find a button "export", but no "import".
Title: Re: About the medical problem of white on Lazarus Win (quite Dark Mode)
Post by: sketch on July 21, 2022, 08:10:48 pm
The colors used in Plan 9 were based on research and is available in color(6), or if you don't have a Plan 9 installation, then read here https://9p.io/magic/man2html/6/color (https://9p.io/magic/man2html/6/color)

In Visual Studio Code I use the Remedy color theme which reminds me of Plan 9's Rio window manager subdued color theme.
Title: Re: About the medical problem of white on Lazarus Win (quite Dark Mode)
Post by: Martin_fr on July 21, 2022, 08:15:01 pm
sorry for the newbie question:
How to import a color scheme? I only find a button "export", but no "import".

https://wiki.freepascal.org/UserSuppliedSchemeSettings#Adding_custom_schemes
Quote
by copying them into a folder called "userschemes" in the primary-config-path

Menu: View > Ide Internals > About IDE: the primary conf path is listed there.
Title: Re: About the medical problem of white on Lazarus Win (quite Dark Mode)
Post by: Nicole on July 21, 2022, 08:44:45 pm
thank you!
Title: Re: About the medical problem of white on Lazarus Win (quite Dark Mode)
Post by: Gald on July 22, 2022, 03:46:03 am
I
CANNOT
BELIEVE!

AM I DREAMING?

Batcave mode is on!

Thank you so much, DomingoGP!
Title: Re: About the medical problem of white on Lazarus Win (quite Dark Mode)
Post by: ngx234 on July 22, 2022, 06:53:35 am
thanks DomingoGP

clSilver, clMedGray
Title: Re: About the medical problem of white on Lazarus Win (quite Dark Mode)
Post by: DomingoGP on July 22, 2022, 09:14:21 pm
 I'm glad you find the package useful   :D

regards
Title: Re: About the medical problem of white on Lazarus Win (quite Dark Mode)
Post by: Lulu on July 22, 2022, 10:49:23 pm
Thanks DomingoGP, its usefull !
Additionnaly, to reduce the blue component on my screen, I use f.lux. It works well and it's available on Windows, Linux and Mac. To install, go to the bottom of the page https://justgetflux.com/faq.html (https://justgetflux.com/faq.html)
TinyPortal © 2005-2018