mirror of
https://github.com/airstruck/luigi.git
synced 2025-12-19 02:16:43 +00:00
context menus working
This commit is contained in:
@@ -80,6 +80,22 @@ end)
|
||||
local Backend = require 'luigi.backend'
|
||||
layout.menuQuit:onPress(Backend.quit)
|
||||
|
||||
layout.mono:onPress(function()
|
||||
layout.leftSideBox.font = 'font/DejaVuSansMono.ttf'
|
||||
end)
|
||||
|
||||
layout.sans:onPress(function()
|
||||
layout.leftSideBox.font = false
|
||||
end)
|
||||
|
||||
layout.mono2:onPress(function()
|
||||
layout.stepper.font = 'font/DejaVuSansMono.ttf'
|
||||
end)
|
||||
|
||||
layout.sans2:onPress(function()
|
||||
layout.stepper.font = false
|
||||
end)
|
||||
|
||||
-- show the main layout
|
||||
layout:show()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user