It took me a couple of days, but I found it. So, for future reference: here is my solution:
I expanded DateChooser and added an override to the updateDisplayList (w: Number, h: Number) function (the SMTWTFS day names were set in this function).
updateDisplayList mx_internal:: dateGrid.dayBlockArrays [column] [row], CalendarLayout. / SMTWTFS. dayNumbers. , , , . :
override protected function updateDisplayList(w:Number, h:Number):void
{
super.updateDisplayList(w, h);
var colIndex:uint = 0;
var rowIndex:uint = 1;
var currentColumn:Array;
var dayName:UITextField;
var backgroundColor:uint = this.getStyle("dayNamesBackgroundColor");
var isWeekendCol:Boolean = false;
var currentTextFormat:TextFormat;
if (!backgroundColor)
{
backgroundColor = 0xFFFFFF;
}
for (colIndex; colIndex < 7; colIndex++)
{
currentColumn = mx_internal::dateGrid.dayBlocksArray[colIndex];
dayName = currentColumn[0];
isWeekendCol = dayName.text == this.dayNames[0] || dayName.text == this.dayNames[6];
if (isWeekendCol)
{
currentTextFormat = dayName.getTextFormat();
currentTextFormat.color = getStyle("weekendHeaderColor");
dayName.setTextFormat(currentTextFormat);
dayName.background = true;
dayName.backgroundColor = backgroundColor;
}
else
{
currentTextFormat = dayName.getTextFormat();
currentTextFormat.color = getStyle("weekHeaderColor");
dayName.setTextFormat(currentTextFormat);
dayName.background = true;
dayName.backgroundColor = backgroundColor;
}
rowIndex = 1;
for (rowIndex; rowIndex < currentColumn.length; rowIndex++)
{
dayName = currentColumn[rowIndex];
if (isWeekendCol)
{
dayName.setColor(getStyle("weekendColor"));
}
else
{
dayName.setColor(getStyle("weekColor"));
}
}
}
}
CSS :
DateChooser {
cornerRadius: 0; headerColors: #FFFFFF, #FFFFFF; todayColor: # 00448c; : ; dropShadowEnabled: false; fontFamily: myGeorgia; dayNamesBackgroundColor: #ECECEC; weekHeaderColor: # 444444; weekendHeaderColor: #DDDDDD; weekColor: # 00317F; weekendColor: #DDDDDD; headerStyleName: "dateChooserHeaderStyle";
comboBoxStyleName: "comboBoxStyleName";
}
"dayNamesBackgroundColor" ( , SMTWTFS) "weekendHeaderColor", "weekHeaderColor", "weekColor", "weekendColor"
, /, SMTWTFS ,
, . , :)