about summary refs log tree commit diff stats
path: root/icons.lua
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2022-09-05 14:19:55 -0700
committerKartik K. Agaram <vc@akkartik.com>2022-09-05 14:19:55 -0700
commited07f9825db5ec4899f6e15e7b2276078a9a92e7 (patch)
treecc30cccd6735a50606e079f49ae5110cbae3fc25 /icons.lua
parente0f750913fa653c03a666203e04c59e847e73bff (diff)
parent516944b57215db43e20678b7462a46c1beae99ea (diff)
downloadtext.love-ed07f9825db5ec4899f6e15e7b2276078a9a92e7.tar.gz
Merge lines.love
Diffstat (limited to 'icons.lua')
-rw-r--r--icons.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/icons.lua b/icons.lua
index 175fb13..e80f771 100644
--- a/icons.lua
+++ b/icons.lua
@@ -8,6 +8,12 @@ function icon.insert_drawing(button_params)
   love.graphics.line(10,y, 10,y+12)
 end
 
+function icon.hyperlink_decoration(button_params)
+  local x,y = button_params.x, button_params.y
+  App.color(Hyperlink_decoration_color)
+  love.graphics.line(x,y+Editor_state.line_height, x+button_params.w,y+Editor_state.line_height)
+end
+
 function icon.freehand(x, y)
   love.graphics.line(x+4,y+7,x+5,y+5)
   love.graphics.line(x+5,y+5,x+7,y+4)