diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2023-09-14 22:41:22 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2023-09-14 22:41:22 -0700 |
commit | 6e429d3e4d5f11a43084e38eb605ff7efc9ea4f8 (patch) | |
tree | 4574533c2834095be4f28f807de37f11c512bad8 /source_edit.lua | |
parent | b70fa64d1b950f174979cdc33fca0d3eaad52d91 (diff) | |
parent | 1a88b4a2907a78fd4a1febf32c74d0305aff6ba0 (diff) | |
download | view.love-6e429d3e4d5f11a43084e38eb605ff7efc9ea4f8.tar.gz |
Merge text.love
Diffstat (limited to 'source_edit.lua')
-rw-r--r-- | source_edit.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source_edit.lua b/source_edit.lua index 96bfb12..78c7f4d 100644 --- a/source_edit.lua +++ b/source_edit.lua @@ -7,6 +7,7 @@ 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 +Line_number_color = {r=0.6, g=0.6, b=0.6} 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} @@ -168,7 +169,7 @@ function edit.draw(State, hide_cursor) end if line.data == '' then -- button to insert new drawing - button(State, 'draw', {x=State.left-Margin_left+4, y=y+4, w=12,h=12, color={1,1,0}, + button(State, 'draw', {x=4, y=y+4, w=12,h=12, color={1,1,0}, icon = icon.insert_drawing, onpress1 = function() Drawing.before = snapshot(State, line_index-1, line_index) |