Rework fullscreen image

As discussed in network/neochat#161, when clicking the image it now only covers the neochat window. A modal popup that covers the neochat window is now used. The app behind get dimmed.

Left clicking anywhere closes the preview as well as the using the close button. Right clicking on the image itself still gives the image's context menu.

Before
![fullscreenimage_before](/uploads/f7a64ab2f0b75405f3f0a16f32c029f3/fullscreenimage_before.png)

After
![fullscreenimage_updated2](/uploads/8feb6c79891019203a6a0a8439c71b70/fullscreenimage_updated2.png)

Latest
![fullscreenimage_updated_final](/uploads/61ca4c1251b914ae3a6bdd158f4dc396/fullscreenimage_updated_final.png)

Closes network/neochat#161
This commit is contained in:
James Graham
2022-10-09 16:27:51 +00:00
parent a761d36abd
commit d00e122d88
3 changed files with 292 additions and 62 deletions

View File

@@ -141,6 +141,10 @@ if(ANDROID)
"preferences-system-users"
"preferences-desktop-theme-global"
"notifications"
"zoom-in"
"zoom-out"
"image-rotate-left-symbolic"
"image-rotate-right-symbolic"
)
else()
target_link_libraries(neochat PUBLIC Qt::Widgets KF5::KIOWidgets)