@rmehta how would you suggest at achieving themes without doing core hacks?
I think adding theme capabilities to Frappe would give businesses a great advantage to use branding and better blend ERPNext look and feel when integrating with their platforms.
The approach Iām suggesting since Frappe is using jinja2 engine is to write templates using Sass and javascript with predefined variables set, then deploy webassets to manage the process of applying templates css and javascript assets on targeted frappe application which can use [pyScss] (pyScss Ā· PyPI) to generate templates css .
Webassets library can be configured to use pyScss compiler (implemented in Python) for SCSS.
hi, great theme, we have selection another theme admin, but we need an help for install and configure it, can you help us?
Generally, how an app usually handles theming is by breaking out the views to a themes directory. Thatād allow theme creators to modify .HTML files and use whatever else they wanted (e.g. SASS/LESS, etc.). The app would then have a theme selector in the settings that would act as a redirect to the selected theme folder.
A system like that offers the most flexibility as people can work in their own JavaScript, CSS, and custom HTML for their themes without worrying about messing up core files. Of course, any updates to the underlying code may make it so a theme has to be updated by the creator to stay current, but thatās the price of flexibility.
I create bdtheme app for change ui theme and add left menu.
link to install app. you can edit and change my logo. hope you like it.
I just installed the app and It works fine, the left menu is very handy but isnāt translated.
Also, I think the responsive needs some work too.
There is a way to accomplish this?
Thanks!
This is really awesome. Nice Work.
Bbtheme app is the way to change theme and how to add left menu. Correct left menu I hard code notyet code for customize by app and notyet support translate. But you can edit my code apply your project. Itās easy to change left menu and logo.
@vinhnguyent090
I have tried your theme. It looks good.
If you want to make dynamic, you can use following js script
-
get all modules
frappe.modules
-
Get Module Doctype and Report list
frappe.call({
method: āfrappe.desk.moduleview.getā,
args: {
module: āDelivery Managementā
},
callback: function(r) {
console.log(r.message.data)},
freeze: true,
});
Yes thank your solution. But I like the way user can add their menu by create new menu doctype more than get dynamic via modules. Becuase erpnext have many pages. User only show their menus with their role. Exam sales role show sales menu or stock role show stock menu.
That looks very nice. I have been wanting to do somthing like this for a long time.
Wow! This is exactly how Iāve always thought the Frappe UI (for the Desk) should beā¦ Menu on the left sidebar and customizable dashboards/widgets on the main page
This would be fantastic!
Kind regrads,
Agree!
+1 on that!
+1 on that!
correct this way Iām doing but now I have another issue need to do
Very good work.
Now once applied how can i restore or change to another Theme ?
Translation to other languages when ? Initially ERPNext already has so is just use the existing ones correct?