-
Notifications
You must be signed in to change notification settings - Fork 27
Using the theme system
tavuntu edited this page Jan 10, 2017
·
16 revisions
GÖÖi uses a style object with some attribute, here's the default one:
style = {
bgColor = {12, 183, 242, 170}, -- LOVE blue
fgColor = {255, 255, 255, 255},
tooltipFont = love.graphics.newFont(love.graphics.getWidth() / 70),
radius = 3,
innerRadius = 3,
showBorder = false,
borderColor = {12, 183, 242, 255},
borderWidth = 2,
font = love.graphics.newFont(love.graphics.getWidth() / 70),
mode3d = false,
glass = false
}
gooi.setStyle(style)-- Applies the style
Important notes:
- Set the style before creating any element
- For styling of an individual component see Generic component