exokit icon indicating copy to clipboard operation
exokit copied to clipboard

glfwSetWindowIcon

Open sidequestlegend opened this issue 6 years ago • 5 comments

I would attempt this myself but i'm not that familiar with NAN bindings ( i will be soon hopefully ) but i said i would leave here in case its just an after thought for @modulesio

To be able to set an icon for the current window I assume this might drop in nicely around here

Not sure what the cleanest implementation is, do we just specify an absolute path for a PNG or ICO file?

http://www.glfw.org/docs/latest/group__window.html#gadd7ccd39fe7a7d1f0904666ae5932dc5

sidequestlegend avatar Oct 09 '18 13:10 sidequestlegend

Yeah, the exposure of the GLWF method has a clear path that you mentioned, but I'd like to keep to webbiness for the favicon API.

That is, we should handle <link rel="icon"> from the user code, and that's where we fetch the favicon from. It would be fetched the same way as any other image and then passed to GLFW.

avaer avatar Oct 12 '18 10:10 avaer

I'm not sure if this makes sense, typically the favicons are shown per tab in browsers, how would this be handled with multiple sites simultaneously loaded? It might make sense for exporting standalone sites packaged with Exokit.

chrislatorres avatar May 23 '19 02:05 chrislatorres

Only one site is loaded at the top level, and that site owns the icon?

avaer avatar May 23 '19 04:05 avaer

Window title doesn't seem like the right place to renaming / changing icon dynamically. The window is "Exokit"+exokiticon or in the case of an exported site "Sites name"+icon.

chrislatorres avatar May 23 '19 05:05 chrislatorres

It probably should not be dynamic at all. Either the site sets it or we use the default.

avaer avatar May 23 '19 05:05 avaer