Stylesheet that considers the Glass Addon

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

Stylesheet that considers the Glass Addon

Post by Kunda1 »

When using the Glass module while using combiview for the Tree and Properties dialogs renders very uncomfortable to view.
Example: Set to 'No style sheet' in the preferences
Image

Example; Dark-blue theme
Image

Example: Darker-blue theme (IMO, the best out of them all)
Image

Background:
Allows to overlay dock widgets over viewport.
Glass Addon: https://forum.freecadweb.org/viewtopic.php?t=32397
Repo: https://github.com/triplus/Glass
Allows for the UI to be
Example:
Image
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
OficineRobotica
Posts: 433
Joined: Thu Feb 21, 2019 8:17 am
Contact:

Re: Stylesheet that considers the Glass Addon

Post by OficineRobotica »

Thank you @Kunda1 for highlighting this.

As i stated in this post https://forum.freecadweb.org/viewtopic. ... 20#p292769 allot can be done for glass but unfortunately , at least from my understanding, 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.

Text outline is the most convenient way of managing legibility when a part is displayed underneath the glass module just like the way subtitles legibility is managed for video.
glass.png
glass.png (147.23 KiB) Viewed 1983 times

This is more of @Triplus realm and i'm not able to code this unfortunately but i sure hope that it will be examined further

This could be such an awsome outcome for glass and we are already half way there.
mokup3.png
mokup3.png (397.34 KiB) Viewed 1983 times
Check out my Youtube channel at: https://www.youtube.com/@OficineRobotica
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Stylesheet that considers the Glass Addon

Post by Kunda1 »

OficineRobotica wrote: Sun Sep 22, 2019 4:21 pm Thank you @Kunda1 for highlighting this.
Continuing the thread at https://forum.freecadweb.org/viewtopic.php?f=34&t=39549
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
Post Reply