Jump to content

UnimFileUpload, Color and Text of Buttons


gerhardhziegler

Recommended Posts

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.
 

Link to comment
Share on other sites

  • 2 weeks later...
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)');
  ...

 

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...