Jump to content

Using CSS


Abaksoft

Recommended Posts

Hello everybody,

It should be noted that Unigui has today reached great maturity.
Many very useful properties are included, but they remain unknown and not obvious.

Today, it is almost impossible to remember everything.

This is why I appeal to all the members of our dear community to make small very simple and useful samples which will serve as references  (Memory Help).

Here is for my part, this little example for CSS.
it follows from the forum (many thanks to Sherzod alias DD the Maestro).

I count on you to post more ...
Thank you

Custom_CSS.zip

  • Like 5
Link to comment
Share on other sites

  • 5 months later...

Thank you.

But... In my humble opinion, it seems to me that it is wrong to teach programmers to insert the CSS code into an exe file.

 

It seems to me that this is more correct:

procedure TUniMainModule.LoadScriptCSS;
begin
  if upMobile in UniMainModule.UniPlatforms then
    UniSession.AddJS('Ext.Loader.loadScript("/files/css/custommob.css")');

  if upDesktop in UniMainModule.UniPlatforms then
    UniSession.AddJS('Ext.Loader.loadScript("/files/css/custom.css")');
end;


procedure TUniMainModule.UniGUIMainModuleBeforeLogin(Sender: TObject; var Handled: Boolean);
begin
  LoadScriptCSS;
end;

 

  • Like 2
Link to comment
Share on other sites

  • 4 months later...

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...