about summary refs log tree commit diff stats
path: root/select.lua
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2022-07-11 23:03:27 -0700
committerKartik K. Agaram <vc@akkartik.com>2022-07-11 23:18:26 -0700
commit3850fbac35bb5679ed58753491db4a4cd2267a73 (patch)
treea296ccc5d26f507d38fe4771c453ae4a2ef012c2 /select.lua
parent2e3a85d94be44bfb53554d0e7ba8a36f8e91c605 (diff)
downloadview.love-3850fbac35bb5679ed58753491db4a4cd2267a73.tar.gz
make colors easier to edit
Diffstat (limited to 'select.lua')
-rw-r--r--select.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/select.lua b/select.lua
index adf4739..9e88c60 100644
--- a/select.lua
+++ b/select.lua
@@ -68,9 +68,9 @@ function Text.draw_highlight(line, x,y, pos, lo,hi)
     local s = line.data:sub(lo_offset, hi_offset-1)
     local text = App.newText(love.graphics.getFont(), s)
     local text_width = App.width(text)
-    love.graphics.setColor(0.7,0.7,0.9)
+    App.color(Highlight_color)
     love.graphics.rectangle('fill', x+lo_px,y, text_width,Line_height)
-    love.graphics.setColor(0,0,0)
+    App.color(Text_color)
     return lo_px
   end
 end