easegura777 Posted August 20, 2021 Share Posted August 20, 2021 How change background color UnimBitBtn Quote Link to comment Share on other sites More sharing options...
Sherzod Posted August 20, 2021 Share Posted August 20, 2021 4 minutes ago, easegura777 said: How change background color UnimBitBtn Hello, The forum has several similar requests, did not try to look for? For example, this post, try to use solution for UnimButton: Quote Link to comment Share on other sites More sharing options...
easegura777 Posted August 20, 2021 Author Share Posted August 20, 2021 12 minutes ago, Sherzod said: Hola, El foro tiene varias solicitudes similares, ¿no intentaste buscar? Por ejemplo, en esta publicación, intente usar la solución para UnimButton: ok, thanks, found in theme material but triton not found! Quote Link to comment Share on other sites More sharing options...
Sherzod Posted August 20, 2021 Share Posted August 20, 2021 13 minutes ago, easegura777 said: ok, thanks, found in theme material but triton not found! Make a simple testcase to check if possible. Quote Link to comment Share on other sites More sharing options...
easegura777 Posted August 20, 2021 Author Share Posted August 20, 2021 13 minutes ago, Sherzod said: Make a simple testcase to check if possible. in the example you shared with me can be validated Quote Link to comment Share on other sites More sharing options...
Sherzod Posted August 20, 2021 Share Posted August 20, 2021 37 minutes ago, easegura777 said: in the example you shared with me can be validated I couldn't reproduce. Quote Link to comment Share on other sites More sharing options...
easegura777 Posted August 20, 2021 Author Share Posted August 20, 2021 7 hours ago, Sherzod said: No pude reproducirme. CSS .x-button { width:120px; color:green; !important; height:30px; background-color: green; !important; 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: green; /* 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); } With theme triton with theme material Quote Link to comment Share on other sites More sharing options...
Sherzod Posted August 20, 2021 Share Posted August 20, 2021 42 minutes ago, easegura777 said: CSS Have you tried this approach? Quote Link to comment Share on other sites More sharing options...
easegura777 Posted August 20, 2021 Author Share Posted August 20, 2021 1 hour ago, Sherzod said: ¿Has probado este enfoque? Yes, with theme material found, but triton not found! Quote Link to comment Share on other sites More sharing options...
Sherzod Posted August 20, 2021 Share Posted August 20, 2021 I offered you this sequence: UnimButton -> 1. UI = 'plain' 2. ClientEvents -> UniEvents -> beforeInit: function beforeInit(sender, config) { config.userCls='my-button'; } 3. UniServerModule->CustomCSS: .my-button { background-color: orange; } .my-button:hover { background-color: #ff8c00; } .my-button.x-pressing { background-color: #ee7600; } Quote Link to comment Share on other sites More sharing options...
easegura777 Posted August 21, 2021 Author Share Posted August 21, 2021 9 hours ago, Sherzod said: I offered you this sequence: UnimButton -> 1. UI = 'plain' 2. ClientEvents -> UniEvents -> beforeInit: function beforeInit(sender, config) { config.userCls='my-button'; } 3. UniServerModule->CustomCSS: .my-button { background-color: orange; } .my-button:hover { background-color: #ff8c00; } .my-button.x-pressing { background-color: #ee7600; } Excelent!! it worked !!, thanks!! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.