开发者

Inline styling of growl notifications

I'm using a script to call growlnotify to display some time tracking data: current project name, time elapsed, a list of available projects (together with time spent on them on the current day and keyboards shortcuts to switch between projects).

I would like to do some styling of the text: some text bold, some text italic, some in a different colour. I understand it's possible to create custom styles for the container of the growl notification via CSS, but that customizes the layout not the content.

Can I also style the text, just some basic stuff? It would be perfect to be able to开发者_如何学运维 use inline HTML, but that sounds too good to be true. Maybe it's possible to add some placeholders to my custom Growl style so in stead of just %title% and %text% I would also have %projectname% and %elapsed% or something.. maybe pass those arguments to growlnotify?

Thank you in advance!


There's no way to do this with growlnotify and existing styles. You could write your own Growl style which processes your message, either with JavaScript in the case of a WebKit style or with Objective-C.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜