From 97cba6a17a5ecd1088bc88990f923d59445d1615 Mon Sep 17 00:00:00 2001 From: Carl Schwan Date: Sat, 28 Nov 2020 10:04:38 +0100 Subject: [PATCH] Remove transparency in FullScreen image viewer Also simplify closing the window by just clicking on the background This fix #89 --- imports/NeoChat/Component/FullScreenImage.qml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/imports/NeoChat/Component/FullScreenImage.qml b/imports/NeoChat/Component/FullScreenImage.qml index d2b341420..e9627818d 100644 --- a/imports/NeoChat/Component/FullScreenImage.qml +++ b/imports/NeoChat/Component/FullScreenImage.qml @@ -20,13 +20,17 @@ ApplicationWindow { title: i18n("Image View - %1", filename) - color: "#BB000000" - Shortcut { sequence: "Escape" onActivated: root.destroy() } + color: Kirigami.Theme.backgroundColor + + background: AbstractButton { + onClicked: root.destroy() + } + AnimatedImage { anchors.centerIn: parent