FoxInCloud
Changing bootstrap theme
Gravatar is a globally recognized avatar based on your email address. Changing bootstrap theme
  Michele
  All
  Jul 16, 2022 @ 01:02pm

Hi, which are the steps i need to do to change the theme of my application (bootstrap 5) ?

Thanks

Gravatar is a globally recognized avatar based on your email address. re: Changing bootstrap theme
  FoxInCloud Support - Thierry N.
  Michele
  Jul 18, 2022 @ 06:05am

Ciao Michele,

You need to override directives contained in …\awScripts\bower\bootstrap\dist\css\bootstrap.css, or completely replace this file by your own.

You can either get some themes on line or build your own using SASS.

Then you need to replace URL to bootstrap.css by your own using xxxProcess.cawCSSinc():

PROTECTED FUNCTION cawCSSinc && <link rel="stylesheet"> {fr} des CSSs FoxInCloud, des CSS de l'application et des Fichier CSS additionnels
LPARAMETERS ;
  tcCSSadd; && [''] {en} Additional CSS files {fr} Fichier CSS additionnels
, toForm as awFrm of aw.vcx; && {en} Reference to form && {fr} Référence au formulaire
, tcForm; && {en} .Name of form {fr} Nom du formulaire

return strtran(strtran(dodefault(m.tcCSSadd, m.toForm, m.tcForm);
  , '/awScripts/bower/bootstrap/dist/css/bootstrap.css', 'Your bootstrap.css dev. URL', 1, 1, 1);
  , '/awScripts/bower/bootstrap/dist/css/bootstrap.min.css', 'Your bootstrap.css prod. URL', 1, 1, 1);

endfunc
Gravatar is a globally recognized avatar based on your email address. re: Changing bootstrap theme
  Michele
  FoxInCloud Support - Thierry N.
  Jul 18, 2022 @ 06:25am

If i substitute bootstrap.css with a different one, i have to do nothing more ? is this correct ?

Gravatar is a globally recognized avatar based on your email address. re: Changing bootstrap theme
  FoxInCloud Support - Thierry N.
  Michele
  Jul 18, 2022 @ 08:27am

Never did it myself, however I would say so.

Maybe someone else can share experience.

© 1996-2022