gerhardhziegler Posted May 20, 2021 Share Posted May 20, 2021 Good afternoon, I would like to change the colors of the buttons of a mobile Upload Dialog as well as the text "browse" (of one button), which seems also to be standardized. Can anyone help me with the CSS and the Delphi Calls, I need? Thanks a lot in advance. Quote Link to comment Share on other sites More sharing options...
gerhardhziegler Posted May 28, 2021 Author Share Posted May 28, 2021 @Sherzod, o master of all classes, do you have a hint for me? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted May 28, 2021 Share Posted May 28, 2021 25 minutes ago, gerhardhziegler said: do you have a hint for me? Hello, We will check. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted May 28, 2021 Share Posted May 28, 2021 1 hour ago, gerhardhziegler said: do you have a hint for me? Same styles for all buttons? Quote Link to comment Share on other sites More sharing options...
gerhardhziegler Posted May 29, 2021 Author Share Posted May 29, 2021 11 hours ago, Sherzod said: Same styles for all buttons? Yes. Just change the color settings. Quote Link to comment Share on other sites More sharing options...
gerhardhziegler Posted May 29, 2021 Author Share Posted May 29, 2021 Just now, gerhardhziegler said: Yes. Just change the color settings. to be precise, maybe other colors like this gred/green. So different style, or, if not possible, then same style. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted May 29, 2021 Share Posted May 29, 2021 24 minutes ago, gerhardhziegler said: to be precise, maybe other colors like this gred/green. So different style, or, if not possible, then same style. In the future, we will try to declare these buttons as component objects. Dirty solution at the moment. 1. CustomCSS: .my-button { background-color: orange; } .my-button:hover { background-color: #ff8c00; } .my-button.x-pressing { background-color: #ee7600; } 2. After execute: ... UnimFileUpload1.Execute; UniSession.AddJS('Ext.defer(function(){Ext.select(".x-uni-window").first().select(".x-button-el").elements.forEach(function(btn){Ext.get(btn).component.setUi("plain"); Ext.get(btn).component.setUserCls("my-button")})},10)'); ... Quote Link to comment Share on other sites More sharing options...
gerhardhziegler Posted May 29, 2021 Author Share Posted May 29, 2021 4 minutes ago, Sherzod said: In the future, we will try to declare these buttons as component objects. Dirty solution at the moment. 1. CustomCSS: .my-button { background-color: orange; } .my-button:hover { background-color: #ff8c00; } .my-button.x-pressing { background-color: #ee7600; } 2. After execute: ... UnimFileUpload1.Execute; UniSession.AddJS('Ext.defer(function(){Ext.select(".x-uni-window").first().select(".x-button-el").elements.forEach(function(btn){Ext.get(btn).component.setUi("plain"); Ext.get(btn).component.setUserCls("my-button")})},10)'); ... Ok, thanks a lot. As I understood, this sets all buttons of the dialog to the same style? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted May 29, 2021 Share Posted May 29, 2021 Just now, gerhardhziegler said: As I understood, this sets all buttons of the dialog to the same style? Yes. Quote Link to comment Share on other sites More sharing options...
gerhardhziegler Posted May 29, 2021 Author Share Posted May 29, 2021 Just now, Sherzod said: Yes. Thanks a lot, I should try this out! 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.