1
0
mirror of https://github.com/kepler155c/opus synced 2025-10-22 03:07:40 +00:00

rename shell -> shell.lua

This commit is contained in:
kepler155c@gmail.com
2019-02-12 17:03:50 -05:00
parent 2d411df7d1
commit ae6d8e8ebd
13 changed files with 25 additions and 34 deletions

View File

@@ -15,20 +15,12 @@ UI.Checkbox.defaults = {
backgroundColor = colors.black,
backgroundFocusColor = colors.lightGray,
height = 1,
width = 3,
accelerators = {
space = 'checkbox_toggle',
mouse_click = 'checkbox_toggle',
}
}
function UI.Checkbox:setParent()
if not self.width and not self.ex then
self.width = (self.label and #self.label or 0) + 3
else
self.width = 3
end
UI.Window.setParent(self)
end
function UI.Checkbox:draw()
local bg = self.backgroundColor
if self.focused then