Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Button text color
Started by DLuck Oct 12 2018 06:51 PM

1 reply to this topic
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

DLuck

[GLOBAL: userInfoPane.html]
DLuck
  • Enthusiast

  • 62 posts
  • Corona SDK

Hello all, 

 

I having a some difficulties trying to figure out how to change the color of my text on my button, for some reason the text is Blue on all 3 buttons. 

 

    local btn_startBlack = widget.newButton
    {
        width = 200,
        height = 50,
        label = "Settings",
        defaultFile = "images/switchBlack.png",
        overFile = "images/switchBlack_pressed.png",
        onEvent = onStartTouchBlack
    }
 
    btn_startBlack.x = 235
    btn_startBlack.y = ground.y -200
    sceneGroup:insert(btn_startBlack) 
 
I checked the widgets page, but I didn't find a clear explanation.
 
Where did I go wrong?
 
 
Appreciate any help, 
 
Thanks 


[TOPIC: post.html]
#2

nick_sherman

[GLOBAL: userInfoPane.html]
nick_sherman
  • Corona Geek

  • 1,628 posts
  • Corona SDK

The docs explain this is one of the optional visual parametes....

labelColor = { default={ 1, 1, 1 }, over={ 0, 0, 0, 0.5 } }



[topic_controls]
[/topic_controls]