Use favicon as window icon in native mode #1745
Replies: 6 comments 5 replies
-
Hi, i am currently testing some possible solutions, may i ask what exactly did not convince? #634 was rejected because of the platform specific dependencies, which is understandable. But if we agree on that, how should the feature ever be included if not provided by pywebview itself (which uses platform specific deps). |
Beta Was this translation helpful? Give feedback.
-
We want to avoid maintaining a platform specific solution. So you are right: Ideally this feature is implemented in pywebview itself. An alternative could be another (well-maintained) library which provides this feature. |
Beta Was this translation helpful? Give feedback.
-
Understood, but if i recall correctly the maintainer of pywebview stated that he has no intention of adding that feature and instead pyinstallers capabilities should be used as "freezing" the app is the standard way go. Thus the only way of ever bringing the app icon to nicegui native is finding another package which has a "set_icon(window_handle, icon_path)" method and is working for any OS? Chances are minimal i guess.. So if ctypes or say a pywin32 variant are not in scope, the native mode won't have an icon out of the box soon. |
Beta Was this translation helpful? Give feedback.
-
These are very valid points, @FabianGoessling. We would really like to see custom app icons in native NiceGUI apps.
What do you think? Would you like to create a pull request? 🙂 |
Beta Was this translation helpful? Give feedback.
-
Makes sense, ill be happy to share my solution when it is ready. I suspect I will have to stick with ctypes as eg pywin32 would add another dep. Agree? Points one and two are fine for me, but i think a NotImplementedError might suggest that it is raised because no one put in the work yet. But including an icon converter or something like that might not be the way to go, so i think the error needs to be something more "strict". Will look into that when i have a running solution.. |
Beta Was this translation helpful? Give feedback.
-
Hey everyone, I was just wondering if there’s been any recent activity around the topic of icons? It’s been almost a year since the last update in this thread. I’m not trying to push anything, just curious about the current status. Thanks! |
Beta Was this translation helpful? Give feedback.
-
In #620, #633 and #634 we discussed ways to use the favicon argument of
ui.run
for the window icon in native mode. So far there haven't been convincing solutions. Since #620 is not a bug but a missing feature and it's currently not actively developed, I'll create a new feature request. Maybe someone has an idea how to implement it? Or maybe pywebview comes up with a API for us to use.Beta Was this translation helpful? Give feedback.
All reactions