Review Request: rounded borders to dialogs

Marco Martin notmart at gmail.com
Wed Mar 5 21:20:56 CET 2008


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://mattr.info/r/258/
-----------------------------------------------------------

(Updated 2008-03-05 14:20:56.101322)


Review request for Plasma.


Summary
-------

revision 2:
this version is quite different from the previous one.
now svgpanel has a new mask() function that returns a qbitmap of the areas of the svg with alpha=0 that can be used to create the mask of the window, at the moment used in tooltip and dialog.
since it excludes only totally transparent areas it doesn't interfere with semi-transparent areas when composite is on.
there are also two (identical) svgs for opaque tooltips and dialogs with pixelated rounded borders and unlike the previous version they are vector based now.

revision 1:
This patch makes rounded borders to dialogs when compositing is not active just like the tooltips.
-since the check if compositing is active is done in many places i added it to Plasma::Theme since it was already keeping track of it (does this makes sense?)
-tooltips had a rounded borders radius hardcoded of 10px, i made a new svg element (and consequent access functions in svgpanel) hint-round-radius to retrieve the size for pixmap based svgs it must be something like an external square, for vector based it could be an element inner to for instance the topleft corner id
-krunner is still missing, i've not touched it atm since is in the process of becoming "good enough for aaron"(tm) :P


Diffs
-----

  /trunk/KDE/kdebase/workspace/plasma/desktoptheme/opaque/dialogs/background.svg
  /trunk/KDE/kdebase/workspace/libs/plasma/theme.h
  /trunk/KDE/kdebase/workspace/libs/plasma/theme.cpp
  /trunk/KDE/kdebase/workspace/libs/plasma/widgets/tooltip.cpp
  /trunk/KDE/kdebase/workspace/libs/plasma/dialog.cpp
  /trunk/KDE/kdebase/workspace/libs/plasma/svgpanel.h
  /trunk/KDE/kdebase/workspace/libs/plasma/svgpanel.cpp
  /trunk/KDE/kdebase/workspace/plasma/desktoptheme/opaque/widgets/tooltip.svg

Diff: http://mattr.info/r/258/diff


Testing
-------

tested tooltips and some dialogs also with svg that don't have the hint-round-radius element: they simply become squared


Thanks,

Marco



More information about the Panel-devel mailing list