//这里就是桌面“右键-->配置桌面...-->高级选项-->'启用阴影'” //如果选中“启用阴影”,则在KDE的桌面配置文件里会多出一个配置选项 // "ShadowEnabled = true ",这样桌面字体才能够启用阴影。
true
Enable text shadow
Check here to enable a shadow outline around the desktop font.
This also improves the readability of the desktop text against
backgrounds of a similar color.
看过了上面配置文件的说明,虽然知道了字体阴影如何配置,但还是不懂那一串数字到底是什么意思,还需要继续看程序代码。在kdesktopshadowsettings.cpp中找到了83,84行,如下:
if (config->hasKey(SHADOW_CONFIG_ENTRY))
fromString(config->readEntry(SHADOW_CONFIG_ENTRY));
这里并没有说明那些数字的意思,继续找之。在kdesktopshadowsettings.h中找到如下说明:
/**
* This implementation of FxData will read a the default configuration
* file. The values used for shadow are frouped under "FX".
* // 呵呵,frouped这个词是作者把grouped打错了,frouped不懂是什么意思。:)
* The values are:
* Shadow.Algorithm: the algorithm used for making the sahdow
* Shadow.Scale the normailsation factor for veraging the sum
* Shadow.MaxOpacity the maximum allowable opacity (255 = 100%opaque)
* Shadow.OffsetX the X-coordinate offset (0 centered)
* Shadow.OffsetY the Y-coordinate offset (0 centered)
* Shadow.Thickness the shadow thickness (usually 3-5 px)
* Shadow.SelectionType the selection type - inverse video or use
* the selection colours.
*
* 06-Feb-03: Added simple UID algorithm
*
*/