Glass

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
f3nix
Posts: 346
Joined: Sat May 30, 2015 11:58 am

Re: Glass

Post by f3nix »

Hi!
I have a black background issue on a self compiled qt5 version.

Are there any known workarounds?

Cheers,
Mateusz

OS: Debian GNU/Linux buster/sid
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.16084 (Git)
Build type: Debug
Branch: master
Hash: 568faf67a05454125db21452c35ce915bceb05cb
Python version: 2.7.16
Qt version: 5.11.3
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: Polish/Poland (pl_PL)
triplus
Veteran
Posts: 9471
Joined: Mon Dec 12, 2011 4:45 pm

Re: Glass

Post by triplus »

I will give more detail answers in the future.

@OficineRobotica

Try "Tree view" instead of "Tree View".

@f3nix

On KDE? I took a quick look when @OficineRobotica reported such issue. I am not sure yet if i will be able to fix this easily. Conda based AppImage should work for now.

P.S. Any testers on Windows? It would be interesting to know, on how Glass module currently works on Windows.
User avatar
f3nix
Posts: 346
Joined: Sat May 30, 2015 11:58 am

Re: Glass

Post by f3nix »

triplus wrote: Mon Mar 11, 2019 9:35 pm @f3nix

On KDE?
Hi.
Yes. It is on KDE Plasma 5.14.5

Will try to check with other WM later this week.

Cheers,
Mateusz
ickby
Veteran
Posts: 3116
Joined: Wed Oct 05, 2011 7:36 am

Re: Glass

Post by ickby »

I think there is no way around the black background issue, QT does not guarantee rendering of widgets on top of a openGL window works. I I faced the same problem when I did my test with this years ago (actually never had a system where it worked, so thumbs up for triplus!), and hence went for a deep change of rendering technique in Freecad for my alternative interface try. I personally think for a addon the current situation works quite well, as long as it is not in the base system it must not work on all machines, even though it would be nice.
triplus
Veteran
Posts: 9471
Joined: Mon Dec 12, 2011 4:45 pm

Re: Glass

Post by triplus »

Over the weekend i will finish the planned work on IconThemes module and will go over this thread again. I see that some do use Glass module:

Image

https://forum.freecadweb.org/viewtopic. ... 50#p293467

Always nice to see on how people end up using some available user interface element. That is a rather interesting set up, as you don't sacrifice much of the viewport size, but do get full tree and property view in return. Will try to add some new features soon.

P.S. As for the KDE. In theory it should work, as QOpenGLWidget is now used. Tested on Ubuntu 16.04 version of KDE Plasma. It works. On Kubuntu 18.10 i can reproduce the issue. Will try to find a fix in the following days.
User avatar
OficineRobotica
Posts: 427
Joined: Thu Feb 21, 2019 8:17 am
Contact:

Re: Glass

Post by OficineRobotica »

Over the weekend i will finish the planned work on IconThemes module and will go over this thread again. I see that some do use Glass module:
:D :D :D
Thank you @triplus . Indeed this kind of arrangement helps allot when working with multibody projects. Or just imagine how efficient it could be working with a asm3 file where there is allot of back and forth in the tree view and the space in the view port is never enough.
As for the KDE. In theory it should work, as QOpenGLWidget is now used. Tested on Ubuntu 16.04 version of KDE Plasma. It works. On Kubuntu 18.10 i can reproduce the issue. Will try to find a fix in the following days.
That would be awsome also as this way i could get back my beloved kde global menu. Strangely enough @realthunder 's asm3 appimage is catched by the global menu but FC trunk .appimage is not.
After using it glass makes the classic interface feel really cramped. At least for me it has becomed a must.
User avatar
bitacovir
Veteran
Posts: 1570
Joined: Sat Apr 19, 2014 6:23 am
Contact:

Re: Glass

Post by bitacovir »

triplus wrote: Mon Mar 11, 2019 9:35 pm P.S. Any testers on Windows? It would be interesting to know, on how Glass module currently works on Windows.
Hi. Really nice your Glass.
In my FreeCAD on windows, it works fine. But it shows some windows with a black background.

OS: Windows 10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.16093 (Git)
Build type: Release
Branch: releases/FreeCAD-0-18
Hash: 690774c0effe4fd7b8d2b5e2fb2b8c8d145e21ce
Python version: 3.6.6
Qt version: 5.6.2
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/Australia (en_AU)
FreeCAD_2019-03-16_21-16-25.png
FreeCAD_2019-03-16_21-16-25.png (124.09 KiB) Viewed 4052 times
::bitacovir::
==================
One must be absolutely modern.
Arthur Rimbaud (A Season in Hell -1873)

Canal Youtube Grupo Telegram de FreeCAD Español

My personal web site
My GitHub repository
Mini Airflow Tunnel Project
Murmele
Posts: 31
Joined: Sat Mar 11, 2017 1:24 pm

Re: Glass

Post by Murmele »

Hi,

great work :)

Is it possible to put the widget into the project window?

OS: Linux 5.0.1-arch1-1-ARCH
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.14555 (Git shallow)
Build type: Release
Branch: (HEAD detached at 8ece48c)
Hash: 8ece48c70bb7438112aa0cccb892c2109ae53082
Python version: 2.7.15
Qt version: 5.12.2
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: German/Austria (de_AT)
Attachments
Bildschirmfoto von 2019-04-11 16-36-39.png
Bildschirmfoto von 2019-04-11 16-36-39.png (40.12 KiB) Viewed 3889 times
User avatar
OficineRobotica
Posts: 427
Joined: Thu Feb 21, 2019 8:17 am
Contact:

Re: Glass

Post by OficineRobotica »

Hello @Triplus. Any news on the glass addon side? i've been waiting for a bump in version and now i'm on kubunrtu 19.04 and freecad-daily from the ppa but it seems that the problem with the black background persists.
fcGlass.png
fcGlass.png (202.2 KiB) Viewed 3789 times
Also , i don't know if it's related or if it can help in any way , there are 2 visual glitches that occur with fc-daily and not with the app image one. When on dark theme , the scroll bar of the workbench selector has the same black appearance as the glass addon. Also notice the vertical line in the viewport. It happens when one ridimensions the combo view. This screenshot is taken on a laptop with a Vega8 graphics card. I still need to set up my desktop (Nvidia) and try to test there also.

Thank you and all the best.

OS: Ubuntu 19.04 (KDE/plasma)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.
Build type: Release
Python version: 3.7.3
Qt version: 5.12.2
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: Italian/Italy (it_IT)
User avatar
adrianinsaval
Veteran
Posts: 5534
Joined: Thu Apr 05, 2018 5:15 pm

Re: Glass

Post by adrianinsaval »

Hi, I'm currently using it on windows 10 with the Tree view and it works great! However, I have to manually press q+1 or q+2 every time I startup Freecad, can this be automated? It does not show at all unless you press q+1 or q+2.

On a side note, can this be used simultaneously in more than one panel? Anyway, thanks for such a great addon!

EDIT:
Got it how I wanted with a few twitches. It automatically gets in Glass mode by adding setMode() after line 176 in GlassGui.py (use setVisibility instead if you want it to show but not in Glass mode).

I got it to work on 2 panels by copy/pasting GlassGui.py and importing the copy in InitGui.py. Had to twitch the positioning so they don't overlap and change the key combinations on the copy. Also changed LeftDockWidgetArea for RightDockWidgetArea at line 146 for personal preference.

There probably is a better way to do this since right now the tree view can be out of view if the window is resized. Sadly, I don´t really know any python to fix this. Attached are my modified files for anyone interested, they go into the Mod/Glass folder.

On a different note, anyone knows how to get rid of the tree in the combo view? or how to permanently move the navigation cube a little to the left?
Attachments
GlassGui2.py
(4.66 KiB) Downloaded 115 times
GlassGui.py
(4.65 KiB) Downloaded 131 times
InitGui.py
(1012 Bytes) Downloaded 132 times
Captura de pantalla (5).png
Captura de pantalla (5).png (138.32 KiB) Viewed 3709 times
Post Reply