summaryrefslogtreecommitdiff
path: root/icons/mkicons
diff options
context:
space:
mode:
authorNicolas Schodet2015-05-07 21:12:37 +0200
committerNicolas Schodet2015-05-07 22:01:35 +0200
commit4c6fba365b63c13d398ffd4963c82746b2358cbe (patch)
treed34f110b6ebc387714c21bc7c2ed0efeab1705cb /icons/mkicons
parent7750058808e665e2dff282159c412742e8c03641 (diff)
icons: add taglist and awesome icons
Diffstat (limited to 'icons/mkicons')
-rwxr-xr-xicons/mkicons20
1 files changed, 20 insertions, 0 deletions
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_'))