From 3850fbac35bb5679ed58753491db4a4cd2267a73 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Mon, 11 Jul 2022 23:03:27 -0700 Subject: make colors easier to edit --- edit.lua | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'edit.lua') diff --git a/edit.lua b/edit.lua index 8ecbf24..c2a6a90 100644 --- a/edit.lua +++ b/edit.lua @@ -1,3 +1,15 @@ +-- some constants people might like to tweak +Text_color = {r=0, g=0, b=0} +Cursor_color = {r=1, g=0, b=0} +Stroke_color = {r=0, g=0, b=0} +Current_stroke_color = {r=0.7, g=0.7, b=0.7} -- in process of being drawn +Current_name_background_color = {r=1, g=0, b=0, a=0.1} -- name currently being edited +Focus_stroke_color = {r=1, g=0, b=0} -- what mouse is hovering over +Highlight_color = {r=0.7, g=0.7, b=0.9} -- selected text +Icon_color = {r=0.7, g=0.7, b=0.7} -- color of current mode icon in drawings +Help_color = {r=0, g=0.5, b=0} +Help_background_color = {r=0, g=0.5, b=0, a=0.1} + utf8 = require 'utf8' require 'file' @@ -102,7 +114,7 @@ end -- App.initialize_globals function edit.draw() Button_handlers = {} - love.graphics.setColor(0, 0, 0) + App.color(Text_color) --? print(Screen_top1.line, Screen_top1.pos, Cursor1.line, Cursor1.pos) assert(Text.le1(Screen_top1, Cursor1)) Cursor_y = -1 -- cgit 1.4.1-2-gfad0