Jump to content


Photo

UnimButton Color

unimbutton color css

  • Please log in to reply
15 replies to this topic

#1 zanona

zanona

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 106 posts

Posted 04 July 2018 - 11:23 AM

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);
}
 

  • 0

#2 zanona

zanona

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 106 posts

Posted 04 July 2018 - 12:24 PM

Version 1464


  • 0

#3 Delphi Developer

Delphi Developer

    Advanced Member

  • Moderators
  • 5177 posts

Posted 04 July 2018 - 12:32 PM

Hi,

 

Can you check it again?

Maybe you missed something


  • 0

#4 zanona

zanona

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 106 posts

Posted 04 July 2018 - 01:10 PM

I also tried using the event below to change the color and it did not work!
 
 
function painted(sender, eOpts)
{
  sender.addCls('btAzul');
}

  • 0

#5 fcarvalho4

fcarvalho4

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 101 posts
  • LocationLisboa

Posted 05 July 2018 - 10:20 AM

you must use the ExtEvent - added

 

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

  • 0

#6 zanona

zanona

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 106 posts

Posted 05 July 2018 - 12:51 PM

Did not work!

  • 0

#7 Delphi Developer

Delphi Developer

    Advanced Member

  • Moderators
  • 5177 posts

Posted 05 July 2018 - 06:21 PM

Hi,

 

Please, can you attach screenshots, how it looks on the desktop and mobile?


  • 0

#8 zanona

zanona

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 106 posts

Posted 05 July 2018 - 07:48 PM

Follow mobile and web example!
 
Web switches color Mobile does not

http://ge.tt/5wh3PSq2

  • 0

#9 zanona

zanona

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 106 posts

Posted 09 July 2018 - 05:29 PM

Did you understand the examples?


  • 0

#10 Delphi Developer

Delphi Developer

    Advanced Member

  • Moderators
  • 5177 posts

Posted 10 July 2018 - 05:07 AM

Hi,

 

Did you understand the examples?

 

Sorry for delay

 

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

 

Please attach here


  • 0

#11 zanona

zanona

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 106 posts

Posted 10 July 2018 - 10:00 AM

How do I attach in the post?


  • 0

#12 Delphi Developer

Delphi Developer

    Advanced Member

  • Moderators
  • 5177 posts

Posted 10 July 2018 - 10:55 AM

How do I attach in the post?

 

"More Reply Options" button...


  • 0

#13 zanona

zanona

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 106 posts

Posted 10 July 2018 - 10:58 AM

Follow!


  • 0

#14 zanona

zanona

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 106 posts

Posted 10 July 2018 - 11:00 AM

Follow!

Attached Files


  • 0

#15 zanona

zanona

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 106 posts

Posted 11 July 2018 - 11:07 AM

Did you understand the examples?


  • 0

#16 zanona

zanona

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 106 posts

Posted 16 July 2018 - 04:47 PM

Did you understand the examples?


  • 0





Also tagged with one or more of these keywords: unimbutton, color, css

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users