2020-04-14 20:12:04 +00:00
|
|
|
local class = require('opus.class')
|
|
|
|
local UI = require('opus.ui')
|
|
|
|
|
|
|
|
UI.FlatButton = class(UI.Button)
|
|
|
|
UI.FlatButton.defaults = {
|
|
|
|
UIElement = 'FlatButton',
|
2020-04-22 04:32:12 +00:00
|
|
|
textColor = 'black',
|
|
|
|
textFocusColor = 'white',
|
2020-04-14 20:12:04 +00:00
|
|
|
noPadding = true,
|
|
|
|
}
|
|
|
|
function UI.FlatButton:setParent()
|
|
|
|
self.backgroundColor = self.parent:getProperty('backgroundColor')
|
|
|
|
self.backgroundFocusColor = self.backgroundColor
|
|
|
|
|
|
|
|
UI.Button.setParent(self)
|
|
|
|
end
|