From 56b76eccb53545e20c078c1d7e9011cfd3f74549 Mon Sep 17 00:00:00 2001 From: totoro Date: Wed, 3 Aug 2022 15:30:12 +0900 Subject: [PATCH] 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 --- web/widgets/icons_set.anubis | 10 ++++++++++ 1 file changed, 10 insertions(+), 0 deletions(-) diff --git a/web/widgets/icons_set.anubis b/web/widgets/icons_set.anubis index 6a04a16..5f2b282 100644 --- a/web/widgets/icons_set.anubis +++ b/web/widgets/icons_set.anubis @@ -9,6 +9,16 @@ read web/mime.anubis read xlib/web/making_a_web_site.anubis +public define String icn8(String icon) = "icons/8x8/"+icon. +public define String icn16(String icon) = "icons/16x16/"+icon. +public define String icn22(String icon) = "icons/22x22/"+icon. +public define String icn24(String icon) = "icons/24x24/"+icon. +public define String icn32(String icon) = "icons/32x32/"+icon. +public define String icn48(String icon) = "icons/48x48/"+icon. +public define String icn64(String icon) = "icons/64x64/"+icon. +public define String icn128(String icon) = "icons/128x128/"+icon. +public define String icn256(String icon) = "icons/256x256/"+icon. + public define String icn16_add = "icons/16x16/add.png". public define String icn16_edit = "icons/16x16/edit.png". public define String icn16_calendar = "icons/16x16/calendar.png". -- libgit2 0.21.4