Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2017-11

Howto disable Lazarus IDE using a XFCE dark theme

14 messages · 6 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Landmesser John

New Linux Distro Manjaro-XFCE and i use a dark theme.

But that dark theme is bad for Lazarus IDE.

Can i change that as an option for compiling the IDE?

With Debian KDE there was in KDE Settings an option to prevent gtk-Apps using color-settings.

Perhaps an option in XFCE-Settings?

I'll keep on googling ...

Tipps are welcome!

Reply by email

R0b0t1
to Landmesser John

Hello friend,

On Monday, November 6, 2017, Landmesser John via Lazarus <

Show quoted text 8 lines
wrote: New Linux Distro Manjaro-XFCE and i use a dark theme. But that dark theme is bad for Lazarus IDE. Can i change that as an option for compiling the IDE? With Debian KDE there was in KDE Settings an option to prevent gtk-Apps

using color-settings.

Show quoted text 7 lines
Perhaps an option in XFCE-Settings? I'll keep on googling ... Tipps are welcome!

Theming is typically handled by your toolkit. For GTK, you will need to modify files in a location like "~/.themes" or "~/.gtkrc-2."

E.g. https://developer.gnome.org/gtk3/stable/theming.html and https://wiki.archlinux.org/index.php/GTK%2B#Configuration.

Theming can also be handled by your application. The best support for theming tends to be implemented in this way. Unfortunately from a user's standpoint this means each program must be customized separately. On the other hand, toolkit wide theming support tends to not be very good. Form components (like a SynEdit) may be drawn with colors not taken from the toolkit's configuration.

Theming support for Lazarus might be a tall order but I think it would be worth it. See Visual Studio's dark theme, for example.

Cheers,
R0b0t1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20171106/f620cb4b/attachment-0001.html>

Reply by email

R0b0t1
to R0b0t1

Hello again,

R0b0t1 wrote 11 lines
Hello friend, On Monday, November 6, 2017, Landmesser John via Lazarus < wrote: > New Linux Distro Manjaro-XFCE and i use a dark theme. > > But that dark theme is bad for Lazarus IDE. > > Can i change that as an option for compiling the IDE? > > With Debian KDE there was in KDE Settings an option to prevent gtk-Apps

using color-settings.

Show quoted text 9 lines
> > Perhaps an option in XFCE-Settings? > > I'll keep on googling ... > > Tipps are welcome! > Theming is typically handled by your toolkit. For GTK, you will need to

modify files in a location like "~/.themes" or "~/.gtkrc-2."

https://wiki.archlinux.org/index.php/GTK%2B#Configuration.

Theming can also be handled by your application. The best support for

theming tends to be implemented in this way. Unfortunately from a user's standpoint this means each program must be customized separately. On the other hand, toolkit wide theming support tends to not be very good. Form components (like a SynEdit) may be drawn with colors not taken from the toolkit's configuration.

Theming support for Lazarus might be a tall order but I think it would be

worth it. See Visual Studio's dark theme, for example.

Cheers, R0b0t1

Is http://wiki.lazarus.freepascal.org/UserSuppliedSchemeSettings insufficient in any way?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20171106/96188a1b/attachment.html>

Reply by email

Graeme Geldenhuys
to R0b0t1: On Monday, November 6, 2017, Landmesser John via Lazarus < using color-settings. Theming…
R0b0t1 wrote
Theming support for Lazarus might be a tall order but I think it would be worth it. See Visual Studio's dark theme, for example.

Unfortunately the Lazarus developers will disagree with you. They want "native look and feel" at all costs. So individual application theming is not on their priority list. I've asked for this since 2006.

Regards,
Graeme

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp

Reply by email

R0b0t1
to R0b0t1: using color-settings. modify files in a location like "~/.themes" or "~/.gtkrc-2."…

Hello again, very sorry for the three posts. It is the case I am not very smart. Please excuse my poor reading comprehension.

R0b0t1 wrote 14 lines
Hello again, On Monday, November 6, 2017, R0b0t1 wrote: > Hello friend, > > On Monday, November 6, 2017, Landmesser John via Lazarus < wrote: >> New Linux Distro Manjaro-XFCE and i use a dark theme. >> >> But that dark theme is bad for Lazarus IDE. >> >> Can i change that as an option for compiling the IDE? >> >> With Debian KDE there was in KDE Settings an option to prevent gtk-Apps

using color-settings.

Show quoted text 9 lines
>> >> Perhaps an option in XFCE-Settings? >> >> I'll keep on googling ... >> >> Tipps are welcome! >> > > Theming is typically handled by your toolkit. For GTK, you will need to

modify files in a location like "~/.themes" or "~/.gtkrc-2."

https://wiki.archlinux.org/index.php/GTK%2B#Configuration.

> > Theming can also be handled by your application. The best support for

theming tends to be implemented in this way. Unfortunately from a user's standpoint this means each program must be customized separately. On the other hand, toolkit wide theming support tends to not be very good. Form components (like a SynEdit) may be drawn with colors not taken from the toolkit's configuration.

> > Theming support for Lazarus might be a tall order but I think it would

be worth it. See Visual Studio's dark theme, for example.

Show quoted text 5 lines

insufficient in any way?

I realize now you were asking to disable theming in Lazarus. That answer is related to the contents of my other posts, but for GTK you may use the environment variable GTK_THEME:
https://developer.gnome.org/gtk3/stable/gtk-running.html.

GTK_THEME=theme:variant

If you have some time I would invite you to comment on the forum as it is more active. It would be nice to see pictures of the interface quirks you take exception to.

Cheers,
R0b0t1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20171106/ad79ee44/attachment.html>

Reply by email

R0b0t1
to Graeme Geldenhuys: Unfortunately the Lazarus developers will disagree with you. They want "native look and…

Hello, thanks for your input.

On Monday, November 6, 2017, Graeme Geldenhuys via Lazarus <

Show quoted text 7 lines
wrote: On 2017-11-06 18:13, R0b0t1 via Lazarus wrote: > > Theming support for Lazarus might be a tall order but I think it would be > worth it. See Visual Studio's dark theme, for example. Unfortunately the Lazarus developers will disagree with you. They want

"native look and feel" at all costs. So individual application theming is not on their priority list. I've asked for this since 2006.

Regards, Graeme

The issue here is that the native theming clashes with some built in Lazarus settings. E.g. if you look at the link I posted that showcases SynEdit color schemes you will notice there is an image asset that does not blend in well with dark backgrounds.

These issues are typical, but they mean Lazarus does not currently support a native look and feel.

I don't doubt you are relaying the developer's statements accurately, but this probably needs to be theming is a good idea because unless all assets are obtained from the windowing toolkit then there is no way to know they will mesh well with a given color scheme. The theming support could be very minimal, and might amount to a few sets of bitmap assets and a review of existing UI code to ensure there are no hardcoded settings.

OP, if you could supply screenshots it would be appreciated.

Respectfully,
R0b0t1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20171106/12b29a13/attachment-0001.html>

Reply by email

Landmesser John
to R0b0t1

Thanks for your answers!

I reverted XFCE color scheme dark to normal ... no trouble any more :-)

Example:

TStringGrid.AlternateColor := clMoneygreen -> unreadable with a dark
color scheme -> white font on white background,
R0b0t1 wrote 43 lines
Hello, thanks for your input. On Monday, November 6, 2017, Graeme Geldenhuys via Lazarus < <mailto:>> wrote: > On 2017-11-06 18:13, R0b0t1 via Lazarus wrote: >> >> Theming support for Lazarus might be a tall order but I think it would be >> worth it. See Visual Studio's dark theme, for example. > > Unfortunately the Lazarus developers will disagree with you. They want "native look and feel" at all costs. So individual application theming is not on their priority list. I've asked for this since 2006. > > Regards, >   Graeme > The issue here is that the native theming clashes with some built in Lazarus settings. E.g. if you look at the link I posted that showcases SynEdit color schemes you will notice there is an image asset that does not blend in well with dark backgrounds. These issues are typical, but they mean Lazarus does not currently support a native look and feel. I don't doubt you are relaying the developer's statements accurately, but this probably needs to be looked at again. Integrated theming is a good idea because unless all assets are obtained from the windowing toolkit then there is no way to know they will mesh well with a given color scheme. The theming support could be very minimal, and might amount to a few sets of bitmap assets and a review of existing UI code to ensure there are no hardcoded settings. OP, if you could supply screenshots it would be appreciated. Respectfully,     R0b0t1

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20171107/cf167206/attachment.html>

Reply by email

Graeme Geldenhuys
to R0b0t1: Hello, thanks for your input. On Monday, November 6, 2017, Graeme Geldenhuys via Lazarus <
R0b0t1 wrote
Integrated theming is a good idea because unless all assets are obtained from the windowing toolkit then there is no way to know they will mesh well with a given color scheme.

As the saying goes: “You are preaching to the choir”. ;-) I fully agree with you, hence fpGUI Toolkit supports individual application theming. As standard, every fpGUI application can also switch between the 8 built-in standard themes with the --theme command line parameter.

http://geldenhuys.co.uk/~graemeg/themes/start.html

Regards,
Graeme

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp

Reply by email

Michael Van Canneyt
to Graeme Geldenhuys
Graeme Geldenhuys wrote 11 lines
On 2017-11-06 23:58, R0b0t1 wrote: > Integrated theming is a good idea because unless all assets are obtained > from the windowing toolkit then there is no way to know they will mesh well > with a given color scheme. As the saying goes: “You are preaching to the choir”. ;-) I fully agree with you, hence fpGUI Toolkit supports individual application theming. As standard, every fpGUI application can also switch between the 8 built-in standard themes with the --theme command line parameter. http://geldenhuys.co.uk/~graemeg/themes/start.html

GTK can do this out of the box.

https://unix.stackexchange.com/questions/14129/gtk-enable-set-dark-theme-on-a-per-application-basis

No doubt, so can Qt.

Michael.

Reply by email

Graeme Geldenhuys
to Michael Van Canneyt
Michael Van Canneyt wrote
GTK can do this out of the box.

And where was this reply in 2006! :-) That's really good news to know that it is possible with GTK. I take it, it only works with GTK3 though. From what I remember, LCL-GTK3 is not stable yet (I might be wrong though).

Regards,
Graeme

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp

Reply by email

Mattias Gaertner
to Graeme Geldenhuys
On 2017-11-07 20:20, Michael Van Canneyt via Lazarus wrote: > GTK can do this out of the box. And where was this reply in 2006! :-) That's really good news to know that it is possible with GTK. I take it, it only works with GTK3 though.

For gtk2:
GTK2_RC_FILES=/usr/share/themes/HighContrast/gtk-2.0/gtkrc ./project1

Mattias

Reply by email

Donald Ziesig
to Michael Van Canneyt: GTK can do this out of the box. https://unix.stackexchange.com/questions/14129/gtk-enable-…
Michael Van Canneyt wrote 28 lines
On Tue, 7 Nov 2017, Graeme Geldenhuys via Lazarus wrote: > On 2017-11-06 23:58, R0b0t1 wrote: >> Integrated theming is a good idea because unless all assets are >> obtained >> from the windowing toolkit then there is no way to know they will >> mesh well >> with a given color scheme. > > As the saying goes: “You are preaching to the choir”. ;-) I fully > agree with you, hence fpGUI Toolkit supports individual application > theming. As standard, every fpGUI application can also switch between > the 8 built-in standard themes with the --theme command line parameter. > >   http://geldenhuys.co.uk/~graemeg/themes/start.html GTK can do this out of the box. https://unix.stackexchange.com/questions/14129/gtk-enable-set-dark-theme-on-a-per-application-basis No doubt, so can Qt. Michael.

I give up!  After looking at most of the links in this thread, I can not get the Lazarus IDE to use anything other than the default theme ('black on white - with language highlighting).  I would really like to use a dark theme (white on black or gray - again with language highlighting).

I normally start lazarus from a .desktop file, but even dropping back to the command line (with --pcp= ... ) nothing I have done changes the theme.

Could someone give me a command line that I could adapt to produce a dark theme?

Thanks,

Don Ziesig

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20171107/3baeb222/attachment.html>

Reply by email

Mattias Gaertner
to Donald Ziesig
[...] I give up!

I don't see another mail from you. Where are your tries?

Show quoted text 10 lines
  After looking at most of the links in this thread, I can not get the Lazarus IDE to use anything other than the default theme ('black on white - with language highlighting).  I would really like to use a dark theme (white on black or gray - again with language highlighting). I normally start lazarus from a .desktop file, but even dropping back to the command line (with --pcp= ... ) nothing I have done changes the theme. Could someone give me a command line that I could adapt to produce a dark theme?

1. Download and install a dark theme for your distribution. Beware there are many broken and outdated themes for gtk2. So you have to try a few. For example NOX.
2. Start the IDE with:
GTK2_RC_FILES=/usr/share/themes/NOX/gtk-2.0/gtkrc ./lazarus
3. Set the source editor colors:
Tools / Options / Display / Editor / Display / Colors 3.1 Change Default to Twilight.

Mattias

Reply by email

R0b0t1
to Michael Van Canneyt: GTK can do this out of the box. https://unix.stackexchange.com/questions/14129/gtk-enable-…

Hello,

On Tuesday, November 7, 2017, Michael Van Canneyt via Lazarus <

Show quoted text 9 lines
wrote: On Tue, 7 Nov 2017, Graeme Geldenhuys via Lazarus wrote: > On 2017-11-06 23:58, R0b0t1 wrote: >> >> Integrated theming is a good idea because unless all assets are obtained >> from the windowing toolkit then there is no way to know they will mesh

well

>> with a given color scheme. > > As the saying goes: “You are preaching to the choir”. ;-) I fully agree

with you, hence fpGUI Toolkit supports individual application theming. As standard, every fpGUI application can also switch between the 8 built-in standard themes with the --theme command line parameter.

Show quoted text 6 lines
> > http://geldenhuys.co.uk/~graemeg/themes/start.html GTK can do this out of the box.

https://unix.stackexchange.com/questions/14129/gtk-enable-set-dark-theme-on-a-per-application-basis

No doubt, so can Qt.

OP mentioned successfully using these facilities. As I tried to explain, the issue is that programs will use e.g. bitmaps with white borders or hardcoded colors that are hard to notice without changing the theme. Even if a developer does look for these things, they might not have the time to create new assets.

Another poster mentioned many GTK themes being broken. I agree, but I think they are not broken, but are falling prey to the above.

Strangely even Windows has these problems with its default theming support (for OS dialogs and Win32 GUI elements).

Cheers,
R0b0t1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20171107/d2e5a495/attachment-0001.html>

Reply by email