Commit 56b76eccb53545e20c078c1d7e9011cfd3f74549
1 parent
a78dae8b
add a set of shortcut functions for path of the icons
icnX(String icon) which return the full path to the icon. X must be replaced by the size of the icon. For example icn8("foo.png") will return "icons/8x8/foo.png"
the list of the sizes is: 8, 16, 22, 24, 32, 48, 64, 128, 256
Showing
1 changed file
with
10 additions
and
0 deletions
Show diff stats
web/widgets/icons_set.anubis
| @@ -9,6 +9,16 @@ | @@ -9,6 +9,16 @@ | ||
| 9 | read web/mime.anubis | 9 | read web/mime.anubis |
| 10 | read xlib/web/making_a_web_site.anubis | 10 | read xlib/web/making_a_web_site.anubis |
| 11 | 11 | ||
| 12 | +public define String icn8(String icon) = "icons/8x8/"+icon. | ||
| 13 | +public define String icn16(String icon) = "icons/16x16/"+icon. | ||
| 14 | +public define String icn22(String icon) = "icons/22x22/"+icon. | ||
| 15 | +public define String icn24(String icon) = "icons/24x24/"+icon. | ||
| 16 | +public define String icn32(String icon) = "icons/32x32/"+icon. | ||
| 17 | +public define String icn48(String icon) = "icons/48x48/"+icon. | ||
| 18 | +public define String icn64(String icon) = "icons/64x64/"+icon. | ||
| 19 | +public define String icn128(String icon) = "icons/128x128/"+icon. | ||
| 20 | +public define String icn256(String icon) = "icons/256x256/"+icon. | ||
| 21 | + | ||
| 12 | public define String icn16_add = "icons/16x16/add.png". | 22 | public define String icn16_add = "icons/16x16/add.png". |
| 13 | public define String icn16_edit = "icons/16x16/edit.png". | 23 | public define String icn16_edit = "icons/16x16/edit.png". |
| 14 | public define String icn16_calendar = "icons/16x16/calendar.png". | 24 | public define String icn16_calendar = "icons/16x16/calendar.png". |