KDesktop
KDesktop
KDesktop is the Trinity component responsible for drawing the desktop: the wallpaper and the icons on it.
Customization
Drop shadows
Shadows on the desktop icon labels can be configured in great detail since KDE 3.1 to produce results different than the default "halo" effect. Unfortunately, there is yet no GUI provided for tweaking the drop shadow, but you can still do so by editing the appropriate configuration file.
Inside the file $TDEHOME/share/config/kdesktoprc
in the [FMSettings] section, you'll want to place a line containing something like the following:
ShadowParameters=<comma-separated parameters>
The option accepts a string of comma-separated parameters in the following format:
Parameter number |
Description | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1, 2 | The first two entries are the X and Y offsets (0,0 means right behind the text) | |||||||||||||||
3, 4 | The following two determine the halo (factor, max opacity) 0-255 (0 = transparent, 255 = opaque) | |||||||||||||||
5 | Thickness (how large the halo is). Usually 3-5 pixels, though most seem to prefer a thickness of about 2 | |||||||||||||||
6 | Selected algorithm
| |||||||||||||||
7 | Selection (inverse video or use the background text, boolean 0/1) This setting affects how the text/halo is drawn when the icon is selected
|
Also, the following options are aliases of existing options:
ShadowTextColor - (Simply an alias for NormalTextColor) ShadowTextBackground - (Simply an alias for ItemTextBackground)
Some premade examples you can just copy-paste:
Value | Description |
---|---|
2, 2, 4.0, 100.0, 2, 2, 1 | KDE 3.2 |
0, 0, 4.0, 255.0, 3, 0, 0 | KDE 3.1 |
0, 1, 16.0, 192.0, 2, 4, 0 | OS X |
1, 1, 32.0, 139.0, 2, 4, 0 | Windows XP |
0, 0, 4.0, 170.0, 1, 4, 0 | Soft outline |
So, for a Windows XP style drop shadow, you'd put in your desktop config:
ShadowParameters=1,1,32.0,139.0,2,4,0
For these new settings to take effect, you can disable then re-enable the either desktop drop shadows or the desktop icons.
A quick way to do so is to copy-paste the following command into a terminal emulator:
$ dcop kdesktop default setIconsEnabled false ; dcop kdesktop default setIconsEnabled true
Original author: Abby <abby@evilhack.com> (source)