
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
This little module for the control center gathers in one place all available settings for the desktop icons texts: Font, colors and shadow.
(It extends and is meant to replace "TextShadowEdit".)
14 years ago
0.3:
- Improved dialog.
- 4 presets are now available for the most common styles of shadow.
- You are now warned when the foreground and the background are
identical and produce an illegible result.
0.2:
- First public release
14 years ago
0.3:
- Improved dialog.
- 4 presets are now available for the most common styles of shadow.
- You are now warned when the foreground and the background are
identical and produce an illegible result.
0.2:
- First public release
jcsmooth
14 years ago
Is this file something I can put into my /usr/lib without messing anything else up and if so could someone send it to me?
Thanks, JC
Report
Laerte
14 years ago
I can't install this module in my gentoo box. Configure goes ok, but make fails when building kcm_desktoptext.la. Below are the error messages:
/bin/sh ../libtool --silent --mode=compile --tag=CXX g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/kde/3.5/include -I/usr/qt/3/include -I. -DQT_THREAD_SUPPORT -D_REENTRANT -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -W -Wpointer-arith -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -O2 -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common -c -o textconfig.lo `test -f 'textconfig.cpp' || echo './'`textconfig.cpp
kshadowsettings.h:43: warning: 'class KShadowSettings' has virtual functions but non-virtual destructor
/bin/sh ../libtool --silent --mode=link --tag=CXX g++ -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -W -Wpointer-arith -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -O2 -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common -o kcm_desktoptext.la -rpath /usr/kde/3.5/lib/kde3 -avoid-version -module -no-undefined -Wl,--no-undefined -Wl,--allow-shlib-undefined -L/usr/lib -L/usr/qt/3/lib -L/usr/kde/3.5/lib desktoptext.lo textpreviewwidget.lo textconfig.lo -lkdeinit_kdesktop -lkdeui
.libs/textpreviewwidget.o: In function `TextPreviewWidget::cleanup()':
textpreviewwidget.cpp:(.text+0x47b): undefined reference to `KShadowEngine::~KShadowEngine()'
.libs/textpreviewwidget.o: In function `TextPreviewWidget::updatePreview()':
textpreviewwidget.cpp:(.text+0xf72): undefined reference to `KShadowEngine::makeShadow(QPixmap const&, QColor const&)'
textpreviewwidget.cpp:(.text+0xfa2): undefined reference to `KShadowSettings::offsetY() const'
textpreviewwidget.cpp:(.text+0xfb5): undefined reference to `KShadowSettings::offsetX() const'
.libs/textpreviewwidget.o: In function `TextPreviewWidget::init(QString)':
textpreviewwidget.cpp:(.text+0x14be): undefined reference to `KShadowSettings::KShadowSettings()'
textpreviewwidget.cpp:(.text+0x1802): undefined reference to `KShadowEngine::KShadowEngine(KShadowSettings*)'
.libs/textpreviewwidget.o: In function `TextPreviewWidget::thickness() const':
textpreviewwidget.cpp:(.text+0x19e4): undefined reference to `KShadowSettings::thickness() const'
.libs/textpreviewwidget.o: In function `TextPreviewWidget::offsetX() const':
textpreviewwidget.cpp:(.text+0x1b64): undefined reference to `KShadowSettings::offsetX() const'
.libs/textpreviewwidget.o: In function `TextPreviewWidget::selectionType() const':
textpreviewwidget.cpp:(.text+0x1bc4): undefined reference to `KShadowSettings::selectionType() const'
.libs/textpreviewwidget.o: In function `TextPreviewWidget::factor() const':
textpreviewwidget.cpp:(.text+0x1e68): undefined reference to `KShadowSettings::multiplicationFactor() const'
.libs/textpreviewwidget.o: In function `TextPreviewWidget::opacity() const':
textpreviewwidget.cpp:(.text+0x1ff8): undefined reference to `KShadowSettings::maxOpacity() const'
.libs/textpreviewwidget.o: In function `TextPreviewWidget::algorithm() const':
textpreviewwidget.cpp:(.text+0x2198): undefined reference to `KShadowSettings::algorithm() const'
.libs/textpreviewwidget.o: In function `TextPreviewWidget::offsetY() const':
textpreviewwidget.cpp:(.text+0x2314): undefined reference to `KShadowSettings::offsetY() const'
collect2: ld returned 1 exit status
make[2]: ** [kcm_desktoptext.la] Error 1
I tryed both manual install and making a custom ebuild.
Can you help me?
Report
Maxilys
14 years ago
Check your "config.log". Mine says:
X_INCLUDES='-I/usr/X11R6/include'
X_LDFLAGS='-L/usr/X11R6/lib'
...
all_includes='-I/opt/kde3/include -I/usr/lib/qt3/include -I/usr/X11R6/include '
all_libraries='-L/usr/X11R6/lib -L/usr/lib/qt3/lib -L/opt/kde3/lib '
What does yours say?
Report
Laerte
14 years ago
Thanks for the reply.
My X11 prefix is /usr, so my config.log lines are
X_EXTRA_LIBS=''
X_INCLUDES='-I.'
X_LDFLAGS='-L/usr/lib'
X_PRE_LIBS=''
I don't think tis will help too much...
May I ask a dumb question?
Where are the .cpp files for kshadowengine.h and ksahdowsettings.h? Or they aren't need?
Report
Maxilys
14 years ago
I don't know why the X11 includes aren't found. Something is wrong. As a fix, you should try to add the option
--with-extra-includes="/usr/include" for ./configure.
As for the "missing" .cpp files, they aren't needed. They are to be found only in the build tree of KDE and it's not a requirement to have KDE sources on your harddisk to build Desktop Text Config. Lucky you! ;-)
Report
Laerte
14 years ago
thank you again for replying.
Adding /usr/include to extra-includes didn't help here. Also added /usr/lib to extra-libs.
I've asked about the "missing" files because those lines:
.libs/textpreviewwidget.o: In function `TextPreviewWidget::cleanup()':
textpreviewwidget.cpp:(.text+0x47b): undefined reference to `KShadowEngine::~KShadowEngine()'
It seems I don't have the code for the destructor compiled here, or at least is not in "-lkdeinit_kdesktop -lkdeui".
Have any idea where the code should be?
I really want to install your module, as it looks very cool.
Thank you in advance,
Laerte.
Report
brazzmonkey
13 years ago
using kubuntu feisty 64-bit
Report
Maxilys
14 years ago
Report
jcsmooth
14 years ago
Report
Maxilys
14 years ago
I think it's another problem of normal vs. devel package. "My" libXss.* belong to the xorg-x11-devel RPM.
Report
dummy_double
14 years ago
Report
dummy_double
14 years ago
Feature request:
Can you ad a option that the text will be on the right side of the icon?
Report
Maxilys
14 years ago
You should propose it for KDE 4.
Report
pupil
14 years ago
http://img261.imageshack.us/img261/9849/snapshot22by7.jpg
just wondering, did i do something wrong with the setting or something? it's been like that since your first release.
btw i use opensuse 10.2, and the patch does not applied in suse version other than 10.0.
Report
Maxilys
14 years ago
As for the ghost shadow, that can't be me. The module does nothing but setting options. It doesn't hack its way into KDE to do strange things. The "worst" is does is to talk to the desktop --through legal channels-- to warn it that the config has changed.
Aren't there problems with the icon labelled "Brow... something"? Have you already tried to move it to see if the ghost moves too?
And could you show me the [FMSEttings] section of your "kdesktoprc"? ($HOME/.kde/share/config/kdesktoprc) Once I'll be sure that there are only legal values, I'll guaranty you that I'm not responsible.
Report
pupil
14 years ago
it doesn't work. with or without ItemTextBackground & NormalTextColor the ghost shadow still appear everytime i restart kde. so now i just set the Lines of Text value to 2. then the ghost shadow dissapear for good :p
perhaps there's a bug in KDE or something (??).
the weird part is, the ghost only appear under the truncated "Network Browsing" label, it doesn't appear in other truncated label.
anyway, thanks for helping me out. and great module. as always rpms for suse v9.3, 10.0, 10.1, SLED 10, 10.2, and "Bleeding Edge" Factory are available in both my repos & KDE:Community repos. my site only contains for opensuse 10.2 i586.
Report
Maxilys
14 years ago
And thank you for the RPM. I'm going to warn everybody...
Report
pupil
14 years ago
%if suse_version == 1000
%patch1
%endif
as for the ghost shadow. the label is "network browser". its truncated, but the shadow isnt. when i change something in this module the ghost disappear, but when i restart kde it appear again. i never said that you or this module is responsible, i only try to find whats wrong, because you obviously have better knowledge about this shadowing thing than me. i'll post the file when i'm home.
Report
pupil
14 years ago
[FMSettings]
ShadowEnabled=true
ShadowParameters=1,1,5.000000,192.000000,1,1,1
ShowFileTips=true
StandardFont=Sans Serif,12,-1,5,50,0,0,0,0,0
TextHeight=1
TextWidth=0
Report
Maxilys
14 years ago
"NormalTextColor"?
Did you remove them because you thought it was useless to show the colors you use or are they actually missing?
Report
pupil
14 years ago
Report
Maxilys
14 years ago
First, look if the entries "ItemTextBackground" and "NormalTextColor" aren't present elsewhere in your kdesktoprc. If they are present, I'd say that it shouldn't be a bad idea to move them at the beginning of the FMSettings section. If they aren't present, add them.
ItemTextBackground=0,0,255
NormalTextColor=255,0,0
Launch the module. The preview should have red text with a blue shadow. Change the colors and apply.
After that, check that the entries have changed in your kdesktoprc and that the colors you chose have been applied of course.
I think that *should* kill the ghost shadow forever because *I think* that these missing entries "puzzle" kdestop.
Keep me informed. (Reply to one of my previous message in order that I'll be informed. I think we reached the maximum depth.)
Report
equinoxel
14 years ago
It's quite what I wanted to do in the first place when I wrote the shadow engine...
From an usability pov, there is little advantage to have a shadow tweaker so powerful, just because most users just want the text to be visible...
IMHO a list of nice presets will have more success :)
Anyway, it's great to have this tool (which imo will be quite useful for developers).
ps: if you could add an export/import feature... :)
Cheers,
Laur
Report
Maxilys
14 years ago
But I got an idea after I read your post. It is possible to make the settings accessible for the most computer illiterate users if I replace all the numbers with sliders and appropriate labels. For example, instead of decay style/factor, the label will be "Shadow outline" and the slider go from "Solid" to "Blurred". And behind the funny widgets, the module calculates the corresponding options for the shadow engine that will stop to be so "right under your nose".
As for the presets, I already had in mind to extend their list but I don't think it will be useful if I implement the right "fuzzy widgets".
Wait and see... because I found a bug and I have to make another release sooner or later.
Report
linux3114a
14 years ago
at
http://home.scarlet.be/raoul.linux/lotus.html
Report