PDA

View Full Version : Theme Builder and Toolbar



Assystem
4 Mar 2015, 1:00 AM
Hi,

I'm working on the themebuilder.
I need to have 2 styles for my toolbar button and my toolbar background.

The toolbar have a class 'x-toolbar' to help style.

In the file theme we have that :



toolbar {
gradient = util.solidGradientString("#ffffff")
border = util.border('solid', '#3A78C1', 1)
padding = util.padding(0)


buttonOverride = util.extend(theme.details.button, {
borderRadius = 0
border = util.border('none')
radiusMinusBorderWidth = util.radiusMinusBorderWidth(border, borderRadius)
padding = util.padding(1);
arrowColor = "#666666"

gradient = '#F6F6F6 0%, #F5F5F5 50%, #E8E8E8 51%, #F5F5F5 100%'
overGradient = '#EDEDED 0%, #EBEBEB 50%, #DFDFDF 51%, #EBEBEB 100%'
pressedGradient = '#E1E1E1 0%, #D5D5D5 50%, #E1E1E1 51%, #E4E4E4 100%'


font = util.fontStyle("helvetica,arial,verdana,sans-serif", '12px', '#666666', 'bold');
})


labelItem {
text = field.text
lineHeight = '17px'
padding = util.padding(2, 2, 0)
}
}



When i change :


gradient = util.solidGradientString("#ffffff")

To


gradient = util.solidGradientString("#3A78C1")

It change all the page background.

For the 2 styles for my toolbar i dont find any clue.

I find any documentation for the file *.theme.

I hope i can find some help.