Recent

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

Robert William Blennerhed

  • Sr. Member
  • ****
  • Posts: 308
  • 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?
%

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2691
    • 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: 727
  • 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 2.3.0(trunk) FPC 3.3.1(trunk) Ubuntu 21.04 64b Dark Theme
Lazarus 2.0.12(stable) FPC 3.2.2(stable) Ubuntu 21.04 64b Dark Theme
http://github.com/gcarreno

Robert William Blennerhed

  • Sr. Member
  • ****
  • Posts: 308
  • 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.
%

Gustavo 'Gus' Carreno

  • Hero Member
  • *****
  • Posts: 727
  • 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 2.3.0(trunk) FPC 3.3.1(trunk) Ubuntu 21.04 64b Dark Theme
Lazarus 2.0.12(stable) FPC 3.2.2(stable) Ubuntu 21.04 64b Dark Theme
http://github.com/gcarreno

wp

  • Hero Member
  • *****
  • Posts: 8772
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.
Mainly Lazarus trunk / fpc 3.2.0 / all 32-bit on Win-10, but many more...

Gustavo 'Gus' Carreno

  • Hero Member
  • *****
  • Posts: 727
  • 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 2.3.0(trunk) FPC 3.3.1(trunk) Ubuntu 21.04 64b Dark Theme
Lazarus 2.0.12(stable) FPC 3.2.2(stable) Ubuntu 21.04 64b Dark Theme
http://github.com/gcarreno

trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1590
  • 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 ;-)
Lazarus 2.3 2021-08-10 FPC 3.3.1 r49223 macOS 10.14.6 Xcode 11.3.1
Lazarus 2.3 r65500 FPC 3.3.1 r49634 macOS 11.5.2 aarch64 Xcode 12.5.1
Lazarus 2.3 2021-08-11 FPC 3.2.2 FreeBSD 13.0 amd64 VMware VM
Lazarus 2.1 r61574 FPC 3.0.4 Ubuntu 20.04 Parallels VM
Lazarus 2.0.10 FPC 3.2.0 Win10 Parallels VM

Gustavo 'Gus' Carreno

  • Hero Member
  • *****
  • Posts: 727
  • 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 2.3.0(trunk) FPC 3.3.1(trunk) Ubuntu 21.04 64b Dark Theme
Lazarus 2.0.12(stable) FPC 3.2.2(stable) Ubuntu 21.04 64b Dark Theme
http://github.com/gcarreno

Gustavo 'Gus' Carreno

  • Hero Member
  • *****
  • Posts: 727
  • 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 2.3.0(trunk) FPC 3.3.1(trunk) Ubuntu 21.04 64b Dark Theme
Lazarus 2.0.12(stable) FPC 3.2.2(stable) Ubuntu 21.04 64b Dark Theme
http://github.com/gcarreno

olly

  • New Member
  • *
  • Posts: 37
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: 3335
  • 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: 727
  • 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 2.3.0(trunk) FPC 3.3.1(trunk) Ubuntu 21.04 64b Dark Theme
Lazarus 2.0.12(stable) FPC 3.2.2(stable) Ubuntu 21.04 64b Dark Theme
http://github.com/gcarreno

wp

  • Hero Member
  • *****
  • Posts: 8772
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
Mainly Lazarus trunk / fpc 3.2.0 / all 32-bit on Win-10, but many more...

 

TinyPortal © 2005-2018