You are not logged in.

#1 2009-04-13 13:59:35

fdac
Member
From: Brisbane, Australia
Registered: 2005-06-19
Posts: 96

Web browsing with dark KDE themes

I've started using a nice dark KDE4 theme, with dark grey / black buttons and toolbars.

However, when browsing the web, many sites look bad.  Dark text boxes / combo boxes, radio buttons etc. are displayed within the (mostly white) web site.

This happens in Opera, Firefox and Konqueror.  I primarily use Opera with qt Native skin.  The Opera appearance settings don't seem to change things. If I change the skin to Opera Standard, the black backgrounds go away but the light coloured text stays.

The ideal solution for me is this:  Maintain the dark theme including menus, toolbars, etc. BUT have all web content display in 'normal' colours (white background, dark text)

Can I achieve this?

Thanks
Francis

Offline

#2 2009-04-13 14:03:49

jwcxz
Member
Registered: 2008-09-23
Posts: 239
Website

Re: Web browsing with dark KDE themes

It has taken me several months, numerous style hacks, and some code modifications in order to get some programs to play nicely with dark themes.

For example, on Opera, I'm using the development snapshot (though I think that 9 would work the same) with the native QT toolkit and a hacked version of the shadowguard theme (to fix some color problems).  I also have a custom user stylesheet that fixes a lot of color problems in form widgets.

It's surprising and saddening that support for dark themes is virtually nil on both Firefox and Opera, as well as a ton of other applications (e.g. Mathematica, KVirc, etc.)


-- jwc
http://jwcxz.com/ | blog
dotman - manage your dotfiles across multiple environments
icsy - an alarm for powernappers

Offline

#3 2009-04-13 16:29:54

hatten
Arch Linux f@h Team Member
From: Sweden, Borlange
Registered: 2009-02-23
Posts: 736

Re: Web browsing with dark KDE themes

I have just gave the native colors of all sites the finger, black background and blue text all the way! (firefox)

Offline

#4 2009-04-13 22:51:26

fdac
Member
From: Brisbane, Australia
Registered: 2005-06-19
Posts: 96

Re: Web browsing with dark KDE themes

jwcxz, sounds like what I thought, it doesn't actually work that well.   

Is much involved in setting up the custom stylesheets and themes for Opera?

Cheers
Francis

Offline

#5 2009-04-14 13:10:02

fdac
Member
From: Brisbane, Australia
Registered: 2005-06-19
Posts: 96

Re: Web browsing with dark KDE themes

I found this, looking around on the web:

http://my.opera.com/community/forums/to … ent2905121

This works to make all web text black and backgrounds white, provided 'Opera Standard' skin is selected in the Appearance preferences.  Unfortunately it makes Opera's menus and address bar look ugly. 

I still wonder - why is it not simple to have dark, KDE-themed menus and 'look' to the application itself whilst forcing a light, black-on-white appearance for web page content?

Last edited by fdac (2009-04-14 13:11:54)

Offline

#6 2009-04-14 13:24:42

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,018

Re: Web browsing with dark KDE themes

I'm using dark color theme in KDE4 and Opera 10 snapshot with Qt Native/System Color Scheme and background color set to #ffffff in about:config - nothing annoys me in this setup.

khkh6.th.png

Last edited by lucke (2009-04-14 13:34:48)

Offline

#7 2009-04-14 14:04:35

Rasi
Member
From: Germany
Registered: 2007-08-14
Posts: 1,914
Website

Re: Web browsing with dark KDE themes

lucke wrote:

I'm using dark color theme in KDE4 and Opera 10 snapshot with Qt Native/System Color Scheme and background color set to #ffffff in about:config - nothing annoys me in this setup.

http://img186.imageshack.us/img186/5772/khkh6.th.png

mind clicking the dropdown menu of the adressbar and screenshot that? smile


He hoped and prayed that there wasn't an afterlife. Then he realized there was a contradiction involved here and merely hoped that there wasn't an afterlife.

Douglas Adams

Offline

#8 2009-04-14 14:40:33

JK3mp
Member
Registered: 2009-03-25
Posts: 105

Re: Web browsing with dark KDE themes

Yeah cause somehow setting the input boxes color for your theme effects the default for the color of input boxes in web pages too that don't assign a bg color to an input box. I know if you go to like myspace.com and a few of the bigger sites alot of them don't do that with like there login inputs etc.

Offline

#9 2009-04-14 14:47:59

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,018

Re: Web browsing with dark KDE themes

Rasi wrote:

mind clicking the dropdown menu of the adressbar and screenshot that? smile

Hm, if I just open the dropdown menu by clicking, every second entry is gray on white (== unreadable), but things are mostly readable if I input something in the addressbar and dropdown menu shows possible completions.

Offline

#10 2009-04-14 15:26:52

Rasi
Member
From: Germany
Registered: 2007-08-14
Posts: 1,914
Website

Re: Web browsing with dark KDE themes

lucke wrote:
Rasi wrote:

mind clicking the dropdown menu of the adressbar and screenshot that? smile

Hm, if I just open the dropdown menu by clicking, every second entry is gray on white (== unreadable), but things are mostly readable if I input something in the addressbar and dropdown menu shows possible completions.

exactly... this is only with some qt-only apps tho, kde apps work fine (e.g. konqueror)


He hoped and prayed that there wasn't an afterlife. Then he realized there was a contradiction involved here and merely hoped that there wasn't an afterlife.

Douglas Adams

Offline

#11 2009-04-16 04:49:48

aviynw
Member
Registered: 2009-04-01
Posts: 26

Re: Web browsing with dark KDE themes

Well, I posted a related howto on the pclinuxos forums back when I was using that.  It explains how to get a dark theme consistent with web pages.  It's a matter of overriding the color properties of certain elements to math your theme.  For your problem you can instead just override the color properties to not match your theme.  It isn't a perfect solution because you override the author's color choices.  But, since you will only override settings for input fields button etc. it won't be a problem for %99.9 of sites because those colors are usually left to their defaults anyways. 
http://www.pclinuxos.com/index.php?opti … ic=45217.0

hope that helps.

Offline

#12 2009-04-16 12:33:50

fdac
Member
From: Brisbane, Australia
Registered: 2005-06-19
Posts: 96

Re: Web browsing with dark KDE themes

Thanks for the input, everybody. 

Using lucke's method (although I have Opera 9.64 vanilla, not 10 snapshot) the Opera menus, tabs etc are nicely themed.  However some input boxes (e.g. this one on bbs.archlinux.org, Google, Gmail) are black with light text .  This is not suitable for many web sites.  I think this is similar to lucke's screen shot...

200904162231551280x1024.th.png

Changing things in opera:config does not appear to do anything, even when closing and reopening Opera.

Using the

opera -bg "#ffffff" -fg "#000000" -noargb

brute force method makes the web page look right, but makes the Opera menus ugly, all white and not themed properly (when using QT native and system color scheme).

200904162235391280x1024.th.png

Lastly, if I use the 'brute force method' but change the Appearance settings to Opera Standard, the white menus and tabs go away but I get ugly, non-themed grey/white menus and toolbars.

200904162239401280x1024.th.png

Is the problem that the opera:config colour settings simply don't work? Or are they overridden by KDE?

Still not solved - but getting closer.

Last edited by fdac (2009-04-16 12:41:32)

Offline

#13 2009-04-18 09:35:38

fdac
Member
From: Brisbane, Australia
Registered: 2005-06-19
Posts: 96

Re: Web browsing with dark KDE themes

I've been playing with this a while now and no further progress.   Any ideas on the above screenshots ?

Thanks
Francis

Offline

#14 2009-04-18 12:40:09

jwcxz
Member
Registered: 2008-09-23
Posts: 239
Website

Re: Web browsing with dark KDE themes

Here's what I've done with Opera.

I created ~/.opera/styles/user.css with this content:

input, textarea, select {
        color: #000;
        background-color: #fff;
}

That gets rid of the problem of black with light text.

I installed the shdowguard theme.  By default, the theme is pretty good.  However, I think that I've made some small adjustments to improve problems with rendering black text on a dark background, but I haven't quite finished.  If I ever finish, I'll post a patch.

I think I might have edited some of the colors in about:config, but they didn't really do anthing.

It's really unfortunate how inflexible some programs are to color schemes.  Web browsers seems to be the worst.

Hopefully those tips help.


-- jwc
http://jwcxz.com/ | blog
dotman - manage your dotfiles across multiple environments
icsy - an alarm for powernappers

Offline

#15 2010-05-08 13:22:27

OK100
Member
From: [U==]
Registered: 2010-04-26
Posts: 455

Re: Web browsing with dark KDE themes

opera --systemstyle

Last edited by OK100 (2010-05-08 15:23:37)

Offline

#16 2012-10-12 11:27:05

jazzcat
Member
Registered: 2012-10-10
Posts: 25

Re: Web browsing with dark KDE themes

Thank you for the user.css script. I have used the stylish plugin to apply this to firefox as detailed here and it has solved my input text field issue.

Last edited by jazzcat (2012-10-12 11:27:50)

Offline

Board footer

Powered by FluxBB