Jump to content

How I can create new or modify existsing theme?


Tokay

Recommended Posts

I don't know if it is the best practise. I do like this and i work with a copy of classic theme(blue)

 

in directory C:\Program Files (x86)\FMSoft\Framework\uniGUI\unipackages\themes\Css\

i copy uni-xtheme-uni_classic.css and rename to uni-xtheme-uni_MyTheme.css

 

in directory C:\Program Files (x86)\FMSoft\Framework\uniGUI\unipackages\themes\resources\Css

create file ext-all-uni_MyTheme.css

inside :

@import '../ext-theme-uni_MyTheme/ext-theme-uni_MyTheme-all.css';

 

in directory C:\Program Files (x86)\FMSoft\Framework\uniGUI\unipackages\themes\resources\Css

create file ext-all-uni_MyTheme-rtl.css

inside :

@import '../ext-theme-uni_MyTheme/ext-theme-uni_MyTheme-all-rtl.css';

 

 

in directory C:\Program Files (x86)\FMSoft\Framework\uniGUI\unipackages\themes\resources

create a directory ext-theme-uni_MyTheme

 

copy all file that are in directory C:\Program Files (x86)\FMSoft\Framework\uniGUI\unipackages\themes\resources\ext-theme-uni_classic

to directory C:\Program Files (x86)\FMSoft\Framework\uniGUI\unipackages\themes\resources\ext-theme-uni_MyTheme

 

In this directory

rename file ext-theme-uni_classic-all.css to ext-theme-uni_MyTheme-all.css

rename file ext-theme-uni_classic-all-rtl.css to ext-theme-uni_MyTheme-all-rtl.css

 

 

After all this change there is new theme in delphi : uni_MyTheme

 

you could do you modification in css file that are in C:\Program Files (x86)\FMSoft\Framework\uniGUI\unipackages\themes\resources\ext-theme-uni_MyTheme and change image if needed.

  • Like 3
  • Upvote 1
Link to comment
Share on other sites

  • 1 year later...

if I use an installed theme normally, example uni_classic, I have an url

/unipackages-1.15/themes/css/uni-xtheme-uni_classic.css

which contains the version of the UniPackages (1.15) .....

 

I created a theme and created the folders in the main path of the site

so I set up

  UniServerModule.UniPackagesRoot = 'files\\'
  UniGUIMainModule.Theme = 'uni_mytheme'
everything works well 
and I have a url like that
/unipackages/themes/css/uni-xtheme-uni_mytheme.css
 
but I always have a start url /unipackages/
I would like to change this fixed part
 
today I would like to add my own version (to update the files) and have a url:
/unipackages-v2/themes/css/uni-xtheme-uni_mytheme.css
 
how can I do ?
thank you
Link to comment
Share on other sites

if I use an installed theme normally, example uni_classic, I have an url

/unipackages-1.15/themes/css/uni-xtheme-uni_classic.css

which contains the version of the UniPackages (1.15) .....

 

I created a theme and created the folders in the main path of the site

so I set up

  UniServerModule.UniPackagesRoot = 'files\\'
  UniGUIMainModule.Theme = 'uni_mytheme'
everything works well 
and I have a url like that
/unipackages/themes/css/uni-xtheme-uni_mytheme.css
 
but I always have a start url /unipackages/
I would like to change this fixed part
 
today I would like to add my own version (to update the files) and have a url:
/unipackages-v2/themes/css/uni-xtheme-uni_mytheme.css
 
how can I do ?
thank you
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...