Neil Hodgson wrote:
Armel Asselin:

some times ago there was a discussion about whether to add an alpha
component to each color or not.
was there any direction chosen as 'the good direction for scintilla' about
this question?

   I argued myself to a standstill but should eventually do some more
work on this. Its most likely there will be an explicit call to enable
alpha for each feature rather than an alpha byte in every colour.

So this *might* take the form of "parallel" color-setting calls, with the original form for "classic" rgb colors, and a new form for argb?

Once (and if) you decide that the API will get a number of new calls, then it could be slick to do it this way... why? Not only are you avoiding the confusing nastiness of making a bunch of new "modes" visible in the user's model of the API, new parallel color-setting calls could be viewed as steps in a migration to a new[er] API.

Also note that the number of calls for client code to do anything involving colors does not have to go up this way - basically, the extra complexity is hidden. :)

   Alpha will have to be implemented on a case by case basis. There
are several things that could be meant by a transparent background for
indicators: it could refer to shading the whole of each line's
vertical range. For a dotted indicator, it could refer to the gaps
between dots, etc.

Or the infamous "blending" of multiple indicators rather than obscuring according to a priority ordering... unfortunately, for the cases where there seem to be multiple equally useful interpretations of "alpha" for a given use, "modes" may need to be introduced - as long as the default cases cover the majority of uses, it isn't that bad.

Finally (and this may or may not be a good idea), if this stuff ends up being costly on lower-end/embedded client H/W, a global performance vs looks setting could be introduced... shudder.

Robert Roessler
[EMAIL PROTECTED]
http://www.rftp.com
_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest

Reply via email to