Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Dark KDE4 color scheme and pretty KHTML
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
sips
n00b
n00b


Joined: 08 Apr 2008
Posts: 31

PostPosted: Sat Aug 30, 2008 11:36 pm    Post subject: Dark KDE4 color scheme and pretty KHTML Reply with quote

Selecting dark color scheme in kde4, mess up html rendering in konqueror (background and input colors).
Here is simple solution specially for Gentoo KDE4 fans:
Code:
$ mkdir ${HOME}/.kde/share/apps/khtml/css
# user YOUR kde version
$ cp /usr/kde/4.1/share/apps/khtml/css/html4.css ${HOME}/.kde/share/apps/khtml/css/
$ perl -pi -e 's/html \{$/html \{ background-color: #ffffff;/g' ${HOME}/.kde/share/apps/khtml/css/html4.css
$ perl -pi -e 's/background-color: window;/background-color: #ffffff;/g' ${HOME}/.kde/share/apps/khtml/css/html4.css
$ perl -pi -e 's/color: windowtext;/color: #000000;/g' ${HOME}/.kde/share/apps/khtml/css/html4.css
$ perl -pi -e 's/background-color: buttonface;/background-color: #cccccc;/g' ${HOME}/.kde/share/apps/khtml/css/html4.css
$ perl -pi -e 's/color: buttontext;/color: #000000;/g' ${HOME}/.kde/share/apps/khtml/css/html4.css


Example snapshot http://img505.imageshack.us/img505/3954/khtmlla2.th.jpg
Back to top
View user's profile Send private message
poly_poly-man
Advocate
Advocate


Joined: 06 Dec 2006
Posts: 2477
Location: RIT, NY, US

PostPosted: Sat Aug 30, 2008 11:42 pm    Post subject: Reply with quote

this work for KDE3?
_________________
iVBORw0KGgoAAAANSUhEUgAAA

avatar: new version of logo - see topic 838248. Potentially still a WiP.
Back to top
View user's profile Send private message
sips
n00b
n00b


Joined: 08 Apr 2008
Posts: 31

PostPosted: Sun Aug 31, 2008 12:01 am    Post subject: Reply with quote

Not exactly, but idea is same, copy html4.css to ${HOME}/.kde/share/apps/khtml/css/ and edit color values.
If something goes wrong just rm ${HOME}/.kde/share/apps/khtml/css/html4.css

EDIT: I looked at kde3's html4.css on net and think it should work.


Last edited by sips on Sun Aug 31, 2008 12:15 am; edited 1 time in total
Back to top
View user's profile Send private message
poly_poly-man
Advocate
Advocate


Joined: 06 Dec 2006
Posts: 2477
Location: RIT, NY, US

PostPosted: Sun Aug 31, 2008 12:04 am    Post subject: Reply with quote

I tried something similar recently - I edited the values by hand, and then set it as my stylesheet in the settings for konqueror...

COMPLETELY screwed up everything - stuff centered (vertically) weird, some text wouldn't show up right...

I'll try your method...
_________________
iVBORw0KGgoAAAANSUhEUgAAA

avatar: new version of logo - see topic 838248. Potentially still a WiP.
Back to top
View user's profile Send private message
poly_poly-man
Advocate
Advocate


Joined: 06 Dec 2006
Posts: 2477
Location: RIT, NY, US

PostPosted: Sun Aug 31, 2008 12:10 am    Post subject: Reply with quote

works pretty well... but doesn't seem to fix text input bars... still grey..

Good tip otherwise, tho.
_________________
iVBORw0KGgoAAAANSUhEUgAAA

avatar: new version of logo - see topic 838248. Potentially still a WiP.
Back to top
View user's profile Send private message
sips
n00b
n00b


Joined: 08 Apr 2008
Posts: 31

PostPosted: Sun Aug 31, 2008 12:26 am    Post subject: Reply with quote

Yes, I saw that there are less color values in kde3's html4.css. You should search for 'input[type="text"], input[type="password"]' and 'input[type="submit"], input[type="reset"], input[type="button"]' set backgrount-color manually. Also check border color values.
Back to top
View user's profile Send private message
poly_poly-man
Advocate
Advocate


Joined: 06 Dec 2006
Posts: 2477
Location: RIT, NY, US

PostPosted: Sun Aug 31, 2008 12:43 am    Post subject: Reply with quote

Sweet!

Just set all those with background-color: #ffffff;.
_________________
iVBORw0KGgoAAAANSUhEUgAAA

avatar: new version of logo - see topic 838248. Potentially still a WiP.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum