StreamAwesome
StreamAwesome copied to clipboard
Use alpha for duotone icons
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.globalAlphainsideIconGenerator.drawIcon()accordingly to temporarily change the alpha of draw commands. AfterfillText(), set..globalAlpha = 1
See also: #219