Automatically reload style when saving the project user module

This commit is contained in:
Francesco Abbate
2020-12-10 17:56:53 +01:00
parent 6409b67ea2
commit 9114148b45
6 changed files with 72 additions and 19 deletions
+12 -1
View File
@@ -1,13 +1,24 @@
-- put user settings here
-- this module will be loaded after everything else when the application starts
-- it will be automatically reloaded when use save it
local keymap = require "core.keymap"
local config = require "core.config"
local style = require "core.style"
-- light theme:
-- require "colors.summer"
-- style.load("colors.summer")
-- key binding:
-- keymap.add { ["ctrl+escape"] = "core:quit" }
-- customize fonts:
-- style.font = renderer.font.load(DATADIR .. "/fonts/font.ttf", 14 * SCALE)
-- style.code_font = renderer.font.load(DATADIR .. "/fonts/monospace.ttf", 13.5 * SCALE)
--
-- fonts used by the editor:
-- style.font : user interface
-- style.big_font : big text in welcome screen
-- style.icon_font : icons
-- style.code_font : code