Recent

Author Topic: About the medical problem of white on Lazarus Win (quite Dark Mode)  (Read 3200 times)

Gald

  • Full Member
  • ***
  • Posts: 107
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.
Lazarus 2.0.12 r64642 FPC 3.2.0 x86_64-win64-win32/win64/Manjaro KDE 21
AMD Ryzen 3 1300X Quad-Core Processor 3.50 GHz / 8,00 GB RAM / GTX 1500 TI / 2TB M.2 NVMe

Handoko

  • Hero Member
  • *****
  • Posts: 5154
  • My goal: build my own game engine using Lazarus
Re: About the medical problem of white on Lazarus Win (quite Dark Mode)
« Reply #1 on: July 18, 2022, 11:48:14 am »
Tested your color scheme on my WinXP Win7, that looks good:
« Last Edit: July 19, 2022, 08:44:22 am by Handoko »

Gald

  • Full Member
  • ***
  • Posts: 107
Re: About the medical problem of white on Lazarus Win (quite Dark Mode)
« Reply #2 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
Lazarus 2.0.12 r64642 FPC 3.2.0 x86_64-win64-win32/win64/Manjaro KDE 21
AMD Ryzen 3 1300X Quad-Core Processor 3.50 GHz / 8,00 GB RAM / GTX 1500 TI / 2TB M.2 NVMe

Handoko

  • Hero Member
  • *****
  • Posts: 5154
  • My goal: build my own game engine using Lazarus
Re: About the medical problem of white on Lazarus Win (quite Dark Mode)
« Reply #3 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.
« Last Edit: July 19, 2022, 01:25:54 pm by Handoko »

Nicole

  • Hero Member
  • *****
  • Posts: 970
Re: About the medical problem of white on Lazarus Win (quite Dark Mode)
« Reply #4 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.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9867
  • Debugger - SynEdit - and more
    • wiki
Re: About the medical problem of white on Lazarus Win (quite Dark Mode)
« Reply #5 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.

Nicole

  • Hero Member
  • *****
  • Posts: 970
Re: About the medical problem of white on Lazarus Win (quite Dark Mode)
« Reply #6 on: July 19, 2022, 02:18:30 pm »
WOW, thank you!

DomingoGP

  • Jr. Member
  • **
  • Posts: 62
Re: About the medical problem of white on Lazarus Win (quite Dark Mode)
« Reply #7 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.





Handoko

  • Hero Member
  • *****
  • Posts: 5154
  • My goal: build my own game engine using Lazarus
Re: About the medical problem of white on Lazarus Win (quite Dark Mode)
« Reply #8 on: July 21, 2022, 07:42:48 pm »
Almost perfect.
Thank you for sharing it.

Nicole

  • Hero Member
  • *****
  • Posts: 970
Re: About the medical problem of white on Lazarus Win (quite Dark Mode)
« Reply #9 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".

sketch

  • New Member
  • *
  • Posts: 32
Re: About the medical problem of white on Lazarus Win (quite Dark Mode)
« Reply #10 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

In Visual Studio Code I use the Remedy color theme which reminds me of Plan 9's Rio window manager subdued color theme.
« Last Edit: July 21, 2022, 08:20:37 pm by sketch »

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9867
  • Debugger - SynEdit - and more
    • wiki
Re: About the medical problem of white on Lazarus Win (quite Dark Mode)
« Reply #11 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.

Nicole

  • Hero Member
  • *****
  • Posts: 970
Re: About the medical problem of white on Lazarus Win (quite Dark Mode)
« Reply #12 on: July 21, 2022, 08:44:45 pm »
thank you!

Gald

  • Full Member
  • ***
  • Posts: 107
Re: About the medical problem of white on Lazarus Win (quite Dark Mode)
« Reply #13 on: July 22, 2022, 03:46:03 am »
I
CANNOT
BELIEVE!

AM I DREAMING?

Batcave mode is on!

Thank you so much, DomingoGP!
Lazarus 2.0.12 r64642 FPC 3.2.0 x86_64-win64-win32/win64/Manjaro KDE 21
AMD Ryzen 3 1300X Quad-Core Processor 3.50 GHz / 8,00 GB RAM / GTX 1500 TI / 2TB M.2 NVMe

ngx234

  • New Member
  • *
  • Posts: 10
Re: About the medical problem of white on Lazarus Win (quite Dark Mode)
« Reply #14 on: July 22, 2022, 06:53:35 am »
thanks DomingoGP

clSilver, clMedGray

 

TinyPortal © 2005-2018