iziToast
iziToast copied to clipboard
add alpha option for background color
Unfortunately I couldn't change opacity for info
, success
, warning
, error
and question
without system theme changing or create new one witch was the same as system with little alpha changes.
With new field "backgroundOpacity" everyone can change opacity for default theme or any other background color
Unfortunately I couldn't change opacity for
info
,success
,warning
,error
andquestion
without system theme changing or create new one witch was the same as system with little alpha changes.With new field "backgroundOpacity" everyone can change opacity for default theme or any other background color
Doesn't it work if you choose RGBA format for the color or something like #ffffff33
? Where the alpha channel is 33
.
Unfortunately I couldn't change opacity for
info
,success
,warning
,error
andquestion
without system theme changing or create new one witch was the same as system with little alpha changes. With new field "backgroundOpacity" everyone can change opacity for default theme or any other background colorDoesn't it work if you choose RGBA format for the color or something like
#ffffff33
? Where the alpha channel is33
.
I pushed some fixes:
- if you choose background colour in HEX format and specify backgroundAlpha option, then hex convert to rgba with alpha
- if you choose rgb format and specify backgroundAlpha option, then rgb convert to rgba with alpha
- if you choose rgba and specify backgroundAlpha option, this one will be used
- if you choose just rgba without backgroundAlpha option, this one will be used
- Now alpha number replaced via regular expression
Should I do something to merge this feature?