Jump to content
uniGUI Discussion Forums
Sign in to follow this  
zanona

UnimButton Color

Recommended Posts

How to change the color of the button? In the web version I use the css below, but on the mobile does not work?

 

function beforeInit(sender, config)
{
  config.cls='btAzul';
}
 
.btAzul
{
  width:120px;
    height:30px;
    background: #1E90FF; 
    border: 5px solid #1E90FF; /* borda branca em volta */
    margin: auto; /* centraliza com bordas automáticas nas laterais */
    text-align: center; /* centraliza o texto */
    font-family: Source Sans Pro; /* fonte */
    font-size: 16px;  /* tamanho da fonte */
    color: #1E90FF; /* cor fonte */ 
 
    border: 1px solid #ccc;
    border-color: rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25);
    border-color: #e6e6e6 #e6e6e6 #bfbfbf;
    border-bottom-color: #b3b3b3;
    border-radius: 4px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 1px 2px rgba(0,0,0,0.05);
}
 

Share this post


Link to post
Share on other sites
I also tried using the event below to change the color and it did not work!

 

 

function painted(sender, eOpts)

{

  sender.addCls('btAzul');

}

Share this post


Link to post
Share on other sites

you must use the ExtEvent - added

 

function added(sender, container, pos, eOpts)
{
  sender.addCls('btAzul');
}

Share this post


Link to post
Share on other sites

Hi,

 

Did you understand the examples?

 

Sorry for delay

 

I couldn't to download the file from the link above

 

Please attach here

Share this post


Link to post
Share on other sites
Sign in to follow this  

×