Home Forums Wiki Doc Install Extras Screenshots Source Code Projects Blog Users Groups Register
Glx-Dock / Cairo-Dock List of forums Problems at use | Problèmes à l'utilisation Drop shadow background
The latest stable release is the *3.4.0* : How to install it here.
Note: We just switched from BZR to Git on Github! (only to host the code and your future pull requests)
Problems at use | Problèmes à l'utilisation

Subjects Author Language Messages Last message
[Locked] Drop shadow background
jesuisbenjamin English 9 fabounet [Read]
06 November 2010 à 17:08

jesuisbenjamin, Thursday 04 November 2010 à 10:30


Subscription date : 28 October 2009
Messages : 415
Hello there,

I am working on a theme at the moment, see this screenshot:

http://lh6.ggpht.com/_7mkhSDYn8TQ/TNJ7kq4F1DI/AAAAAAAAB-s/vNOEqnGFxf4/s912/Screenshot-1.png

As you can see i have managed to create a drop shadow for the background. What i did is adding the drop shadow to the image file, set border distance to 9 and shift the entire dock of -6 upwards. The result is rather OK, but the distance between the dock and the window (it's on "reserve space" visibility) is as close as it can get.
True drop shadow should reflect on the desktop and should have the option to either drop or not on the window border.
Is there a work around?
I imagine this is something that needs to be programmed.

PS: let me know what you think of the theme/icons so far.

B.

fabounet, Thursday 04 November 2010 à 11:07


Subscription date : 30 November 2007
Messages : 17118
the overall looks pretty, and the dropshadow is a good idea
but it's usually the WM that draws them; did you try to make Compiz draw the shadow for the dock ?

jesuisbenjamin, Thursday 04 November 2010 à 11:11


Subscription date : 28 October 2009
Messages : 415
fabounet :

but it's usually the WM that draws them; did you try to make Compiz draw the shadow for the dock ?


No, and i didn't know i could till now
Let's see what can be done.

jesuisbenjamin, Thursday 04 November 2010 à 16:34


Subscription date : 28 October 2009
Messages : 415
Well ok i gave it a try and this is what i got (and expected to see):

http://lh6.ggpht.com/_7mkhSDYn8TQ/TNLSUfWqTXI/AAAAAAAAB-w/RhDzBVaApw0/s912/Screenshot-2.png

matttbe, Thursday 04 November 2010 à 22:53


Subscription date : 24 January 2009
Messages : 12573
And why not with this rule :
type=Dock

jesuisbenjamin, Thursday 04 November 2010 à 23:01


Subscription date : 28 October 2009
Messages : 415
matttbe :
And why not with this rule :
type=Dock


That does the same thing
Compiz draws the shadow around the (invisible) window in which the dock is displayed. But there is no way i imagine to tell Compiz to follow the content of Cairo's window i.e. tell it to ignore transparent areas, or is there?

matttbe, Friday 05 November 2010 à 00:10


Subscription date : 24 January 2009
Messages : 12573
Oh yes, sorry. As you can see, the window of Cairo-Dock is not only the grey rectangle

You can decrease the icon zoom. But you can also use a image with a shadow for the background instead of this image

jesuisbenjamin, Friday 05 November 2010 à 00:17


Subscription date : 28 October 2009
Messages : 415
matttbe :
But you can also use a image with a shadow for the background instead of this image :)

Yes i can, see first screenshot, but then you have a gap between dock an window when on full screen.

Now that i think about it, if it is possible to tell the gnome/gtk/compiz (i don't know which) to stick a window up to the background image (in reserve space visibility), then i guess it's possible to tell Compiz to drop shadow from that same edge... i wonder

SQP, Saturday 06 November 2010 à 10:57


Subscription date : 03 July 2010
Messages : 1081
not sure there are easy ways to do this. Adding the shadow to the background increase the dock size and is only valid for one position (would be crappy on left or bottom dock)

Only method I can think of is adding that shadow to another "container" that would be fixed position relative to the background image
(same could be done to the labels area, so I could move windows to that zone easier)

Also wondering how to display it for non full screen docks (got two docks on the left : one on top and one on bottom)

fabounet, Saturday 06 November 2010 à 17:08


Subscription date : 30 November 2007
Messages : 17118
well the dock could draw the shadow, it's maybe the best solution, since with Compiz it will not follow the dock's shape.

Problems at use | Problèmes à l'utilisation

Subjects Author Language Messages Last message
[Locked] Drop shadow background
jesuisbenjamin English 9 fabounet [Read]
06 November 2010 à 17:08


Glx-Dock / Cairo-Dock List of forums Problems at use | Problèmes à l'utilisation Drop shadow background Top

Online users :

Powered by ElementSpeak © 2007 Adrien Pilleboue, 2009-2013 Matthieu Baerts.
Dock based on CSS Dock Menu (Ndesign) with jQuery. Icons by zgegball
Cairo-Dock is a free software under GNU-GPL3 licence. First stable version created by Fabounet.
Many thanks to TuxFamily for the web Hosting and Mav for the domain name.