IBM/mac-ibm-notifications

[BUG] Option for font size, color and bold for a popup

mrmte opened this issue · 4 comments

mrmte commented

Is there a way i can make the font size, color and bold for a popup -subtitle? I tried looking but could not see it.

Thanks

Hi @mrmte I suggest you to use markdown attributes in the subtitle for simple stuff like bold, italic text (e.g. -subtitle "## This is markdown \n **It's cool** \n _It supports all major flavors_"). Otherwise instead of a subtitle use an HTML accessory view where you can customise the text style as you wish (e.g. -accessory_view_type html -accessory_view_payload "<h1>Hello, world!</h1>this is a line of text<br><br><code>this is a code block<br>this is the second line of a code block</code><br>this is <span style="color: #ff0000">red</span> text"). Doc

mrmte commented

i just tried /usr/local/bin/IBM\ Notifier.app/Contents/MacOS/IBM\ Notifier -accessory_view_type html -accessory_view_payload "

Hello, world!

this is a line of text

this is a code block
this is the second line of a code block

this is red text"

it came back with sh: !: event not found

Yes I'm sorry, I forgot that you need to escape the " inside the accessory view payload. It would be then -accessory_view_type html -accessory_view_payload "<h1>Hello, world</h1>this is a line of text<br><br><code>this is a code block<br>this is the second line of a code block</code><br>this is <span style=\"color: #ff0000\">red</span> text"

mrmte commented

Thanks very much for your help :)