Show messages: All
1
2-5
From: Michael Gibson
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
From: Mik (MIKULAS)
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
From: Michael Gibson
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
From: Mik (MIKULAS)
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
Show messages: All
1
2-5