View previous topic :: View next topic |
Author |
Message |
sips n00b
Joined: 08 Apr 2008 Posts: 31
|
Posted: Sat Aug 30, 2008 11:36 pm Post subject: Dark KDE4 color scheme and pretty KHTML |
|
|
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 |
|
|
poly_poly-man Advocate
Joined: 06 Dec 2006 Posts: 2477 Location: RIT, NY, US
|
Posted: Sat Aug 30, 2008 11:42 pm Post subject: |
|
|
this work for KDE3? _________________ iVBORw0KGgoAAAANSUhEUgAAA
avatar: new version of logo - see topic 838248. Potentially still a WiP. |
|
Back to top |
|
|
sips n00b
Joined: 08 Apr 2008 Posts: 31
|
Posted: Sun Aug 31, 2008 12:01 am Post subject: |
|
|
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 |
|
|
poly_poly-man Advocate
Joined: 06 Dec 2006 Posts: 2477 Location: RIT, NY, US
|
Posted: Sun Aug 31, 2008 12:04 am Post subject: |
|
|
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 |
|
|
poly_poly-man Advocate
Joined: 06 Dec 2006 Posts: 2477 Location: RIT, NY, US
|
Posted: Sun Aug 31, 2008 12:10 am Post subject: |
|
|
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 |
|
|
sips n00b
Joined: 08 Apr 2008 Posts: 31
|
Posted: Sun Aug 31, 2008 12:26 am Post subject: |
|
|
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 |
|
|
poly_poly-man Advocate
Joined: 06 Dec 2006 Posts: 2477 Location: RIT, NY, US
|
Posted: Sun Aug 31, 2008 12:43 am Post subject: |
|
|
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 |
|
|
|