Re: [Lazarus] Howto disable Lazarus IDE using a XFCE dark theme
On Tue, 7 Nov 2017 17:30:23 -0500 Donald Ziesig via Lazaruswrote: >[...] > I give up! I don't see another mail from you. Where are your tries? > 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 -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] Howto disable Lazarus IDE using a XFCE dark theme
On 11/07/2017 03:20 PM, Michael Van Canneyt via Lazarus 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. 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 -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] Howto disable Lazarus IDE using a XFCE dark theme
On Tue, 7 Nov 2017 20:29:27 + Graeme Geldenhuys via Lazaruswrote: > 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 -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] Howto disable Lazarus IDE using a XFCE dark theme
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. 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 -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] Howto disable Lazarus IDE using a XFCE dark theme
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.-- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] Howto disable Lazarus IDE using a XFCE dark theme
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 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 -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] Howto disable Lazarus IDE using a XFCE dark theme
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, Am 07.11.2017 um 00:58 schrieb R0b0t1 via Lazarus: Hello, thanks for your input. On Monday, November 6, 2017, Graeme Geldenhuys via Lazarus> 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 -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] Howto disable Lazarus IDE using a XFCE dark theme
Hello again, very sorry for the three posts. It is the case I am not very smart. Please excuse my poor reading comprehension. On Monday, November 6, 2017, R0b0t1wrote: > Hello again, > > On Monday, November 6, 2017, R0b0t1 wrote: >> Hello friend, >> >> On Monday, November 6, 2017, Landmesser John via Lazarus < lazarus@lists.lazarus-ide.org> 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. >>> >>> 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 > > Is http://wiki.lazarus.freepascal.org/UserSuppliedSchemeSettings 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 -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] Howto disable Lazarus IDE using a XFCE dark theme
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 -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] Howto disable Lazarus IDE using a XFCE dark theme
Hello again, On Monday, November 6, 2017, R0b0t1wrote: > Hello friend, > > On Monday, November 6, 2017, Landmesser John via Lazarus < lazarus@lists.lazarus-ide.org> 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. >> >> 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 Is http://wiki.lazarus.freepascal.org/UserSuppliedSchemeSettings insufficient in any way? -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] Howto disable Lazarus IDE using a XFCE dark theme
Hello friend, On Monday, November 6, 2017, Landmesser John via Lazarus < lazarus@lists.lazarus-ide.org> 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. > > 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 -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus