ribbon:setFillColor( 0,0,0 )
ribbon.alpha = 0
- transition.to( ribbon, { time = 2000, y = logo.y + logo.height - 10, alpha = .3, transition = easing.outExpo })
+ transition.to( ribbon, { time = 2000, y = logo.y + logo.height - 10, alpha = .5, transition = easing.outExpo })
accueil:insert( ribbon )
accueil:insert( title )
-- Create the widget
local enCours = widget.newButton
{
+ shape = "rect",
width = 5/8 * VW,
height = 1/11 * VH,
- sheet = buttonSheet,
- --font = "Dosis-Book",
- defaultFile = "blue_texture.png",
- labelColor = { default={ 1,1,1 }, over={ 0, 0, 0, 0.5 } },
- onPress = onListeTickets
+ fillColor = { default={ 92/255,90/255,90/255,.7 }, over={ 92/255,90/255,90/255,.6 } },
+ labelColor = { default={ 1,1,1 }, over={ .8,.8,.8,.8 } },
+ onRelease = onListeTickets
}
--enCours:setFillColor = {246/255,226/255,53/255}
local creerTicket = widget.newButton
{
+ shape = "rect",
width = 5/8 * VW,
height = 1/11 * VH,
- sheet = buttonSheet,
- --font = "Dosis-Book",
- defaultFile = "blue_texture.png",
- labelColor = { default={ 1,1,1 }, over={ 0, 0, 0, 0.5 } },
- onPress = onCreerTicket
+ fillColor = { default={ 92/255,90/255,90/255,.7 }, over={ 92/255,90/255,90/255,.6 } },
+ labelColor = { default={ 1,1,1 }, over={ .8,.8,.8,.8 } },
+ onRelease = onCreerTicket
}
-- Center the button