The repository only shipped a spreadsheet demo, so there was no example of an interactive, stateful program. LuaPaint keeps the whole editor in Lua - canvas primitives with undo, palette, tools and a scriptable session - and its tests run without a terminal.
32 lines
548 B
Lua
32 lines
548 B
Lua
-- Colour palette of the interface (256-colour ANSI indexes).
|
|
local M = {}
|
|
|
|
M.ui = {
|
|
bar_fg = 16,
|
|
bar_bg = 45,
|
|
panel_fg = 252,
|
|
panel_bg = 236,
|
|
panel_border = 244,
|
|
canvas_fg = 238,
|
|
canvas_bg = 232,
|
|
cursor_fg = 16,
|
|
cursor_bg = 231,
|
|
status_fg = 231,
|
|
status_bg = 24,
|
|
accent_fg = 16,
|
|
accent_bg = 220,
|
|
muted = 250,
|
|
warn_fg = 231,
|
|
warn_bg = 160,
|
|
}
|
|
|
|
-- Minimum size that still shows the tools panel and the canvas.
|
|
M.minimum = {
|
|
canvas_width = 20,
|
|
canvas_height = 8,
|
|
panel_width = 22,
|
|
chrome_height = 5,
|
|
}
|
|
|
|
return M
|