Start Page Redesign

A forum for research and development of the user interface of FreeCAD
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Start Page Redesign

Post by Kunda1 »

openfablab wrote: Tue Sep 08, 2020 7:34 pm I made some successful experimenting with FreeCADGui.webView.webPage.browser.setHtml and now want to try javascript approach. But how can I correctly call python functions from javascript and get response?
Maybe @vanuan can help with this?
vanuan wrote: pinged by pinger macro

bitacovir wrote: Sun Sep 13, 2020 1:13 pm I forgot I had this mock-up of a Start Page. Maybe it gives some additional inspiration...
This is pretty great!
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
User avatar
pablogil
Posts: 882
Joined: Wed Nov 26, 2014 3:19 pm
Location: Badajoz (Spain)
Contact:

Re: Start Page Redesign

Post by pablogil »

Would it be possible to add a filter to the Recent files in order to hide some kind of file types?
I would like to just have FC files

Thanks
Dark and Light stylesheets v2.0 to theme your FreeCAD UI, more information here
chrisb
Veteran
Posts: 54166
Joined: Tue Mar 17, 2015 9:14 am

Re: Start Page Redesign

Post by chrisb »

pablogil wrote: Sun Sep 13, 2020 1:25 pm I would like to just have FC files
+1
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
User avatar
vanuan
Posts: 539
Joined: Wed Oct 24, 2018 9:49 pm

Re: Start Page Redesign

Post by vanuan »

openfablab wrote: Tue Sep 08, 2020 7:34 pm I made some successful experimenting with FreeCADGui.webView.webPage.browser.setHtml and now want to try javascript approach. But how can I correctly call python functions from javascript and get response?
You can't. One thing that could work is starting up an http or grpc server. But you would still need to write javascript-http-python bindings.

See my POC: https://forum.freecadweb.org/viewtopic.php?f=34&t=48611
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Start Page Redesign

Post by Kunda1 »

TheMarkster wrote:ping
Hi @TheMarkster! Question: how would I make the Recent files and Example file section of the StartPage optional ?
Relevant code is at: https://github.com/FreeCAD/FreeCAD/blob ... #L399-L435
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
chrisb
Veteran
Posts: 54166
Joined: Tue Mar 17, 2015 9:14 am

Re: Start Page Redesign

Post by chrisb »

Kunda1 wrote: Sat Jan 08, 2022 4:37 pm Question: how would I make the Recent files and Example file section of the StartPage optional ?
Seems a rather old topic. Example files section is already optional. It can be configured in the preferences.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
TheMarkster
Veteran
Posts: 5512
Joined: Thu Apr 05, 2018 1:53 am

Re: Start Page Redesign

Post by TheMarkster »

Kunda1 wrote: Sat Jan 08, 2022 4:37 pm
TheMarkster wrote:ping
Hi @TheMarkster! Question: how would I make the Recent files and Example file section of the StartPage optional ?
Relevant code is at: https://github.com/FreeCAD/FreeCAD/blob ... #L399-L435
In preferences -> startup there is an option for a template html page to be used instead of the start page, but I haven't experimented with that. You could try using the default page as a starting point and trimming away what you don't want.
Post Reply