Modern UI

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
HakanSeven12
Veteran
Posts: 1481
Joined: Wed Feb 06, 2019 10:30 pm

Re: Modern UI

Post by HakanSeven12 »

Just click the arrow beside of the menu name :)
cadcam
Posts: 276
Joined: Thu Apr 02, 2020 10:39 am

Re: Modern UI

Post by cadcam »

I am not sure if this is of any help, but I have occasionally had difficulty with losing menus etc in the past and think it might be related to trying my setup in both main stream Ver19 and realthunder's Link fork. Again not sure, but I think there is a different way in which the active WBs are recorded/used in user.cfg.

Sometimes it would take a couple of removals of ModernUI before it worked correctly, unfortunately as I haven't been able to reliably cause the error I haven't been very rigorous in recording my recovery routes.

Please ignore if you know more

Best wishes
User avatar
HakanSeven12
Veteran
Posts: 1481
Joined: Wed Feb 06, 2019 10:30 pm

Re: Modern UI

Post by HakanSeven12 »

Did you tried the newest version? I already made an update for that. Maybe you can try and report back if it's working or not.
cadcam
Posts: 276
Joined: Thu Apr 02, 2020 10:39 am

Re: Modern UI

Post by cadcam »

HakanSeven12 wrote: Fri Jan 08, 2021 10:20 am Did you tried the newest version? I already made an update for that. Maybe you can try and report back if it's working or not.
I did download, but it introduced another issue for my setup.
Image
I assume your mod adding greyed out icons has meant that when editing
a sketch all the icons, except constraints, are inaccessible. I haven't had time to investigate
a work around so
to do work I have temporarily re-installed the Sketcher WB with no problems so far.
If you have any thoughts about accessing functions while in sketcher mode I would
be grateful

Best Wishes
Attachments
greyed_out_icons.png
greyed_out_icons.png (105.18 KiB) Viewed 2802 times
User avatar
HakanSeven12
Veteran
Posts: 1481
Joined: Wed Feb 06, 2019 10:30 pm

Re: Modern UI

Post by HakanSeven12 »

İt's working for sketcher but not working for cadcam right? How can I create this cadcam tab?
User avatar
HakanSeven12
Veteran
Posts: 1481
Joined: Wed Feb 06, 2019 10:30 pm

Re: Modern UI

Post by HakanSeven12 »

HakanSeven12 wrote: Fri Jan 08, 2021 8:10 am I'm thinking about adding file and structure toolbars like this. They will always stay at icons only mode. What are you thinking about that?

https://www.patreon.com/posts/45954372
This feature activated with last commit
User avatar
mhalil
Posts: 213
Joined: Tue Dec 01, 2020 6:42 pm
Location: İstanbul / Türkiye
Contact:

Re: Modern UI

Post by mhalil »

HakanSeven12 wrote: Fri Jan 08, 2021 10:20 am Did you tried the newest version? I already made an update for that. Maybe you can try and report back if it's working or not.
Maalesef arabirim düzgün görüntülenmiyor.
Daha önce yükleyip kuualnmıştım.
Yanlış ya da eksik bir şey mi yaptım anlamadım.

Rapor görünümündeki hata mesajı;

Code: Select all

21:32:31  Traceback (most recent call last):
21:32:31    File "/home/mhg/.FreeCAD/Mod/ModernUI/FCBinding.py", line 147, in selectWorkbench
21:32:31      self.createFileMenu()
21:32:31    File "/home/mhg/.FreeCAD/Mod/ModernUI/FCBinding.py", line 91, in createFileMenu
21:32:31      menu_list = workbench.listMenus()
21:32:31    File "<string>", line 70, in listMenus
21:32:31  AttributeError: 'PartDesignWorkbench' object has no attribute '__Workbench__'
21:32:31  Traceback (most recent call last):
21:32:31    File "/home/mhg/.FreeCAD/Mod/ModernUI/FCBinding.py", line 276, in __init__
21:32:31      QtCore.Qt.TopDockWidgetArea, MenuDock())
21:32:31    File "/home/mhg/.FreeCAD/Mod/ModernUI/FCBinding.py", line 46, in __init__
21:32:31      self.setWidget(ModernMenu())
21:32:31    File "/home/mhg/.FreeCAD/Mod/ModernUI/FCBinding.py", line 67, in __init__
21:32:31      self.selectWorkbench()
21:32:31    File "/home/mhg/.FreeCAD/Mod/ModernUI/FCBinding.py", line 147, in selectWorkbench
21:32:31      self.createFileMenu()
21:32:31    File "/home/mhg/.FreeCAD/Mod/ModernUI/FCBinding.py", line 91, in createFileMenu
21:32:31      menu_list = workbench.listMenus()
21:32:31    File "<string>", line 70, in listMenus
21:32:31  AttributeError: 'PartDesignWorkbench' object has no attribute '__Workbench__'
Attachments
q2.png
q2.png (328.5 KiB) Viewed 2704 times
User avatar
HakanSeven12
Veteran
Posts: 1481
Joined: Wed Feb 06, 2019 10:30 pm

Re: Modern UI

Post by HakanSeven12 »

Partdesign ı bende kullanmıştım. Böyle bir sorun görmedim. Ancak pazartesi bakabilirim.
vparmeshwar
Posts: 2
Joined: Thu Dec 17, 2020 5:40 am

Re: Modern UI

Post by vparmeshwar »

HakanSeven12 wrote: Fri Jan 08, 2021 6:43 am Its not a problem. I disabled them. If you want to see it go to FreeCAD/Mod/ModernUI folder and open FCBinding.py. At line 132, you will see this code

Code: Select all

        Defaults = ['File', 'Workbench', 'Macro', 'View', 'Structure']
Change with this

Code: Select all

        Defaults = ['Workbench', 'Macro', 'View', 'Structure']
Sven,

I did not see the ModernUI folder in Freecad/mod. Is that normal?

I think that the navigation of the UI like different views(top, bottom,..) as well as "Fit selection" should be readily available for the user. These are used very frequently. Also, I observed that hiding using the space bar is not working on my installation. I am using 0.19 from the folder instead of installing it.
Tussen Takk,

Vishy
User avatar
HakanSeven12
Veteran
Posts: 1481
Joined: Wed Feb 06, 2019 10:30 pm

Re: Modern UI

Post by HakanSeven12 »

vparmeshwar wrote: Mon Jan 11, 2021 4:33 am I did not see the ModernUI folder in Freecad/mod. Is that normal?
If you are using widows, its under User/AppData/Roaming. But I already activated file and structure toolbars. So you need to update Modern UI
I think that the navigation of the UI like different views(top, bottom,..) as well as "Fit selection" should be readily available for the user. These are used very frequently.
You are right but I dınt want to add more toolbars until I implament dropdown menus.
Also, I observed that hiding using the space bar is not working on my installation. I am using 0.19 from the folder instead of installing it.
Yeah most of shortcusts works but some of them are not working. I already open a thread about that. https://forum.freecadweb.org/viewtopic.php?f=22&t=54097
Post Reply