StraightSnapLineColor V4vsV5 inconsistency

Next
 From:  Mik (MIKULAS)
11748.1 
Hi Michael,

It's marginality, but I've noticed color inconsistency between V4 and V5 version in StraightSnapLineColor of construction line.

Color of this line is controled via .ini file by Drawing Aids / StraightSnapLineColor=255,255,255,0. This is my current setting in V4, where the line is yellow as I expected, because first number is "opacity" and rest of numbers are R,G,B values.



In V5 version of MoI the appearance of construction line is different with same setting - StraightSnapLineColor=255,255,255,0



I set thickness = 20 for better visibility. It's evident from pictures above that dashed lines segments have different length and space among yellow segments are additional filled with Blue color, therefore the construction line with default thickness = 1 is appeared as "white".



I supposed that second color (blue) in dashed line is some interference of Themes setting, but I didn't find any settings in Themes manager.

I'm not sure if it's bug or I have to do some other settings.

Mik

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
11748.2 In reply to 11748.1 
Hi Mik, the difference between V4 and V5 comes from the new theme functionality in V5.

The problem was that having a white color with transparent gap had poor visibility in the dark theme in areas where the line is going over top of a white shaded object.

To get better visibility these lines are now drawn with alternating colors instead of one color with transparent gaps and the line pattern is "dashed" with equal draw size and gap size instead of the previous "long dashed" that has a shorter gap size. This happens now in v5 when the viewport has a dark background color.

The blue happens because the 2nd color is automatically generated by inversion.

Your color having
red1 = 255
green1 = 255
blue1 = 0

gets a second color of

red2 = 255 - red1
green2 = 255 - green1
blue2 = 255 - blue1

which gives 0, 0, 255 (color blue)


I should be able to adjust this to use the v4 behavior (use transparent gap instead of 2 color line and don't switch to even dashed line style) when you have customized StraightSnapLineColor= in moi.ini .

And maybe I should set up a way to directly specify the 2nd color in a theme instead of only using inversion.

If you have the default StraightSnapLineColor= in moi.ini (StraightSnapLineColor=103,0,0,0) then the color will come from the theme's defines.inc file under STRAIGHT_SNAP_LINE_ARGB_COLOR .

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Mik (MIKULAS)
11748.3 In reply to 11748.2 
Hi Michael,

thank you for deep explanation.

The most clear solution IMO would be to have this setting, ie StraightSnapLineColor in Theme manager.
Two colours setting Dashed line/Gap including transparency specified in theme would great and the most robust for any situation.
For example:
Color1(Dashed) = 255,255,255,0
Color2(Gap) = 0,0,0,0

This setting should be superior above any other setting if it's set in General/UI Theme some Theme except Default. If Default is set then settings in .ini file should be accepted as superior setting, which could mimic V4 behaviour.

Using inversion for Gap colour setting causes huge contrast between two colour for example magenta/green which is very unpleasant for eye perception especially together dark background.

Thanks
Mik
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
11748.4 In reply to 11748.3 
Hi Mik,

re:
> The most clear solution IMO would be to have this setting, ie StraightSnapLineColor in Theme manager.

So there is a theme setting STRAIGHT_SNAP_LINE_ARGB_COLOR for this but to edit it you need to edit the theme's defines.inc file in a text editor. There is not yet a UI control for editing a color that includes transparency.

That theme color will only be used if the value in moi.ini has the default value which is
StraightSnapLineColor=103,0,0,0

If you've customized that value in moi.ini then it will use your custom value instead of the theme's so it will have compatibility with previous versions.


I will set up a STRAIGHT_SNAP_LINE_ARGB_COLOR2 which can optionally be present in the theme's defines.inc file to directly specify the second color to be used for a dark background theme instead of inversion.

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
 From:  Mik (MIKULAS)
11748.5 In reply to 11748.4 
Hi Michael,

Yes, I understood, I set in moi.ini file StraightSnapLineColor=103,0,0,0 and in defines.inc file, which correspond to my current theme, STRAIGHT_SNAP_LINE_ARGB_COLOR #B0FFFF00 for yellow color.

The result is yellow dashed (slightly transparent) and blue gap, this is practically same result if I set in moi.ini StraightSnapLineColor=255,255,255,0

No problem, I will wait for STRAIGHT_SNAP_LINE_ARGB_COLOR2.

Mik
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged
 

Reply to All Reply to All