alexroldugin / spray

Automatically exported from code.google.com/p/spray
0 stars 0 forks source link

Referencing a style definition has no effect #160

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Define a style in the style DSL file
2. Reference the style in Spray DSL or Shape DSL

No effect:
 * at diagram: diagram mydiagram for BusinessDomainModel style org.eclipselabs.spray.styles.MydiagramDefaultStyle
 * at metaclass: class BusinessClass icon "ecore/EClass.gif" style org.eclipselabs.spray.styles.MydiagramDefaultStyle
 * at shape: shape RectangleShape style org.eclipselabs.spray.styles.Neu
 * at figure: rectangle style org.eclipselabs.spray.styles.Neu 

Where it works:
 * gradient reference in style attribute inside figure definition:
   rectangle style org.eclipselabs.spray.styles.Neu {
      ...
      style (background-color = org.eclipselabs.spray.styles.gradients.Neuer)
      ...
   }

Original issue reported on code.google.com by de.abg.r...@gmail.com on 2 Sep 2012 at 9:06

GoogleCodeExporter commented 8 years ago
I have fixed all the font style properties (font-color, font-size, font-bold, 
font-italic, font-name).  The generated code did set the Graphiti Style, but it 
seems the Font has to be set seperately. Might be a bug in Graphiti.

Original comment by joswar...@gmail.com on 12 Nov 2012 at 3:25

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
With some changes it now works for all style attributes except:
line-width, line-style and transparancy.
I did not yet test the gradients, but they seem to work.

Original comment by joswar...@gmail.com on 12 Nov 2012 at 4:09

GoogleCodeExporter commented 8 years ago
Fixed line-wdth and line-style, transparancy does not seem to work at all.

Original comment by joswar...@gmail.com on 12 Nov 2012 at 4:46

GoogleCodeExporter commented 8 years ago

Original comment by joswar...@gmail.com on 12 Nov 2012 at 4:58

GoogleCodeExporter commented 8 years ago
Fixed

Original comment by joswar...@gmail.com on 19 Nov 2012 at 12:45