Modern UI

A forum for research and development of the user interface of FreeCAD

Moderator: agryson

User avatar
HakanSeven12
Posts: 836
Joined: Wed Feb 06, 2019 10:30 pm

Modern UI

Postby HakanSeven12 » Sun Apr 05, 2020 12:21 pm

What is the Modern UI?
Honestly I don't like FreeCAD default UI. So I started to look for alternatives. Firstly I created a macro for collapsible docks. You can find it here: https://forum.freecadweb.org/viewtopic.php?f=22&t=44659

After that I think "why I don't do something for toolbar?" and I started to search for a solution and find this repository: https://github.com/RoadrunnerWMC/PyQtRibbon

Finally I created this UI and merge them at one place :)

How to install?
Open 'Tools -> Addon Manager'.
Select 'Modern UI' and click 'Install/update selected'.
Restart FreeCAD.

How to uninstall?
Open 'Tools -> Addon Manager'.
Select 'Modern UI' and click 'Uninstall selected'.
Create a macro.
Paste this code in to macro.

Code: Select all

from PySide2 import QtCore, QtGui, QtWidgets
mw = FreeCADGui.getMainWindow()

WBList = FreeCADGui.listWorkbenches()
for WB in WBList:
    FreeCADGui.activateWorkbench(WB)
    for tb in mw.findChildren(QtWidgets.QToolBar):
        tb.show()
Execute it.
Restart FreeCAD.


Features:
Modern Docks
Modern Menu
File Menu
Recent File Manager (WIP)



phpBB [video]





Image
Last edited by HakanSeven12 on Sat Jun 27, 2020 8:51 am, edited 52 times in total.
carlopav
Posts: 1565
Joined: Mon Dec 31, 2018 1:49 pm
Location: Venice, Italy

Re: ModernUI

Postby carlopav » Sun Apr 05, 2020 1:27 pm

Nice!
follow my experiments on BIM modelling for architecture design
User avatar
HakanSeven12
Posts: 836
Joined: Wed Feb 06, 2019 10:30 pm

Re: ModernUI

Postby HakanSeven12 » Sun Apr 05, 2020 1:30 pm

carlopav wrote:
Sun Apr 05, 2020 1:27 pm
Nice!
Thanks
User avatar
Kunda1
Posts: 8437
Joined: Thu Jan 05, 2017 9:03 pm

Re: ModernUI

Postby Kunda1 » Sun Apr 05, 2020 1:40 pm

Fantastic!
Want to contribute back to FC? Checkout:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features
User avatar
HakanSeven12
Posts: 836
Joined: Wed Feb 06, 2019 10:30 pm

Re: ModernUI

Postby HakanSeven12 » Sun Apr 05, 2020 1:44 pm

Kunda1 wrote:
Sun Apr 05, 2020 1:40 pm
Fantastic!
Thanks
adrianinsaval
Posts: 344
Joined: Thu Apr 05, 2018 5:15 pm

Re: ModernUI

Postby adrianinsaval » Sun Apr 05, 2020 4:08 pm

Interesting, will every workbench be loaded at startup or when you click the corresponding tab? I think it would slow FreeCAD down if every workbench is loaded at once.
I really like the collapsible docks idea :) will these features be available separately?
User avatar
HakanSeven12
Posts: 836
Joined: Wed Feb 06, 2019 10:30 pm

Re: ModernUI

Postby HakanSeven12 » Sun Apr 05, 2020 4:32 pm

adrianinsaval wrote:
Sun Apr 05, 2020 4:08 pm
Interesting, will every workbench be loaded at startup or when you click the corresponding tab? I think it would slow FreeCAD down if every workbench is loaded at once.
I really like the collapsible docks idea :) will these features be available separately?
Workbenches are loading when you clicked tab :) collapsible docks available as macro for now

https://forum.freecadweb.org/viewtopic.php?f=22&t=44659
adrianinsaval
Posts: 344
Joined: Thu Apr 05, 2018 5:15 pm

Re: ModernUI

Postby adrianinsaval » Sun Apr 05, 2020 7:08 pm

Nice, thank you!
User avatar
HakanSeven12
Posts: 836
Joined: Wed Feb 06, 2019 10:30 pm

Re: ModernUI

Postby HakanSeven12 » Sun Apr 05, 2020 7:09 pm

adrianinsaval wrote:
Sun Apr 05, 2020 7:08 pm
Nice, thank you!
You are welcome
User avatar
HakanSeven12
Posts: 836
Joined: Wed Feb 06, 2019 10:30 pm

Re: ModernUI

Postby HakanSeven12 » Mon Apr 06, 2020 10:52 am

First Test


FirstRun.png
FirstRun.png (89.28 KiB) Viewed 6345 times