Jump to content

User Interface: my solution for different "color-styles" ;-)


erich.wanker

Recommended Posts

Hello

this is my solution for my customers to change the colors

- it works in your existing unigui-application.

If you will used it -and make it better 😉 - please post your work here

 

HowTo:

  • Please set Theme "triton.modified" in UniMainModule
  • you need public vars in UniMainModule: my_text_under_highlite, texthintergrund, texthintergrund_focus, my_color, hintergrundfarbe, randfarbe, textfarbe : String;
  • you need a hidden "UniHTMLFrame2" in Mainform
  • ..and the Form in the zip 😉

colors.zip

  • Like 2
  • Thanks 4
Link to comment
Share on other sites

  • 5 months later...
  • 2 months later...
class procedure TThemeUtils.ConfigureCSS(Obj, Element, Value: String);
begin
  UniSession.AddJS('Ext.util.CSS.updateRule(''' + Obj + ''', ''' + Element + ''', ''' + Value + ''')');
end;

TThemeUtils.ConfigureCSS('.x-btn-default-small','background-color', '#353935');

An interesting tip.

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...