As "stop" already allows custom mark to be used. I think it would be useful to allow mark's color change as well. For instance If I want to have "!" (warning) mark in different color when I stop the spinner.
Solution
Allow "color" property to be used for changing custom's or spinner's mark.
No color will be added to custom mark if not passed in options, respecting current behavior. But if you think that custom mark should always use some color, feel free to change logic and tests.
Workarounds
❌ Although you can achieve desired behavior with current API like this:
spinner.update({ text: 'This is a warning', color: 'magenta', frames: Array(10).fill('!') });
spinner.stop();
spinner.update({ color: 'yellow', frames: ['⠋', '⠙', '⠹', '⠸', '⠼', '⠴', '⠦', '⠧', '⠇', '⠏'] }); // To revert back spinner color
Hi @usmanyunusov ,
As "stop" already allows custom mark to be used. I think it would be useful to allow mark's color change as well. For instance If I want to have "!" (warning) mark in different color when I stop the spinner.
Solution Allow "color" property to be used for changing custom's or spinner's mark. No color will be added to custom mark if not passed in options, respecting current behavior. But if you think that custom mark should always use some color, feel free to change logic and tests.
Workarounds ❌ Although you can achieve desired behavior with current API like this:
❌ Or like this, if PR17 goes through:
✔️ I find this more user friendly: