bluescan / tacentview

An image and texture viewer for tga, png, apng, exr, dds, pvr, ktx, ktx2, astc, pkm, qoi, gif, hdr, jpg, tif, ico, webp, and bmp files. Uses Dear ImGui, OpenGL, and Tacent. Useful for game devs as it displays information like the presence of an alpha channel and querying specific pixels for their colour.
ISC License
329 stars 32 forks source link

Please add fullscreen/shortcut support for both single texture and thumbnail view #132

Open powof2 opened 11 months ago

powof2 commented 11 months ago

Hi bluescan,

please add fullscreen support for thumbnail view, for now i have to resize the thumbnail view manually (the background still leaks after resizing), this will be a great feature that other viewer don't have (XnView for example). use case: pick one from lots of snapshots.

and please also add shortcut for single texture view, for now i have to use 'N' 'M' to hide widgets (the titlebar won't go away anyway).

with fullscreen mode, i figure you can hide all other widgets, because by then user already knows how to navigate between textures.

thank you for the great job.

powof2 commented 11 months ago

ok, i just noticed the fullscreen icon on the navigation bar, it works and will hide the titlebar.

bluescan commented 11 months ago

Hi powof2.

Regarding "fullscreen support for thumbnail view". Should be able to do something there. I'll leave this open for that reason.

Regarding "shortcut for single texture view". Yes there the fullscreen button.. but there are also the 3 profiles (Main, Basic, Kiosk with default bindings to Alt-1, Alt-2, Alt-3). The names are not important, they only affect what the defaults are. For example, you start in the Main profile normally. Try changing to the Basic (Alt-2). Then change whatever you like... slideshow parameters, full-screen (Alt-Enter), toggle menu or bottom nav-bar on/off, whatever you like. These are all remembered with the Basic profile cuz that's what you switched to. Now you can switch between Main and Basic with Alt-1 and Alt-2. If you had set Basic to be fullscreen and Main to not be... this would toggle between them. There's no need to use 'N' 'M' every time... plus it will remember more than just those 2 settings... you can even set different keybindings for each profile if you like:

image

Incidentally, the Kiosk profile (Alt-3) defaults to fullscreen and hides all other widgets already.

bluescan commented 11 months ago

The Ctrl-Shift-Tab key binding is the only one that cannot be changed... that's so you always have a way to get back to the bindings window no matter what you do.