You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now, colors for secondary parts of duotone icons are just darkened/brightened, but it would make much more sense to have a transparency slider in the UI that controls the alpha value of the secondary part.
This would also make any checks and custom logic for darkening obsolete.
Example:
Preset "Custom"; Icon Color #000000; Background Color #00FF6E
Right now:
With Alpha Use:
Implementation Idea
When a Duotone Style is selected, show a new "Duotone Transparency" Slider in the UI.
Set this.renderingContext.globalAlpha inside IconGenerator.drawIcon() accordingly to temporarily change the alpha of draw commands. After fillText(), set ..globalAlpha = 1
Right now, colors for secondary parts of duotone icons are just darkened/brightened, but it would make much more sense to have a transparency slider in the UI that controls the alpha value of the secondary part.
This would also make any checks and custom logic for darkening obsolete.
Example:
Preset "Custom"; Icon Color
#000000
; Background Color#00FF6E
Right now:
With Alpha Use:
Implementation Idea
this.renderingContext.globalAlpha
insideIconGenerator.drawIcon()
accordingly to temporarily change the alpha of draw commands. AfterfillText()
, set..globalAlpha = 1
See also: #219
The text was updated successfully, but these errors were encountered: