From 4c6fba365b63c13d398ffd4963c82746b2358cbe Mon Sep 17 00:00:00 2001 From: Nicolas Schodet Date: Thu, 7 May 2015 21:12:37 +0200 Subject: icons: add taglist and awesome icons --- icons/mkicons | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'icons/mkicons') diff --git a/icons/mkicons b/icons/mkicons index cadda6d..eb31ed3 100755 --- a/icons/mkicons +++ b/icons/mkicons @@ -219,6 +219,26 @@ def icon_layouts_tiletop (icon, draw, p): ym = part (y1, y2, 1, 2, 'down') draw_grid (draw, (x1, y1, x2, ym), 3, 1, 'nearest', p) +def icon_taglist_sel (icon, draw, p): + x1, y1, x2, y2 = p.coords + y2 = y1 + x2 - x1 + draw.rectangle ((x1, y1, x2, y2), outline = p.fg, fill = p.bg) + +def icon_taglist_unsel (icon, draw, p): + x1, y1, x2, y2 = p.coords + y2 = y1 + x2 - x1 + draw.line ((x1, y2, x1, y1, x2, y1), fill = p.fg) + +def icon_awesome (icon, draw, p): + draw.rectangle (p.coords, outline = p.bg, fill = p.bg) + x0, y0, x3, y3 = p.coords + x1 = part (x0 - 1, x3 + 1, 1, 3, 'center') + x2 = part (x0 - 1, x3 + 1, 2, 3, 'center') + y1 = part (y0 - 1, y3 + 1, 1, 3, 'center') + y2 = part (y0 - 1, y3 + 1, 2, 3, 'center') + draw.line ((x0, y1, x2, y1), fill = p.fg) + draw.line ((x1, y2, x2, y2, x2, y3), fill = p.fg) + icons = dict((f[5:].replace ('_', '/'), globals ()[f]) for f in dir () if f.startswith ('icon_')) -- cgit v1.2.3