Openbox window colors, dark theme

Please post all general support questions for LXDE here.
drooly
Posts: 376
Joined: Mon Apr 08, 2013 6:45 am

Re: Openbox window colors, dark theme

Postby drooly » Mon Sep 11, 2017 5:34 pm

the flaw might well be in the crux theme. it's really very old, and i doubt anybody changed it recently.
try a few different themes, i'm sure you can fix it.

skimmy
Posts: 8
Joined: Thu Aug 31, 2017 5:44 pm

Re: Openbox window colors, dark theme

Postby skimmy » Tue Sep 12, 2017 1:38 am

Installed LDXE on Manjaro/Arch. The dark themes there create a dark background for some windows but just like on Lubuntu with custom colors many windows are still light so presents an odd half dark, half light desktop environment.

https://photos.app.goo.gl/M8SWUUia9jdZDRIx1

The problem has nothing to do with Crux. Did you read my second post?

skimmy wrote:All the themes I select with Openbox Configuration Manager leave the background light; same as selecting a theme with LXAppearance - Window Border - Theme. The dark backgrounds in my attached screenshot were achieved with LXAppearace - Color - use customized color scheme; but this did not affect the shown windows that still have light backgrounds. I just unchecked that option and clicked apply to see if that was stopping the themes from setting the background but they are still light and all my customized colors were lost :( , luckily I wrote them down :)

All the theme previews I see on http://lxlinux.com/themes.html have a light background, just like every theme preview I see in Openbox Configuration Manager or Customize look and feel.

Turquoise Nights Ob from box-look.org has a screenshot showing dark backgrounds but when I install it has no affect on any of my backgrounds and displays in theme preview like all the others with a light background.

BTW- fresh Lubuntu 17.04 install and updates; thanks for your time & help

Lieven
Posts: 2
Joined: Tue Sep 12, 2017 9:07 am

Re: Openbox window colors, dark theme

Postby Lieven » Tue Sep 12, 2017 10:27 am

The real problem is, some applications don't seem to support dark application backgrounds.

At least the following programs do not:

obconf
synaptic
libreoffice
galculator
qpdfview

The following programs do:

pcmanfm
gimp
inkscape
lxappearance
leafpad
xarchiver
audacious
lxterminal
...

If a program doesn't support a dark application background, you may have an option to set a dark background from the program itself.
But that's not always the case, nor does it work as expected (the last part is true for libreoffice)

As of yet, I haven't found a theme that sets a dark application background. Turquoise Nights indeed doesn't set a dark application background.

So at the moment, I'm sorry, but I can't help you.

skimmy
Posts: 8
Joined: Thu Aug 31, 2017 5:44 pm

Re: Openbox window colors, dark theme

Postby skimmy » Tue Sep 12, 2017 4:02 pm

drooly wrote:
skimmy wrote:Quite simply, windows with dark backgrounds & light text

this is definitely possible.

In this world nothing can be said to be definite, except death and taxes. Benjamin Franklin

drooly
Posts: 376
Joined: Mon Apr 08, 2013 6:45 am

Re: Openbox window colors, dark theme

Postby drooly » Wed Sep 13, 2017 5:39 am

^ that's just silly in this context.
"definitely possible" is definitely possible.

anyway, i can see your problem clearly now:

- crux is a gtk2 only theme! because i's that old.
- the "white" apps (obconf, synaptics) use gtk3, and fall back on the inbuilt adwaita theme.

solution:
use another theme (didn't i suggest that already earlier, possibly multiple times) - one that supports both gtk3 + gtk2.

skimmy
Posts: 8
Joined: Thu Aug 31, 2017 5:44 pm

Re: Openbox window colors, dark theme

Postby skimmy » Sat Sep 16, 2017 4:16 pm

Sorry for the levity, sometimes I have to laugh about computers or I'll cry

Turns out all I really needed was to add /usr/share/themes/Crux/gtk-3.0/gtk.css with:

@define-color bg_color #000;
@define-color fg_color #ddd;
@define-color base_color #222;
@define-color text_color #fff;

I had tried other themes with gtk3 like Lubuntu dark, sounds like it would have a dark backround, but it has light backgrounds. Downloaded Turquoise Nights but it only had openbox-3 dir. Since last post searched LXDE gtk3 theme & downloaded Mona, it provided dark bkg but didn't like the grey. Still like Crux for it's extreme gradient.

It took me a while to understand diff dirs for themes & icons, and diff dirs for Window Border (openbox-3), Icon, Curser, Widget (gtk-2.0 and/or gtk-3.0); and theme dirs can have one or all.

Synaptic Package Manager still light so only fixed 1 of 2 windows in my screenshot and dropdown menus for System Tray in panel and Firefox have light background and text (barely readable) so I'll have to get my hands even dirtier.

If only LXAppearance had saved custom colors to gtk-3.0/gtk.css never would have needed to get on here and would have been all GUId

Thanks for your time and help drooly, skimmy out

drooly
Posts: 376
Joined: Mon Apr 08, 2013 6:45 am

Re: Openbox window colors, dark theme

Postby drooly » Sun Sep 17, 2017 8:38 am

well done.
not what i would have done, but valid.
please mark your thread solved.


Return to “General Help”

Who is online

Users browsing this forum: No registered users and 3 guests