UI enhancement (KDE 3.1.3)

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

0
5.0
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:

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.

C

equinoxe

17 years ago

Heh.:) I should do some docs about the shadow... Anyway, in kdesktoprc, you have to change the "ShadowCurrentScheme". Several settings are provided in the sources...

[FMSettings]
ItemTextBackground=invalid
NormalTextColor=255,255,255
ShadowCurrentScheme=1,1,32.0,169.0,2,4,0 #0,0,4.000000,255.000000,3,0,0
ShadowEnabled=true
ShowFileTips=true

Cheers,

Laur

Report

jrch2k

17 years ago

i really wanna know if you send this patch to kde team guys, i think that must be awesome have kde with an antiliased ans shadowed text

second the patch not work in kde 3.1 or 3.1.x series at least in redhat 9 or suse 8.2

thanks, great work

Report

C

equinoxe

17 years ago

Hi and sorry for the great delay...

Yop, it's in the cvs (most of it)..

Report

techniq

17 years ago

The patch I redownloaded just now is identical to the one I was using earlier (did a diff on both files to make sure). Am I missing something? BTW, the error I was getting is...

In file included from bgadvanced.cpp:47:
shadowconf.h:31:24: shadowitem.h: No such file or directory
In file included from bgadvanced.cpp:47:
shadowconf.h:58: error: type specifier omitted for parameter `ShadowItem'
shadowconf.h:58: error: parse error before `*' token
shadowconf.h:81: error: syntax error before `*' token
shadowconf.h:100: error: `ShadowItem' was not declared in this scope
shadowconf.h:100: error: template argument 1 is invalid
shadowconf.h:100: warning: ISO C++ forbids declaration of `items' with no type
shadowconf.h:105: warning: ISO C++ forbids declaration of `ShadowItem' with no
type
shadowconf.h:105: error: parse error before `;' token
make[4]: *** [bgadvanced.lo] Error 1
make[4]: Leaving directory `/home/cvsuser/KDECVS-06-23-03/kdebase-030623/kcontrol/background'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/cvsuser/KDECVS-06-23-03/kdebase-030623/kcontrol/background'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/cvsuser/KDECVS-06-23-03/kdebase-030623/kcontrol'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/cvsuser/KDECVS-06-23-03/kdebase-030623'
make: *** [all] Error 2

Report

C

equinoxe

17 years ago

hmm.. this looks like you haven't installed kdelibs (kdefx to be exact) or your includes in kdebase point to the old (original?)includes. Try defining the KDEDIR/KDEHOME paths and ./configure and make again.

Cheers,

Laur

Report

techniq

17 years ago

When will this be merged into KDE CVS? Are you just waiting to complete more work on it?

Also, I tried it on a daily snapshot (06-22-03), but kdebase failed to compile after the patch (had already compiled it without the patch, and went through fine, kdelibs did compile fine as well). I don't have the error right off hand, but it was something to do with shadowconfig missing I think.

Report

C

equinoxe

17 years ago

Yes, that's true. My mistake. I forgot to include the changes in libkonq. They are now in the patch. You should be able to patch libkonq now. As for integration to CVS, Chris Lee is working on it :) so it should be soon (I hope)

Report

Richardve

17 years ago

Well, thank you, my desktop is a bit broken now :)

This is what I'm getting when running kdesktop:

kdesktop: Saver Engine disabled
kio (KSycoca): Trying to open ksycoca from /var/tmp/kdecache-username/ksycoca
kdesktop: setConfig()
kdesktop: ShadowTextColor=#ffffff
kdesktop: ShadowTextBackground=#000000
kdesktop: 2,0,0,4.000000,170.000000,1,4,0
ERROR: Communication problem with kdesktop, it probably crashed.

Report

Richardve

17 years ago

That's for the latest cvs version, btw.

(compiled without any issues)

Report

C

equinoxe

17 years ago

Hi, I just got this morning a patch from Bernardo in ShadowEngine (kdelibs/kdefx). I've added that to the patch today. So you could download the patched patch (:P) or could change the second constructor to:

+
+ShadowEngine::ShadowEngine(ShadowItem *fx) :
+ m_shadowItem(0L)
+{
+ setShadowItem(fx);
+}


the m_shadowItem(0L) was missing so if the location was not 0L, the setItem() would try to delete it...

Report

Richardve

17 years ago

The second constructor does already do that, though :)

Anyway, I'll give the updated patch a try, maybe it does fix things.

Report

Richardve

17 years ago

Hm, just noticed that this 'new' patched patch is the same patch as the previous patch.. :/

(same file size, same dates, same code)

So it's still crashing for me.


I think something went wrong on your side because I also (with the 'first' patch) had to add a closing bracket ('}') at the end of one of the patched files (can't remember which file anymore).

So the current patch is still a bit broken.
(nothing failed while patching so that's not the problem here)

Report

C

equinoxe

17 years ago

Hi,

can you please send me an e-mail off the board with the error you get?

Cheers,

Laur

Report

ronie

17 years ago

the file with the missing bracket is
shadowengine.cpp

I'm compiling kde (cvs) with this patch applied right now.

I'll let you know if it gives me any problems.

Report

Richardve

17 years ago

Still doesn't work here :(

Report

ronie

17 years ago

no, no problems here.
everything works just fine.

btw. thanks for this patch, like it a lot.

Report

thormedia

17 years ago

Do you think we will still have a patch for 3.1.2 this weekend?

I itching to try this out.. hehe

Kind regards

Miles.

Report

wilburpan

17 years ago

I also would love a patch against 3.1.2, instead of the cvs. Thanks.

Report

C

equinoxe

17 years ago

There is a simple(r) way out:

kdelibs should patch with kde 3.1.x without problems. Then libkonq and kdesktop should patch cleanly too. The only bit is the frontend which is different in 3.1 series. ...and i'm working on that :)

Then, theoretically, you should be able to use the config file generated already in 3.2 :)

Report

ntesa

17 years ago

Yes, please backport it to KDE 3.1.2, this patch makes the desktop look great and I'm sure a lot of people are not running CVS and would love to have this patch :) Many thanks.

Report

WinterWolf

17 years ago

Anyone who wants such improvements as shadowed text should visit this bug report and vote for it:

http://bugs.kde.org/show_bug.cgi?id=58944

Report

Richardve

17 years ago

But that bug is about stuff like the drop shadows from Nautilus.

And the drop shadows in Nautilus are NOT drop shadows.
It's just the same string drawn twice with different offsets, no blending, no interpolating, no nothing.
(that's why it doesn't make the text stand out, something the patch in this topic does do, which is good)

Report

techniq

17 years ago

I noticed that myself about the background and kicker. Even in 3.1, it seems to be hacked in a way to make the menus popup, as that region still isn't "Just like the desktop". For instance, I set my wallpaper usually just by dragging the image from konq to my desktop, then using the popup "set as wallpaper" option. This is not possible in 3.1, although I think it has been resolved in CVS (I just formatted and am actually compiling KDE CVS now, or I would confirm).

Report

lucher

17 years ago

Hi
I saw that you are able now to start apps that draw direct onto the desktop.

I'm not sure about detailed K technology, but it would be awsome to be able to implement that wonderful wave effect from enlightenment. The problem I see is that until KDE 3.1 the desktop ist not the whole screen, but the area between the kicker bars.

Example: if you program a wave effect it should be drawn eg. at the bottom (on the same "height" as the kicker bars maybe) Problem: the K-"desktop" starts above the kicker panel. On its (the kicker's) left and right site the wallpaper is shown but only to emulate it - not to work (try it by yourself - popup a desktop menu). That means: If the wave effect would be a part of the kdesktop it would be shown above the kicker where it is not supposed to be.

Question: Does your patch replace that "hack" by a "stable" implementation? Maybe you will do so in the future?

Thanks for reply.

Report

C

equinoxe

17 years ago

Hi,

To be honest, I think you should have placed the message in the general discussion list. My patch doesn't really deal with this kind of things. It's just ammending the way things are drawn on the desktop (which is a sort of iconview...)

Report

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.

12345678910
Be the first to comment
File (click to download) Version Description PackagetypeArchitecture Downloads Date Filesize DL OCS-Install MD5SUM
*Needs pling-store or ocs-url to install things
Pling
0 Affiliates
Details
license
version
updated Aug 07 2003
added Jan 23 2003
downloads 24h
0
mediaviews 24h 0
pageviews 24h 4