Book a Demo

Author Topic: Shadows don't render Status consistently (if at all).  (Read 3478 times)

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Shadows don't render Status consistently (if at all).
« on: May 14, 2019, 05:15:40 pm »
The Help system says:
Requirement, Feature, Issue and Change elements have a status colour compartment, whereas the status colour for other elements is applied to the element shadow; to show the element shadows (and hence the status colors), select the 'Element Shadows on' checkbox on the 'Diagram Appearance' page of the 'Preferences' dialog

However, this isn't quite so.  It depends on what kind of thing is being drawn by your shapescript.  If you are using drawnativeshape(), all seems well.  If you use roundrect(), you get a grey shadow with a thin border in the appropriate status colour.  If you use rectangle() or ellipse(), you just get a grey shadow.

Is it possible to get some Consistency, Consistency, Consistency! TM?

I don't expect v15 to have fixed this.

Reported,
Paolo
« Last Edit: May 14, 2019, 05:19:16 pm by Paolo F Cantoni »
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Shadows don't render Status consistently (if at all).
« Reply #1 on: May 14, 2019, 09:33:22 pm »
Well, this shadow color is what the name says: the shadow of a color. I seem to remember that in the first versions of EA when this had been introduced it was possible to recognize the color. But then in the next version it was gone it it was something grayish for all status colors.

q.

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
How to ALMOST exceed (this) User's expectations
« Reply #2 on: May 15, 2019, 11:30:04 am »
Well, I'm very pleased (and, to be candid, somewhat astonished) to report that the v15 Beta has almost fixed the problem!

All modes now show a correctly formed shadow.  However, like "her majesty" in the Beatles album, the shading "changes from shape to shape".

It may just be my monitor, but the shading seems to vary slightly.

Can anyone confirm the shading issue?

Paolo
« Last Edit: May 15, 2019, 12:39:52 pm by Paolo F Cantoni »
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Shadows don't render Status consistently (if at all).
« Reply #3 on: May 15, 2019, 12:26:47 pm »
Do you have an example of shapes that appear different to you?

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Shadows don't render Status consistently (if at all).
« Reply #4 on: May 15, 2019, 12:44:05 pm »
Do you have an example of shapes that appear different to you?
Code: [Select]
shape main
layouttype="border";
if(hasproperty("rectanglenotation","0"))
{
defsize(140,70);

// drawnativeshape();
// roundrect(0,0,100,100,20,20);
// rectangle(0,0,100,100);
// ellipse(0,0,100,100);

addsubshape("paddingh","n");
addsubshape("paddingw","w");
addsubshape("paddinge","e");
addsubshape("name", "center");

shape paddingh //Horizontal Padding
{
preferredheight=20;
}

shape paddingw //Vertical Padding West
{
preferredwidth=10;
}

shape paddinge //Vertical Padding East
{
preferredwidth=5;
}

shape name
{
h_align="center";
print("#name#");
}

}
else
{
defsize(140,70);
drawnativeshape();
}
}

Here's the shapescript we used to test.  We assign it to a local stereotype (in our case "@").

We then enable/disable the lines of code at the top to see the effect.

It seems that roundrect produces a darker shade.  The others seem to be the same.

Is that enough?

Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Shadows don't render Status consistently (if at all).
« Reply #5 on: May 15, 2019, 01:02:13 pm »
The difference appears to be that rounded rect shadows are fully opaque.

Also tested with a polygon.
Code: [Select]
shape main
{
roundrect(0,0,30,30,20,20);
rectangle(33,33,63,63);
ellipse(66,66,96,96);
startpath();
moveto(0,50);
lineto(50,100);
lineto(0,100);
lineto(0,50);
endpath();
FillAndStrokePath();
}