I have a SelectButton with an image as content. I want the text of the selected item to be black, so I can read it over my image, but cannot find a way.
Image of the issue:
http://ajaxmashup.googlepages.com/WidgetChannelTest2.pngI have uploaded my test case here:
http://ajaxmashup.googlepages.com/TendrilTest.widget.zip1. Extract zip into your widgets directory
2. Launch widget
3. Click on Test 2 button on the main view
4. Select the SelectButton and press enter.
5. Choose one of the 4 options, press enter.
6. Notice how the selected item's text is written onto the control, but hardly visible because it is white.
I am running versions TV = 0.1 Konf = 5.3.0 and Dev Guide = .99 I don't know which are meaningful, but hopefully those numbers make sense.
Relevant code - I tried setting the text to black in a number of ways, none worked:
this.controls.selectButton = new KONtx.control.SelectButton({
id: 'programButton',
guid: 'tendril-programButton',
label: '',
content: new KONtx.element.Image({
src: $tendril.styles.images.control.programmode_image,
}),
valueOnSubline: false,
optionGridRows: 8,
options: [
{value:'4', label:"Vacation"},
{value:'3', label:"Weekend"},
{value:'2', label:"Saver Mode"},
{value:'1', label:"Normal"}
],
events: {
onValueChanged: function (event) {
log("You selected: " + event.payload.value);
}
},
styles: {
'vOffset' : 450,
'width' : 380,
'height' : 76,
'color' : 'black',
},
textStyles: {
'color' : 'black',
'fontSize' : '24px',
'fontWeight' : 'bold',
},
fontStyle: {
'color' : 'black',
'fontSize' : '24px',
'fontWeight' : 'bold',
}
}).appendTo(this);