diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2022-07-11 23:03:27 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2022-07-11 23:18:26 -0700 |
commit | 3850fbac35bb5679ed58753491db4a4cd2267a73 (patch) | |
tree | a296ccc5d26f507d38fe4771c453ae4a2ef012c2 /edit.lua | |
parent | 2e3a85d94be44bfb53554d0e7ba8a36f8e91c605 (diff) | |
download | text.love-3850fbac35bb5679ed58753491db4a4cd2267a73.tar.gz |
make colors easier to edit
Diffstat (limited to 'edit.lua')
-rw-r--r-- | edit.lua | 14 |
1 files changed, 13 insertions, 1 deletions
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 |