Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » Changing gradient background color during runtime
Changing gradient background color during runtime [message #1840855] Mon, 26 April 2021 20:55 Go to next message
Alex Kravets is currently offline Alex KravetsFriend
Messages: 561
Registered: November 2009
Senior Member
I'd like to add ability for user to change background color of a shape. Since gradient is defined using Styles, am I not able to change Style's background and have create a new Style with updated background colors and set to shape?
Re: Changing gradient background color during runtime [message #1841071 is a reply to message #1840855] Mon, 03 May 2021 06:18 Go to previous messageGo to next message
Michael Wenz is currently offline Michael WenzFriend
Messages: 1927
Registered: July 2009
Location: Walldorf, Germany
Senior Member
Hi Alex,

yes, since Styles always have precedence over direct settings on the GA, you have to create a new style and set it for the shape. Alternatively you might of course change the existing style if it is not used elsewhere and not all other shapes shall get the change as well.

HTH,
Michael
Re: Changing gradient background color during runtime [message #1841379 is a reply to message #1841071] Thu, 13 May 2021 16:04 Go to previous message
Alex Kravets is currently offline Alex KravetsFriend
Messages: 561
Registered: November 2009
Senior Member
Thank you Michael
Previous Topic:Resizing parent container does not properly resize its children
Next Topic:Image doesn't load in editor
Goto Forum:
  


Current Time: Mon Dec 06 12:48:27 GMT 2021

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

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

Back to the top