Commit 58c5cb9
Remove hue from ImageColorTransformer#forHSB #2060
The ImageColorTransformer introduced for disabled icon calculation has a
default implementation taking hue, saturation, brightness and alpha
factors for transformation. The hue factor was by accident limited to 1,
even though it is a value between 0 and 360. In addition, a
multiplication of a hue value with a factor is not reasonable at all.
This change removes the ability to change the hue of a color value, as
the existing usage of that method does not change the hue anyway. It
renames the method accordingly.
Fixes #2060
Co-authored-by: Manuel Killinger <[email protected]>1 parent ee0fdb8 commit 58c5cb9
File tree
1 file changed
+3
-3
lines changed- bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/internal/image
1 file changed
+3
-3
lines changedLines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| |||
0 commit comments