scissor me baby

This commit is contained in:
airstruck
2015-12-08 17:14:49 -05:00
parent d11ea06503
commit 5e6cd8c29e
12 changed files with 138 additions and 71 deletions

View File

@@ -55,11 +55,11 @@ return function (config)
end
local function getSashHeight (self)
return self.parent.flow ~= 'x' and 4
return self.parent and self.parent.flow ~= 'x' and 4
end
local function getSashWidth (self)
return self.parent.flow == 'x' and 4
return self.parent and self.parent.flow == 'x' and 4
end
local function getTextSlices (self)
@@ -75,10 +75,10 @@ return function (config)
color = textColor,
minheight = 28,
minwidth = 28,
align = 'center middle',
},
button = {
type = 'control',
align = 'center middle',
padding = 6,
slices = getButtonSlices,
minwidth = 24,
@@ -92,11 +92,13 @@ return function (config)
color = textColor,
icon = getCheckOrRadioIcon,
padding = 4,
align = 'left middle',
},
label = {
type = 'control',
background = backColor,
padding = 4,
align = 'left middle',
},
menu = {
height = 24,
@@ -131,6 +133,7 @@ return function (config)
color = textColor,
icon = getCheckOrRadioIcon,
padding = 4,
align = 'left middle',
},
sash = {
background = getSashBackground,
@@ -153,7 +156,6 @@ return function (config)
slices = resources .. 'button_pressed.png',
},
['stepper.item'] = {
type = 'control',
align = 'center middle',
color = textColor,
},