Date: prev next · Thread: first prev next last
2011 Archives by date, by thread · List index


Le Thu, 03 Mar 2011 11:59:19 +0000,
Michael Meeks <michael.meeks@novell.com> a écrit :

Hi Sebastien,

On Tue, 2011-03-01 at 23:42 +0100, Sébastien Le Ray wrote:
Here is a complete patch for fdo#31251. It adds a smooth shadow to
the page.

      Wow - it is really pretty indeed :-) I just pushed it. Nice
work ! can you confirm is it LGPLv3+/MPL ?

      Incidentally, it would be lovely to have the post-it notes,
not only to have a border, but to have curved corners at the bottom,
but not the top, so they really look like sticky notes. ie. take a
sticky note an stick it flat on your desk, and you see the effect
[ both bottom corners curl slightly ] ;-) possibly that will require
some (manual?) re-coloring action of the bitmaps, which might be
slightly painful, though I guess it is just a matter of keeping a
constant AlphaMask bitmap around, and merging it into a BitmapEx with
a Bitmap (of the same size obviously) 'Erase'd with the correct color
for the note.

During its development, I found that SwRect::_Intersection (used in
page margin painting) returns negative height/width if the two
rectangles do not overlap. I don't know if it is the expected
behavior or a bug. If it's a bug I guess I can provide a patch.

      Ho hum - probably a difficult one to audit for, to check
every location to ensure they are not depending on this. Possibly it
makes the impl. faster too (?).

      Well worth documenting though in the API.

      Thanks !

              Michael.


Hi,

this simple shadow patch has generated a long discussion on
Libreoffice-design. Some people don't like the color, some people don't
like the amount of blur, some people want no shadow at all, some people
want a "4 borders" shadow. So here is a second patchset that tries to
address the first three critics :
 - It adds a configuration option (in Appearance category) to set shadow
   color. It currently defaults to gray but I'm sure design team will
   find a more sensitive default :
 - It adds a configuration option to disable shadow;
 - It doesn't use bitmaps directly anymore but an alpha mask, so if
   people want to try another blur effect, they just have to edit
   images.zip:/sw/res/page-*-shadow-mask.png These are black & white
   image. Black amount determines transparency, white being fully
   transparent. Here again, I'm sure that design people will find a
   better default. Only constraints are 1x10px for bottom shadow,
   10x10px for corner and 10x1px for right shadow.
I'll let design team play and discuss with that, when they agree on a
default, I'll provide an additional patch to take it into account.

Note: I had to perform a make dev-install for settings to be correctly
saved.

Regards

Sébastien

-- 
Unsubscribe instructions: E-mail to design+help@libreoffice.org
List archive: http://listarchives.libreoffice.org/www/design/
*** All posts to this list are publicly archived for eternity ***

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.