Deprecate XOR-related methods in Shape#1019
Deprecate XOR-related methods in Shape#1019ptziegler wants to merge 1 commit intoeclipse-gef:masterfrom
Shape#1019Conversation
|
Especially when it comes to resizing, the outline is the essential part. Otherwise you have no idea what you're doing. Using two contrasting colors seems to work well because one will always try to draw your attention. |
|
Also here: |
|
Every class that uses XOR needs to be adapted. Also including these: (Though the figures are already updated by #704). This is first and foremost just an idea to explore alternatives. |
|
For that problem. HSL shines. There are several options to create contrast or complementary colors, either by tweaking the hue part or by working with saturation and luminosity combined. In 4diac IDE we use now for quite some time the selection color for the border and fill with selection color with alpha. Even with colored background and in darkmode this works really good. We have a border of width 2 and the alpha is 50. |
|
Using a
|
4048919 to
eb57840
Compare
FigureUtilities and ShapeShape
This is a continuation of f7a00b18852d83a98b4fb11aea0d9c6f4186cba5. XOR is unsupported on Windows when GDI+ (advanced mode) is enabled and returns a black shadow, rather than a blending of the figure and its background. Due to the support for fractional scaling (and the deprecation of `ScaledGraphics`), advanced mode is almost always active on Windows.
eb57840 to
935635a
Compare
|
I've rebased this PR so that now only deprecation of the XOR-related methods in the |



This is a continuation of f7a00b18852d83a98b4fb11aea0d9c6f4186cba5. XOR is unsupported on Windows when GDI+ (advanced mode) is enabled and returns a black shadow, rather than a blending of the figure and its background. Due to the support for fractional scaling (and the deprecation of
ScaledGraphics), advanced mode is almost always active on Windows.