Newer
Older
labs / tiddlers / system / macros / $__ou_macros_Icons.tid
created: 20200703065308466
modified: 20200703103856073
tags: $:/tags/Macro
title: $:/ou/macros/Icons
type: text/vnd.tiddlywiki

\define warning()
<span style="fill:yellow;filter:contrast(40%);font-size:1.5em" class="ou-button-image">{{$:/core/images/warning}}</span>
\end

\define icon(path)
<span style="font-size:1.5em" class="ou-button-image">{{$path$}}</span>
\end

\define tip()
<span style="font-size:1.5em" class="ou-button-image">{{$:/core/images/tip}}</span>
\end

!Usage:
```plaintext
<<tip>> Don't run with scissors.
```
Produces:

<<tip>> Don't run with scissors.

<br>

```plaintext
<<warning>> Pay attention!
```
Produces:

<<warning>> Pay attention!

<br>


```plaintext
<<icon $:/ou/clipart/h2_disconnect>>
```
Produces:

<<icon "$:/ou/clipart/h2_disconnect">>

The path is a Tiddler that contains an image.