The following example shows how you can customize the text styles on the WindowedApplication status bar in Adobe AIR by setting the statusTextStyleName style.




 
    
        @font-face {
            src: url("C:/Windows/Fonts/ARIALBD.TTF");
            fontFamily: "ArialEmbedded";
            fontWeight: "bold";
        }
 
        .boldRed {
            color: red;
            fontFamily: "ArialEmbedded";
            fontSize: 10;
            fontWeight: bold;
        }
    
 

You can also set the statusTextStyleName style in an external .CSS file or <Script> block, as seen in the following example:




    
    
        @font-face {
            src: url("C:/Windows/Fonts/ARIALBD.TTF");
            fontFamily: "ArialEmbedded";
            fontWeight: "bold";
        }
        
        .boldRed {
            color: red;
            fontFamily: "ArialEmbedded";
            fontSize: 10;
            fontWeight: bold;
        }
        
        WindowedApplication {
            statusTextStyleName: boldRed;
        }
    
    

Tagged with:
 

Leave a Reply

Your email address will not be published.