sciactive / pnotify

Beautiful JavaScript notifications with Web Notifications support.
https://sciactive.com/pnotify/
Apache License 2.0
3.65k stars 513 forks source link

pnotify #319

Closed AhmetBas closed 6 years ago

AhmetBas commented 6 years ago

Hi,

We are using pnotify recently. So i was curious if it was possible to change the colors of the error pop-up? If yes which files should be changed in order to change the colors?

Kind regards,

Ahmet

zhuber commented 6 years ago

Hey @AhmetBas please check out the demo/documentation. There are some good examples of swapping the theme under the "Choose the styling" section and there is also a "Custom styles" item that you can view as well:

http://sciactive.com/pnotify/

hperrin commented 6 years ago

Using a styling object to apply custom classes is probably what you're looking for. The styling object looks like this:

        {
          container: "brighttheme",
          notice: "brighttheme-notice",
          notice_icon: "brighttheme-icon-notice",
          info: "brighttheme-info",
          info_icon: "brighttheme-icon-info",
          success: "brighttheme-success",
          success_icon: "brighttheme-icon-success",
          error: "brighttheme-error",
          error_icon: "brighttheme-icon-error"
        }