UI enhancement (KDE 3.1.3)

Various KDE 1.-4. Improvements

Source i (link to git-repo or to original if based on someone elses unmodified work):

Add the source-code for this project on opencode.net

0
Become a Fan
5.0

Available as/for:
Description:
UPDATE:: Shadowed text patch for KDE 3.1.3.

This patch has been cleaned to contain only 2 files for kdelibs and kdebase.
It maintains binary compatibility with the original code so you don't have to compile everything all over again.

** I'd like to thank to all of you for your interest and contributions to this patch. **
Last changelog:

07 Aug: The download link contains patches to 3_1_3_RELEASE. Textar has already made RPMs for Mandrake beta (second shot).

14 Jul: the patch is in the CVS now, so the download is out of date until I 'll get around to backport it to 3.1

23 Jun: new version with Bernardo's fix for kdesktop crashing.

20Jun: New patch (this time has 2 diff files: one for kdebase, one for kdelibs) . Also some code cleanup (less debug messages and some API docs).

Update 3
New patch created against a fresh copy of kde. 2 files. The config file shows an example of the default/selected configuration.

Update 2
BIG THANKS to Bernardo for his algorithm implementation ("acurate" in shadowconfig)

UPDATE: 6:08 GMT> fixed nasty bug causing crash on bogus shadow thickness. Improved the size of the rendered shadow (some cutting off on the left handside was observed)

A configuration is provided via Background/advanced.

The user can add custom configurations to the predefined ones in kdesktoprc:
[CustomShadow]
ShadowNames=Name 1,Name 2,Name 3,Name 4
ShadowItem.1=
ShadowItem.2=
ShadowItem.3=
...

and use the shadowconfig program to generate the entry strings.

This patch does no longer include the kicker pixmap patch.


Ratings & Comments

139 Comments

is0

This patch really was applied to KDE 3.2. The problem is in GUI configuration. This patch has no GUI configuration for different types of shadows. Of course, you can change config files manually. In file .kde/share/config/kdesktoprc find section [FMSettings], add line: ShadowParameters=0,0,4.0,255.0,3,1,0,0,0,0 Save file, then exec dcop kdesktop KDesktopIface configure to update your desktop. And we have new shadows! :) What does parameters mean? There are 10 parameters: 1. OFFSET X (integer) 2. OFFSET Y (integer) 3. MULTIPLICATION FACTOR (float) 4. MAX OPACITY(float) 5. THICKNESS (integer) 6. ALGORITHM (0,1,2,3,4)(NOTE: 0==1) 7. SELECTION TYPE (0,1) 8. reserved 9. reserved 10. reserved There are 4 diffrent algorithms: 0,1. Default decay 2. Double linear decay 3. Radial decay 4. No decay I think kcm-module may be written for change this parameters visually. It may be similiar to color schemes.

nbensa

Please, no flames. I use KDE/Linux and FBSD; I hate Windows. But XP's desktop shadows are way much better than KDE's ones - Anyone know how to make them more Windows XP-like?

nbensa

XP are much better until you try OSX :) Anyway, this' my ShadowParameters two years later :) [FMSettings] ShadowEnabled=true ShadowParameters=1,1,16.000000,192.000000,3,4,1

schmappel

Try this: ShadowParameters=1,1,7.0,255.0,3,0,0,0,0,0

polyp2000

Any chance of a patch for kde 3.2.3? I'd so love to have shadows on my icons like that ... nick ..

thomas12777

this is part of kde since 3.2...

polyp2000

Really ? because Im running 3,2,3 and I dont see the additional options in aadvanced background settings. Your screenshot seems to have a "Shadow Type" drop-down which I dont get. see screenie... http://www.blackapology.com/downloads/advanced.jpg Unless i'm missing something id like to have shadows on the icon text more like this ... http://themes.kde.org/content/preview.php?preview=1&id=5847&file1=5847-1.png&file2=&file3=&name=Silver nick ...

m1cr0phone

How do I use this? I've never dealt with a piece of software that's just two diff files before. Is this meant to be used when compiling KDE? Or does it do something to an already compiled and installed KDE? (I run KDE 3.1.3 from Mandrake 9.2)

luca

does this also work on kde-3.2? if not, are you planning to port it? since it is realy nice ...

wilburpan

Just for grins, I tried to install these patches with KDE 3.1.4 on my Gentoo system. I also have QT 3.2 installed. kdelibs and kdebase patch fine. kdelibs compiles okay. kdebase fails to compile with the following error messages: /bin/sh ../../../../libtool --silent --mode=link --tag=CXX g++ -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -pedantic -W -Wpointer-arith -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -DNDEBUG -DNO_DEBUG -O2 -march=pentium3 -pipe -fomit-frame-pointer -O3 -fno-exceptions -fno-check-new -DQT_CLEAN_NAMESPACE -DQT_NO_COMPAT -DQT_NO_ASCII_CAST -D_GNU_SOURCE -o konq_sidebartree_bookmarks.la.closure konq_sidebartree_bookmarks_la_closure.lo -L/usr/X11R6/lib -L/usr/qt/3/lib -L/usr/kde/3.1/lib -module -avoid-version -module -no-undefined -R /usr/kde/3.1/lib -R /usr/qt/3/lib -R /usr/X11R6/lib bookmark_module.lo bookmark_item.lo ../../libkonqsidebarplugin.la ../libkonq_sidebar_tree.la /bin/sh ../../../../libtool --silent --mode=link --tag=CXX g++ -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -pedantic -W -Wpointer-arith -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -DNDEBUG -DNO_DEBUG -O2 -march=pentium3 -pipe -fomit-frame-pointer -O3 -fno-exceptions -fno-check-new -DQT_CLEAN_NAMESPACE -DQT_NO_COMPAT -DQT_NO_ASCII_CAST -D_GNU_SOURCE -o konq_sidebartree_bookmarks.la -rpath /usr/kde/3.1/lib/kde3 -L/usr/X11R6/lib -L/usr/qt/3/lib -L/usr/kde/3.1/lib -module -avoid-version -module -no-undefined -R /usr/kde/3.1/lib -R /usr/qt/3/lib -R /usr/X11R6/lib bookmark_module.lo bookmark_item.lo ../../libkonqsidebarplugin.la ../libkonq_sidebar_tree.la make[5]: Leaving directory `/var/tmp/portage/kdebase-3.1.4/work/kdebase-3.1.4/konqueror/sidebar/trees/bookmark_module' make[4]: Leaving directory `/var/tmp/portage/kdebase-3.1.4/work/kdebase-3.1.4/konqueror/sidebar/trees' make[3]: Leaving directory `/var/tmp/portage/kdebase-3.1.4/work/kdebase-3.1.4/konqueror/sidebar' make[2]: Leaving directory `/var/tmp/portage/kdebase-3.1.4/work/kdebase-3.1.4/konqueror' Making all in kdesktop make[2]: Entering directory `/var/tmp/portage/kdebase-3.1.4/work/kdebase-3.1.4/kdesktop' cd .. && \ /bin/sh /var/tmp/portage/kdebase-3.1.4/work/kdebase-3.1.4/admin/missing --run automake-1.7 --foreign kdesktop/Makefile configure.in:39: version mismatch. This is Automake 1.7.5, configure.in:39: but the definition used by this AM_INIT_AUTOMAKE configure.in:39: comes from Automake 1.7.2. You should recreate configure.in:39: aclocal.m4 with aclocal and run automake again. make[2]: *** [Makefile.in] Error 1 make[2]: Leaving directory `/var/tmp/portage/kdebase-3.1.4/work/kdebase-3.1.4/kdesktop' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/kdebase-3.1.4/work/kdebase-3.1.4' make: *** [all] Error 2 !!! ERROR: kde-base/kdebase-3.1.4 failed. !!! Function kde_src_compile, Line 137, Exitcode 2 !!! died running emake, kde_src_compile:make

mikie

It's strange because I've compiled kdelibs and kdebase 3.1.4 with patches without any problems and everything works fine. Try to downgrade to automake-1.7.2 and compile again. btw. I'm using Slackware 9.1-pre

dperson

Where did you find that wallpaper with the wicked cool tree to the bottom right? Thanks.

fingster

Errors: In file included from kdesktop_la.all_cpp.cpp:7: kfileividesktop.cpp: In member function `virtual void KFileIVIDesktop::paintItem(QPainter*, const QColorGroup&)': kfileividesktop.cpp:82: `paintPixmap' undeclared (first use this function) kfileividesktop.cpp:82: (Each undeclared identifier is reported only once for each function it appears in.) kfileividesktop.cpp:90: `paintText' undeclared (first use this function) I'm using KDE3.1.3.Can you help me?

fingster

OK.I have a mistake in compiling kdelibs.Now, everything's all right. Ah, really Great work! Best wishes.

rael

I've got : root@pawel:/usr/src/slackware/sources/kde-3.1.3.orig/kdebase/kdesktop# make Making all in . make[1]: Wchodzê katalog `/usr/src/slackware/sources/kde_313/kdebase/kdesktop' /bin/sh ../libtool --silent --mode=link --tag=CXX g++ -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -O2 -march=i686 -O2 -pipe -mcpu=i686 -fno-exceptions -fno-check-new -DQT_CLEAN_NAMESPACE -DQT_NO_COMPAT -DQT_NO_ASCII_CAST -D_GNU_SOURCE -o kdesktop -L/usr/X11R6/lib -L/usr/lib/qt3/lib -L/opt/kde/lib -R /opt/kde/lib -R /usr/lib/qt3/lib -R /usr/X11R6/lib dummy.o kdesktop.la ./.libs/kdesktop.so: undefined reference to `KDesktopShadowSettings::setConfig(KConfig *)' ./.libs/kdesktop.so: undefined reference to `KDesktopShadowSettings::KDesktopShadowSettings(KConfig *)' ./.libs/kdesktop.so: undefined reference to `KShadowEngine::shadowSettings(void)' ./.libs/kdesktop.so: undefined reference to `KShadowEngine::KShadowEngine(KShadowSettings *)' ./.libs/kdesktop.so: undefined reference to `KFileIVIDesktop::KFileIVIDesktop(KonqIconViewWidget *, KFileItem *, int, KShadowEngine *)' ./.libs/kdesktop.so: undefined reference to `KShadowEngine::~KShadowEngine(void)' collect2: ld returned 1 exit status make[1]: *** [kdesktop] B³±d 1 make[1]: Opuszczam katalog `/usr/src/slackware/sources/kde_313/kdebase/kdesktop' make: *** [all-recursive] B³±d 1 Any ideas ? kdelibs patched, and maked installed before making kdebase.

equinoxe

It looks like the shadow sources are not compiled for some reason... :(. There are 2 ways to solve this: 1. remove all the objects (make clean) in kdesktop 2. check Makefile.am sources and add the files by hand. Also, you may want to check if there's a Makefile.am.rej lying around somewhere...

wopr

Downgrading to automake-1.7.2 fixed the compile problem for me.

azza-bazoo

That made it work for me too. Thanks!

tom14

I upgraded to KDE CVS a couple of days ago. I found the shadow option and turned it on but the default shadow is not very visually appealing. I have found some shadow configuration stuff in kdesktoprc but I have no idea what are good values to use. Do you know of any good shadow configurations or any program to assist me in configuring the shadows?

equinoxe

Hi, Some examples of entries are: "OS X" , QString("0, 1, 16.0, 192.0, 2, 4, 0")); "Windows XP" , QString("1, 1, 32.0, 139.0, 2, 4, 0")); "Soft outline" ,QString("0, 0, 4.0, 170.0, 1, 4, 0")); - the first 2 entries are x,y offsets (0,0 means right behind the text). - following two determine the halo (factor, max opacity). - thickness (how large the halo is - selected algorithm (4 is the only implemented and probably will be removed in 3.2) - selection (inverse video or use the background text color) - boolean 0/1 Cheers, Laur

tom14

Thanx!

Phemt

same problem

MDonoughe

This isn't realy a reply, but it is important and belongs with this information here: This is in KDE 3.2 Beta 1, and is in an odd place(advanced wallpaper options), but there is a strange issue some people will have:

The shadow color is determined by setting the text background color and then disabling it.

If you don't set it you will most likely end up with brown shadows that are barely noticable.

ra1n

How do I config this thing? I've added your patch to kde 3.1.3 RH source RPMS rebuild went fine, KDE work as normal, but I cannot enable shadow text, I've read about a shadowconfig program but I can't find it.... Suggestions?

equinoxe

look below :)

Pling
0 Affiliates
Details
license
version
updated
added
downloads 24h 0
mediaviews 24h 0
pageviews 24h 0

Other Various KDE 1.-4. Improvements:

Slicker Debian Package for Woody
cirrusgr
last update date: 22 years ago

Score 5.0

Konqueror/kdesktop suggestion
PovMan
last update date: 22 years ago

Score 5.0

Biiig buttons
dbojan
last update date: 20 years ago

Score 5.0

Yet Another KControl
Frans
last update date: 21 years ago

Score 5.0

Next window and next/previos window
dbojan
last update date: 20 years ago

Score 5.0

Fantasie Toolbar
katoe
last update date: 19 years ago

Score 5.0