UI enhancement (KDE 3.1.3)
Various KDE Extensions
Score 73%
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:

14 years ago

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.

is0

13 years ago

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.

Report

nbensa

13 years ago

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?

Report

nbensa

10 years ago

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

Report

schmappel

10 years ago

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

Report

polyp2000

13 years ago

Any chance of a patch for kde 3.2.3?

I'd so love to have shadows on my icons like that ...

nick ..

Report

thomas12777

13 years ago

this is part of kde since 3.2...

Report

polyp2000

13 years ago

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 ...

Report

m1cr0phone

13 years ago

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)

Report

luca

13 years ago

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

Report

wilburpan

14 years ago

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

Report

mikie

14 years ago

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

Report

dperson

14 years ago

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

Report

fingster

14 years ago

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?

Report

fingster

14 years ago

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

Report

rael

14 years ago

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.

Report

equinoxe

14 years ago

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...

Report

wopr

14 years ago

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

Report

azza-bazoo

14 years ago

That made it work for me too. Thanks!

Report

tom14

14 years ago

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?

Report

equinoxe

14 years ago

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

Report

tom14

14 years ago

Thanx!

Report

Phemt

14 years ago

same problem

Report

MDonoughe

13 years ago

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.

Report

ra1n

14 years ago

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?

Report

equinoxe

14 years ago

look below :)

Report

14 years ago

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.

product-maker 121 346

File (click to download) Version Description Filetype Packagetype License Downloads Date Filesize OCS-Install DL
Details
version
updated Aug 07 2003
added Jan 23 2003
downloads today
0
page views today 0