Hello @triplus .
I'vd used your module and i must say that it becomes difficult to go back to the old interface. I really wish that Glass evolves to it's full potential. To my humble opinion this finally gives freecad a beautiful modern appearance and most of all, although the overlay docks might occupy the same physical space as classic docks, the perceived user experience is that of a much bigger work space.
That said Glass has becomed a learning experience for me after trying to fidle with the addon. Please help me with some aspects of modifying it.
1-given that the appimage takes a while to start and it doesn't retain the main freecad stylesheet preference i tried reloding the module with this instead of restarting the app
Code: Select all
>>> from importlib import reload
>>> import GlassGui
>>> reload(GlassGui)
<module 'GlassGui' from '/home/.../.FreeCAD/Mod/Glass/GlassGui.py'>
the problem is that the module doesn't refresh on screen and even the Q-1 shortcut stops working so a restart is needed.
2-at least for starters i would like to load the tree view instead of the combo view (that is till more widgets get implemented). I tried changing line 35 of GlassGui.py with:
Code: Select all
dock = mw.findChild(QtGui.QDockWidget, "Tree View")
but Glass stoped working completely. What em i doing wrong?
3-the main reason for me trying to modify the addon was to improve usability until you implement those features in a proper sane and informed way. I'm not a coder , i just saw a awesome adition to freecad and i got excited about the possibilities that it offers. So i tried to modify line 77 of GlassGui.py with:
Code: Select all
widget.setStyleSheet("./Resources/glass.qss")
for styling in an external file but either the pointer to that file is wrong or the formating of the .qss file so glass doesn't pick up the styling anymore after that.
Unfortunately i discovered that styling qt text can't be done directly with a style sheet but it is available trough PySyde QGraphicsEffect . I'm most interested in text outline and background blur.
https://srinikom.github.io/pyside-docs/ ... ffect.html
I don't know if a widget with transparent background and and blur applied would pick the pixels underneath it (i know that on desktop that is the compositor work) but even implementing it with transparent background->noise map(as target image)->qtblur would be awesome and could potentially give a result like this
- mokup3.png (397.34 KiB) Viewed 3307 times
or this
- mokup.jpg (344.01 KiB) Viewed 3307 times
Unfortunately implementing that is simply beyond me. I'm still at the lesson right after HelloWorld.cpp lol , but belive me that i'm trying really hard to find the time to study.
I'm sorry for the long post but i don't want to flood the thread with one thousand posts so i tried to gather it all together.
Thank you for your hard work.
OS: Ubuntu 18.10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.15900 (Git) AppImage
Build type: Release
Branch: master
Hash: a73b10203ab1cb31df4a8763b050d64da8e81580
Python version: 3.6.7
Qt version: 5.6.2
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: Italian/Italy (it_IT)