bugfix: output border color
This commit is contained in:
parent
e03d3ea172
commit
31bb55d18d
|
@ -1,4 +1,5 @@
|
|||
draw_editor_border = function()
|
||||
App.color(Normal_color)
|
||||
local x1 = Editor_state.left-5-Line_number_padding
|
||||
local y1 = Editor_state.top-5
|
||||
local x2 = Editor_state.right+5
|
||||
|
|
|
@ -4,7 +4,7 @@ draw_menu = function()
|
|||
-- main buttons
|
||||
button(Editor_state, 'run', {x=Menu_left+5, y=Menu_top+5, w=App.width('Run')+10, h=Line_height, bg={r=0.6, g=0.8, b=0.6},
|
||||
icon = function(p)
|
||||
App.color{r=0,g=0,b=0}
|
||||
App.color(Normal_color)
|
||||
love.graphics.rectangle('line', p.x,p.y, p.w,p.h, 2,2)
|
||||
love.graphics.print('Run', p.x+5,p.y+2)
|
||||
end,
|
||||
|
@ -16,7 +16,7 @@ draw_menu = function()
|
|||
local w = App.width('settings')
|
||||
button(Editor_state, 'settings', {x=Safe_width-w-10-5, y=Menu_top+5, w=w+10, h=Line_height, bg={r=0.6, g=0.8, b=0.6},
|
||||
icon = function(p)
|
||||
App.color{r=0,g=0,b=0}
|
||||
App.color(Normal_color)
|
||||
love.graphics.rectangle('line', p.x,p.y, p.w,p.h, 2,2)
|
||||
love.graphics.print('settings', p.x+5,p.y+2)
|
||||
end,
|
||||
|
@ -38,5 +38,4 @@ draw_menu = function()
|
|||
love.graphics.polygon('fill', r-25, App.screen.height/2-10, r-25, App.screen.height/2+10, r-5, App.screen.height/2)
|
||||
end,
|
||||
})
|
||||
|
||||
end
|
|
@ -1,4 +1,5 @@
|
|||
draw_output_border = function()
|
||||
App.color(Normal_color)
|
||||
-- hack: computing based on editor before output exists
|
||||
local x1 = Editor_state.left-5-Line_number_padding
|
||||
local x2 = Editor_state.right+5
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
Normal_color = {r=0, g=0, b=0}
|
Loading…
Reference in New Issue