marcelodolza / iziToast

Elegant, responsive, flexible and lightweight notification plugin with no dependencies.
https://marcelodolza.github.io/iziToast/
Apache License 2.0
2.62k stars 306 forks source link

add alpha option for background color #199

Open spider4216 opened 3 years ago

spider4216 commented 3 years ago

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

serious-angel commented 3 years ago

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

Doesn't it work if you choose RGBA format for the color or something like #ffffff33? Where the alpha channel is 33.

spider4216 commented 3 years ago

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

Doesn't it work if you choose RGBA format for the color or something like #ffffff33? Where the alpha channel is 33.

I pushed some fixes:

spider4216 commented 3 years ago

Should I do something to merge this feature?