Can I set the text color in a Label?

Hi everyone ~
Can I set the font color in PP? I only found that there is a "setBackground".. but I want to set the color within a Label.
Thanks!
Gary

Fixed it!
There was a global style for s|Label and since the Spark button uses one of these for the text, that was it.

Similar Messages

  • Can't set the text color of a Spark Button

    I'm pretty new to Flex and working on a project with a more senior developer - who's out for a few days. I hope this is a simple question!
    I've got a CTA button that I want red with white text. This is how I'm doing it:
    in fx:Style ...
    .startButton {
    fontFamily: "MyriadPro";
        fontSize: 24;
        chromeColor: #e41937;
        color: #ffffff;
        cornerRadius:7;
    the button ...
    <s:Button styleName="startButton" label="Start" click="currentState=PracticeState'" height="40" width="100"  />
    All of the properties from the style apply except for the color property. Any ideas why it wouldn't? There may be a master style that I'm not aware of, but shouldn't addin the style property here override?
    Thanks!

    Fixed it!
    There was a global style for s|Label and since the Spark button uses one of these for the text, that was it.

  • How can i set the alternating colors for a table rows

    Dear All,
    Please any one help me how can i set the Alternating colors for Table Rows.
    i created a theam there i set the background alternating color to brown and i set the table design properity to alternating. but it is not reflecting.

    Hi,
    The design property in Table properties should work for your requirement. Select "alternating" value for design.
    Please see the API below:
    design
    Determines the appearance of the table. The property design can take the following values and is represented by enumeration type WDTableDesign.
    alternating - The table rows are displayed alternately in a different color.
    standard - The table background has one color. The individual table rows are displayed with grid net lines.
    transparent - The table background is transparent. The individual table rows are displayed without grid net lines.
    Check whether you have changed the right property or not? Also table should contain more than one rows to test this scenario.
    Regards,
    Jaya.
    Edited by: VJR on Jun 17, 2009 6:43 PM

  • How can I change the text   color in pages

    Hi , how can I change the text color in pages app

    Select the text you want to change.
    Tap the i in the top bar.
    Tap Style in the top bar.
    Tap the Font name/size
    Tap Color then choose the color you want the text.

  • Can i change the text colors in the app store

    Can i change the text colors in the App Store as i find it very difficult to read the grey text on a black background?

    No, you cannot change.
    The only thing you can change as a whole:
    SETTINGS/GENERAL/ACCESSIBILTY/ turn on WHITE ON BLACK.
    You can test to see if this one fits you.  If not change it back.

  • Setting the text color

    Hi
    Does anybody know the syntax for changing the text color for workspace customization ?
    like for backgorund color ,we have color = "background-color:IndianRed"
    Ritu

    Hi Ritu,
    If you're trying to change the color inside of the bpmworkspace.css (the default CSS for the Workspace) to Indian Red you could do this:
    .bpmWorkspaceHeaderUser {
         background-color:#cd5c5c;
         width:100%;
         text-align:right;
    . . .If you're trying to change the background or foreground color of a label or field on a BPM Object presentation, you could do this:
    // set the first label on a presentation to Red
    setForegroundColor this
       using componentId = "label0", 
          color = Fuego.Ui.Color.INDIAN_RED.rgb()
    // set the first text field's background color to Red
    setBackgroundColor this
       using componentId = "text0", 
          color = Fuego.Ui.Color.INDIAN_RED.rgb()This logic would be run from inside a BPM Object's method to dynamically change colors on a Presenation. This would set the first label's ("label0") foreground and the first text field's ("text0") background color to Indian Red. You'd normally have the method invoked either as an initialization method for the presentation (click the outer edge of a presentation -> click the "Properties" tab -> change the method invoked when the presentation initializes by changing the "Initialization method" property) or as the method invoked by a field's "On change invoke" property.
    Note that "label0" and "text0" are the names of the label and text fields on a specific BPM Object's presentation and not the name of an attribute inside the BPM Object. To uncover their specific names, open the BPM Object presentation -> click the label or field -> open the "Properties" tab on the right -> look at the value inside the "Name" field.
    You can see the other colors available if from the Project Navigator tab if you expand the "Catalog" -> expand "Fuego" -> expand "Ui". The upper case attributes listed are enumerations. The string's needed for the "setForegroundColor" and "setBackgroundColor" methods are returned using the catalog's Fuego.Ui "rgb()" method.
    Hope this helps,
    Dan

  • How can I set the background color of JLabel?

    Can any one tell me how to set the background color of a JLabel?
    I have:
    JLabel prop = new JLabel("blahblah");
    prop.setBackground(Color.red);
    Thank you in advance...

    JLabel prop = new JLabel("blahblah");
    prop.setBackground(Color.red);
    prop.setOpaque(true);

  • How can i set the different colors for a different group ui elements

    Hi All,
                  I Created a View Container in that i crated 2 views. In first view i created a group and in second
    view also i created a group. I want to set The First view group header colour as Golden colour and for second view group heder colour as Green colour. Please any one help me on this.
    Thanks&Regards,
    Bhargava.

    Dear GLM,
                         i got that. while creating the theme, in Complex Elements select the group element and  set the primary group header colour to golden and secondary group Header colour to Green and in ur webdynpro application set the Group Design property as Primary Color for which group u want to set the Golden color and set the Group Design property as Secondary Color for which group u want to set the Green color.
    Thanks&Regards,
    Bhargava.

  • How to set the text color in a Canvas?

    When I use (Graphics) g.setColor(255,255,255), then g.drawString("xxx", 0, 0, ....);
    the simulator works well but it can't work in my mobile phone (Nokia 7650).
    What's wrong?
    Thanks.

    do it like this
    g.setColor(255,255,255);//this will set the color for the canvas
    g.fillRect(0,0,ht,wd);//this will fill the rect(screen) with the above color,actually this will be BG color for ur app..ht,wd are the height and width of ur canvas...
    now specify color for the text
    g.setColor(r,g,b);//this color shud ofcourse be diff frm the color set for BG
    now draw the string
    g.drawString("xxx", 0, 0, ....);

  • How can I set the text feild in a form to print out the entire feild?

    Right now it's only printing out what shows in the box, I want the box to expand when printed and show all the text entered in the field, how can I set it to do that?

    I think that the font size has to be set in the form itself, not the FDF.

  • Can I change the text color in iOS messages

    I'e upgraded to iOS 7.  It's okay, but now the text inside the dialoge ballons in the messaging app is now white instead of black.  Black test is easier to read.  How can I change this aspect?

    Select the text you want to change.
    Tap the i in the top bar.
    Tap Style in the top bar.
    Tap the Font name/size
    Tap Color then choose the color you want the text.

  • How can i set the Header colors for a group ui element

    Hi All,
                  I Created a View Container in that i crated 2 views. In first view i created a group and in second
    view also i created a group. I want to set The First view group header colour as Golden colour and for second view group heder colour as Green colour. Please any one help me on this.
    Thanks&Regards,
    Bhargava.

    Dear Jean,
                     i creted the theam. in the Complex Element Group i changed the Primary group colour to Golden Colour and secondry group colour to Green Colour. but in my application for all group's header it iis taking the golden colour.
                             in my senario i have 2 views in view container. each view have the separate Group ui element. i wan to set golden colour for first view's group and Green colour for the Second View Group.
    how can i do that.
    Thanks&Regards,
    Bhargava.

  • How to change the text color of a label by using RGB values without changing the background colour?

    xCode interface builder:
    When I try to change the color property of a label's text by using the RGB values, the background color also changes to the same value automatically.
    in other words:
    While setting the RGB values for text colour of labels, the background colour also changes unless we use the sliders.
    How to make sure that only the color of text changes and not the background?

    You can simply do this.
        [labelname setTextColor:[UIColor colorWithRed:38/255.0f green:171/255.0f blue:226/255.0f alpha:1.0f]];

  • How can I set the width of a Text element?

    Hello! I have created a custom button with this class:
    import javafx.scene.Node;
    import javafx.scene.CustomNode;
    import javafx.scene.Group;
    import javafx.scene.Cursor;
    import javafx.scene.shape.Rectangle;
    import javafx.scene.paint.Color;
    import javafx.scene.paint.LinearGradient;
    import javafx.scene.paint.Stop;
    import javafx.scene.effect.DropShadow;
    import javafx.scene.text.Text;
    import javafx.scene.input.MouseEvent;
    public class Button extends CustomNode {
        public var text: String;
        public var x: Integer = 0;
        public var y: Integer = 0;
        public var width: Integer = 90;
        var height: Integer = 25;
        override public function create(): Node {
            return Group {
                content: [
                    Rectangle {
                        cursor: Cursor.HAND;
                        x: this.x;
                        y: this.y
                        width: this.width;
                        height: this.height;
                        arcWidth: 15;
                        arcHeight: 15;
                        effect: DropShadow {radius: 6};
                        fill: LinearGradient {
                            startX: 0.0, startY: 0.0, endX: 0.0, endY: 1.0
                            stops: [
                                Stop {offset: 0.0, color: Color.WHITE}
                                Stop {offset: 1.0, color: Color.LIGHTGRAY}
                        onMouseEntered: function(e: MouseEvent): Void {
                            (e.node as Rectangle).fill = LinearGradient {
                                startX: 0.0, startY: 0.0, endX: 0.0, endY: 1.0
                                stops: [
                                    Stop {offset: 0.2, color: Color.WHITE}
                                    Stop {offset: 1.0, color: Color.LIGHTGRAY}
                        onMouseExited: function(e: MouseEvent): Void {
                            (e.node as Rectangle).fill = LinearGradient {
                                startX: 0.0, startY: 0.0, endX: 0.0, endY: 1.0
                                stops: [
                                    Stop {offset: 0.0, color: Color.WHITE}
                                    Stop {offset: 1.0, color: Color.LIGHTGRAY}
                        onMousePressed: function(e: MouseEvent): Void {
                            (e.node as Rectangle).fill = LinearGradient {
                                startX: 0.0, startY: 0.0, endX: 0.0, endY: 1.0
                                stops: [
                                    Stop {offset: 0.0, color: Color.LIGHTGRAY}
                                    Stop {offset: 1.0, color: Color.WHITE}
                        onMouseReleased: function(e: MouseEvent): Void {
                            (e.node as Rectangle).fill = LinearGradient {
                                startX: 0.0, startY: 0.0, endX: 0.0, endY: 1.0
                                stops: [
                                    Stop {offset: 0.0, color: Color.WHITE}
                                    Stop {offset: 1.0, color: Color.LIGHTGRAY}
                    Text {
                        x: this.x + 5, y: this.y + 16
                        content: this.text
    }But, how can I set the Text element centered into the button?

    Stack {
                        layoutInfo: LayoutInfo {
                            width: bind width;
                            height: bind height;
                        content: [Rectangle {
                                width: bind width, height: bind height
                                //fill: bind color;
                                fill: Color.GREEN
                                arcHeight: 20; arcWidth: 20;
                            Text {
                                font: Font {
                                    size: 24
                                textAlignment: TextAlignment.CENTER;
                                wrappingWidth: width;
                                boundsType: TextBoundsType.VISUAL;
                                fill: Color.WHITE;
                                content: bind text;
                    }wrappingWidth: Sets the maximun width of the text
    boundsType: If you put the wrappingWidth var and you want to center a text you MUST set this var to VISUAL

  • How do I change the text color from blue in Safari on Macbook Pro?

    I have trouble seeing the light blue text color -- many article use this.  How can I change the text color?

    Is this a particular website where you see the light blue color?
    If so, please post a link to that site in your Reply.
    Exactly which light blue color are you referrting to ??

Maybe you are looking for