
Various KDE 1.-4. Improvements
Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net
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. **
17 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.
17 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
16 years ago
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
16 years ago
Report
schmappel
14 years ago
ShadowParameters=1,1,7.0,255.0,3,0,0,0,0,0
Report
nbensa
14 years ago
Anyway, this' my ShadowParameters two years later :)
[FMSettings]
ShadowEnabled=true
ShadowParameters=1,1,16.000000,192.000000,3,4,1
Report
polyp2000
16 years ago
I'd so love to have shadows on my icons like that ...
nick ..
Report
thomas12777
16 years ago
Report
polyp2000
16 years ago
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
16 years ago
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
17 years ago
Report
wilburpan
17 years ago
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
17 years ago
Try to downgrade to automake-1.7.2
and compile again.
btw. I'm using Slackware 9.1-pre
Report
dperson
17 years ago
Report
fingster
17 years ago
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
17 years ago
Ah, really Great work!
Best wishes.
Report
rael
17 years ago
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
17 years ago
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
17 years ago
Report
azza-bazoo
17 years ago
Report
tom14
17 years ago
Do you know of any good shadow configurations or any program to assist me in configuring the shadows?
Report
MDonoughe
17 years ago
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
Phemt
17 years ago
Report
equinoxe
17 years ago
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
17 years ago
Report
ra1n
17 years ago
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
17 years ago
Report