isl-org / Open3D

Open3D: A Modern Library for 3D Data Processing
http://www.open3d.org
Other
11.47k stars 2.31k forks source link

How to add a icon to the gui window with python? #6331

Open zq07075335 opened 1 year ago

zq07075335 commented 1 year ago

Checklist

My Question

I don't know how to set the icon on the top left corner, Can anyone help me? thanks

tlind commented 1 year ago

I'm wondering the same! Would be nice to be able to change the icon. Right now, at least under Ubuntu 20.04 with Open3D 0.17.0, no icon at all is shown, which makes it hard to distinguish the application in the launcher from other running programs. In my case, I am using the modern GUI based on open3d.visualization.gui.Window.

At a first glance, it looks like a call to glfwSetWindowIcon() should be added somewhere in cpp/open3d/visualization/gui/GLFWWindowSystem.cpp. The problem may be that according to the GLFW documentation (under "Remarks"), this will not work under MacOS or using the Wayland display protocol (e.g. under Ubuntu 22.04), where instead the icon is automatically inherited from the application's desktop file.

The discussion here provides some hints at least for Ubuntu 20: https://discourse.glfw.org/t/taskbar-icon-in-linux-gnome-3-38-3-ubuntu-20-10/1769

pnchuyen commented 6 months ago

Hello everyone. Is there any update on this task?

RowshH commented 1 month ago

Hi. Would be nice if this functionality existed in Python too.