Recent

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

Robert W.B.

  • Sr. Member
  • ****
  • Posts: 328
  • Love my Wife, My Kids and Lazarus/Freepascal.
Lazarus Dark theme...
« on: July 27, 2021, 07:42:12 pm »
Hi. Is there any way to change to dark theme in Lazarus?
Rob

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2770
    • havefunsoft.com
Re: Lazarus Dark theme...
« Reply #1 on: July 27, 2021, 07:58:17 pm »
on macOS Lazarus looks pretty dark!

Gustavo 'Gus' Carreno

  • Hero Member
  • *****
  • Posts: 1088
  • Professional amateur ;-P
Re: Lazarus Dark theme...
« Reply #2 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
Lazarus 3.99(main) FPC 3.3.1(main) Ubuntu 23.10 64b Dark Theme
Lazarus 3.0.0(stable) FPC 3.2.2(stable) Ubuntu 23.10 64b Dark Theme
http://github.com/gcarreno

Robert W.B.

  • Sr. Member
  • ****
  • Posts: 328
  • Love my Wife, My Kids and Lazarus/Freepascal.
Re: Lazarus Dark theme...
« Reply #3 on: July 27, 2021, 08:13:04 pm »
Thanks for the Help.
Rob

Gustavo 'Gus' Carreno

  • Hero Member
  • *****
  • Posts: 1088
  • Professional amateur ;-P
Re: Lazarus Dark theme...
« Reply #4 on: July 27, 2021, 08:30:39 pm »
Hey Robert William Blennerhed,

Thanks for the Help.

You're more than welcome!!

Cheers,
Gus
Lazarus 3.99(main) FPC 3.3.1(main) Ubuntu 23.10 64b Dark Theme
Lazarus 3.0.0(stable) FPC 3.2.2(stable) Ubuntu 23.10 64b Dark Theme
http://github.com/gcarreno

wp

  • Hero Member
  • *****
  • Posts: 11830
Re: Lazarus Dark theme...
« Reply #5 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.

Gustavo 'Gus' Carreno

  • Hero Member
  • *****
  • Posts: 1088
  • Professional amateur ;-P
Re: Lazarus Dark theme...
« Reply #6 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
« Last Edit: July 28, 2021, 01:13:57 am by Gustavo 'Gus' Carreno »
Lazarus 3.99(main) FPC 3.3.1(main) Ubuntu 23.10 64b Dark Theme
Lazarus 3.0.0(stable) FPC 3.2.2(stable) Ubuntu 23.10 64b Dark Theme
http://github.com/gcarreno

trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2020
  • Former Delphi 1-7, 10.2 user
Re: Lazarus Dark theme...
« Reply #7 on: July 28, 2021, 01:09:28 am »
Oh well, there's another another reason for choosing Linux :P

Or macOS ;-)

Gustavo 'Gus' Carreno

  • Hero Member
  • *****
  • Posts: 1088
  • Professional amateur ;-P
Re: Lazarus Dark theme...
« Reply #8 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
Lazarus 3.99(main) FPC 3.3.1(main) Ubuntu 23.10 64b Dark Theme
Lazarus 3.0.0(stable) FPC 3.2.2(stable) Ubuntu 23.10 64b Dark Theme
http://github.com/gcarreno

Gustavo 'Gus' Carreno

  • Hero Member
  • *****
  • Posts: 1088
  • Professional amateur ;-P
Re: Lazarus Dark theme...
« Reply #9 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
Lazarus 3.99(main) FPC 3.3.1(main) Ubuntu 23.10 64b Dark Theme
Lazarus 3.0.0(stable) FPC 3.2.2(stable) Ubuntu 23.10 64b Dark Theme
http://github.com/gcarreno

olly

  • New Member
  • *
  • Posts: 42
Re: Lazarus Dark theme...
« Reply #10 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?
« Last Edit: July 28, 2021, 01:59:46 am by olly »

PascalDragon

  • Hero Member
  • *****
  • Posts: 5444
  • Compiler Developer
Re: Lazarus Dark theme...
« Reply #11 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).

Gustavo 'Gus' Carreno

  • Hero Member
  • *****
  • Posts: 1088
  • Professional amateur ;-P
Re: Lazarus Dark theme...
« Reply #12 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
Lazarus 3.99(main) FPC 3.3.1(main) Ubuntu 23.10 64b Dark Theme
Lazarus 3.0.0(stable) FPC 3.2.2(stable) Ubuntu 23.10 64b Dark Theme
http://github.com/gcarreno

wp

  • Hero Member
  • *****
  • Posts: 11830
Re: Lazarus Dark theme...
« Reply #13 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

zamtmn

  • Hero Member
  • *****
  • Posts: 593
Re: Lazarus Dark theme...
« Reply #14 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
« Last Edit: January 06, 2022, 08:51:27 pm by zamtmn »

 

TinyPortal © 2005-2018