Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » css problem
css problem [message #682848] Sun, 12 June 2011 08:29 Go to next message
Karl Weber is currently offline Karl WeberFriend
Messages: 63
Registered: September 2010
Member
The eclipse ide (4.1M7) has nice round corners in all four corners of it's MPartStacks. These corners remain round, even if one or more views or editors are displayed in the MPartStack.

This does not seem to work in a pure e4 application: All four corners are round if the MPartStack is empty. However, if one ore more MParts are displayed in the stack, two of the corners (those the stack has in common with the part) have square corners. The behaviour is also shown by the e4photo-app and the mail-app.

The corner-radius property of the MPartStack does not help here -- and I didn't find it in the 4.1M7 css-files anyway.

Similar is a problem with shadows: One can set a shadow for an MPartStack with the properties, e.g.

shadow-color: #444444;
shadow-visible: true;

Again, this works, if the stack is empty. As soon as it contains an MPart, the shadow disappears on the borders the stack has in common with the part.

How can one make a stack have shadows and round corners even when it displays parts?
Re: css problem [message #682862 is a reply to message #682848] Sun, 12 June 2011 09:40 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Karl,

Take a look here:

* base-css:
https://github.com/tomsontom/emfdatabinding-tutorial/blob/master/at.bestsolution.e4.addressbook.swt.application/css/e4_basestyle.css
* all css:
https://github.com/tomsontom/emfdatabinding-tutorial/tree/master/at.bestsolution.e4.addressbook.swt.application/css

Tom

Am 12.06.11 10:29, schrieb Karl Weber:
> The eclipse ide (4.1M7) has nice round corners in all four corners of
> it's MPartStacks. These corners remain round, even if one or more views
> or editors are displayed in the MPartStack.
>
> This does not seem to work in a pure e4 application: All four corners
> are round if the MPartStack is empty. However, if one ore more MParts
> are displayed in the stack, two of the corners (those the stack has in
> common with the part) have square corners. The behaviour is also shown
> by the e4photo-app and the mail-app.
>
> The corner-radius property of the MPartStack does not help here -- and I
> didn't find it in the 4.1M7 css-files anyway.
>
> Similar is a problem with shadows: One can set a shadow for an
> MPartStack with the properties, e.g.
>
> shadow-color: #444444;
> shadow-visible: true;
>
> Again, this works, if the stack is empty. As soon as it contains an
> MPart, the shadow disappears on the borders the stack has in common with
> the part.
>
> How can one make a stack have shadows and round corners even when it
> displays parts?
Previous Topic:Forms and Wizards
Next Topic:XWT ListViewer multi selection
Goto Forum:
  


Current Time: Thu Apr 25 05:36:13 GMT 2024

Powered by FUDForum. Page generated in 0.03474 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top