Flex组件样式

Application{
    backgroundColors:#000000,#3f3f3f;
    backgroundImage:Embed(source="/style/background.jpg");
    backgroundSize:"100%";
    fontSize:14;
}

Button{
    upSkin:Embed(source="");//弹起时
    overSkin:Embed(source="");
    downSkin:Embed(source="");
    disabledSkin:Embed(source="");//不可用时的效果
    color:#000000;//字体
    textRollOverColor:#000000;//移至文本时的颜色
    textSelectedColor:#000000;//选择文本时的颜色
}

ButtonBar{
    buttonStyleName:"buttonBarButton";//设置按钮样式
    firstButtonStyleName:"firstButtonBarButton"//设置第一个按钮样式
    lastButtonStyleName:""
}

ColorPicker{  //颜色选择器
    disabledSkin:Embed(source="");
    downSkin:Embed(source="");
    overSkin:Embed(source="");
    upSkin:Embed(source="");
}

ComboBox{  
    downSkin:Embed(source="");
    overSkin:Embed(source="");
    upSkin:Embed(source="");
    color:#000000;  //字体
    textRollOverColor:#000000;//移至文本时的颜色
    textSelectedColor:#000000;//选择文本时的颜色
    dropDownStyleName:"dropDown";//设置下拉样式
    highlightAlphas:.5,.8;//设置高光透明度
    fontWeight:normal;//设置字体粗细
}
.dropDown{
    backgroundColor:
    backgroundAlpha:.9;
    borderStyle:solid;//设置边框样式
    borderThickness:0;//设置边框宽度
    borderColor:
    roundedCorners:5;//设置圆角度
    color:#000000;  //字体
    textRollOverColor:#000000;//移至文本时的颜色
    textSelectedColor:#000000;//选择文本时的颜色
    rollOverColor:#000000;//移至组件时的颜色
}

DataGrid{  //以表格形式显示数据
    headerStyleName:"dataGridHeader";//标题样式
    headerColors:#,#;  //标题文本颜色
    rollOverColor:
    selectionColor:
    disabledColor:
    selectiondDisabledColor:
    alternatingItemColors:#,#;//改变中的项的颜色
}
.dataGridHeader{
    color:
}

ProgressBar{  //进度条
    barSkin:Embed(source="");//进度条
    trackSkin:Embed(source="");//轨道
}

Image{
    brokenImageSkin:Embed("");//加载出错时的效果
}

MenuBar{
    fillColor:  //填充颜色
    backgroundColor:
    backgroundAlpha:
    alpha:  //组件透明度
    textSelectedColor:
}

RadioButton{  //单选
    disabledIcon:Embed("");
    downIcon:Embed("");
    overIcon:Embed("");
    upIcon:Embed("");
    color:#000000;  //字体
    textRollOverColor:#000000;//移至文本时的颜色
    textSelectedColor:#000000;//选择文本时的颜色
}

CheckBox{  //多选
    disabledIcon:Embed("");
    downIcon:Embed("");
    overIcon:Embed("");
    upIcon:Embed("");
    color:#000000;  //字体
    textRollOverColor:#000000;//移至文本时的颜色
    textSelectedColor:#000000;//选择文本时的颜色
}

HSlider{  //横向滚动条
    thumbDisabledSkin:Embed(source="");//指针不可用时
    thumbDownSkin:Embed(source="");
    thumbOverSkin:Embed(source="");
    thumbUpSkin:Embed(source="");
    trackHightlightSkin:Embed(source="");//轨道高光效果
    trackSkin:Embed(source="");//轨道效果
}

TitleWindow{
    closeButtonDisabledSkin:Embed("");
    closeButtonDownSkin:Embed("");
    closeButtonOverSkin:Embed("");
    closeButtonUpSkin:Embed("");


}

posted @ 2010-08-16 08:35  xngeer  阅读(1690)  评论(0编辑  收藏  举报