KDE 3 Desktop Dropshadows

KDE 3 Desktop Dropshadows

offline
  • gamzzy 
  • Legendarni građanin
  • Pridružio: 24 Apr 2003
  • Poruke: 10725
  • Gde živiš: Novi Sad

Configuration of KDE 3.2/3.1 Desktop Dropshadows

// Written by Abby (abby@evilhack.com)
// http://www.datiku.com

A Short Explaination
--------------------

Desktop dropshadows are fairly new in KDE, and there isn't a GUI configuration tool
that'll make them look better. Let's face it, the defaults look like crap. Here's a short
doc that describes how to change em.

Inside the file "kde/share/config/kdesktoprc" in the [FMSettings] section, you'll want
to place a line containing something like the following:

ShadowParameters=<insert_string_from_the_examples_below>

So . . . if I wanted a Windows XP style drop shadow, I'd put in my desktoprc:

ShadowParameters=1,1,32.0,139.0,2,4,0

For these new settings to take effect, you can disable than re-enable the desktop
drop shadows.

the rest of this doc explains what all those numbers mean. Smile


FMSettings Configuration Options
--------------------------------

ShadowParameters - for KDE 3.2 (describes how the shadows are implemented)
ShadowCurrentScheme - for KDE 3.1 (same as above, but for KDE 3.1)
Examples:
                        KDE 3.2         2, 2, 4.0, 100.0, 2, 2, 1
                        KDE 3.1         0, 0, 4.0, 255.0, 3, 0, 0
                        OS X            0, 1, 16.0, 192.0, 2, 4, 0
                        Windows XP      1, 1, 32.0, 139.0, 2, 4, 0
                        Soft outline    0, 0, 4.0, 170.0, 1, 4, 0

(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 Max Opacity 0 = transparent, 255 = opaque

(5) Thickness (how large the halo is)

- Usually 3-5 pixels. Though normal people seem to prefer a thickness of about 2

(6) Selected algorithm

- 1 DefaultDecay the default AXIS/DIAGONAL_FACTOR based alg
a simple algorithm with 3 pixels thickness

- 2 DoubleLinearDecay decay factor is 1/dx+dy (!!! not yet implemented !!!)
a slower algorithm where the influence of a pixel is qGray(px)/(abs(dx) + abs(dy) +1)

- 3 RadialDecay decay factor is 1/sqrt(dx*dx + dy*dy) (!!! not yet implemented !!!)
a very slow algorithm where the influence of a pixel is qGray(px)/(sqrt(sqr(dx) + sqr(dy)) +1)

- 4 NoDecay decay factor is 1 always
a nice/fast algorithm proposed by Bernardo Hung

(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

- 0 Inverse Video Invert the text and shadow color to draw the icon's dropshadow

- 1 Background Text Use the current text and shadow color to draw the icon's dropshadow


ShadowTextColor - (Simply an alias for NormalTextColor)
ShadowTextBackground - (Simply an alias for ItemTextBackground)



Registruj se da bi učestvovao u diskusiji. Registrovanim korisnicima se NE prikazuju reklame unutar poruka.
Ko je trenutno na forumu
 

Ukupno su 1369 korisnika na forumu :: 27 registrovanih, 4 sakrivenih i 1338 gosta   ::   [ Administrator ] [ Supermoderator ] [ Moderator ] :: Detaljnije

Najviše korisnika na forumu ikad bilo je 3466 - dana 01 Jun 2021 17:07

Korisnici koji su trenutno na forumu:
Korisnici trenutno na forumu: Alibaba1981, aramis s, bestguarder, Bobrock1, croato, Djokislav, FileFinder, GandorCC, Georgius, hyla, jackreacher011011, janbo, Koca Popovic, ladro, laki_bb, M1los, Mi lao shu, Milometer, Oscar, Parker, stegonosa, vathra, Volkhov-M, vukdra, W123, zlaya011, zzapNDjuric99