summaryrefslogtreecommitdiff
path: root/Userland/Applications/ImageViewer/main.cpp
diff options
context:
space:
mode:
authorKarol Kosek <krkk@krkk.ct8.pl>2021-07-27 17:50:59 +0200
committerAndreas Kling <kling@serenityos.org>2021-07-27 18:32:58 +0200
commitf2d3fcb7cd6e97c15f2911bf16ee777173f1ea54 (patch)
treec560b6c272772fb6b8b8e325ae3c7b2c8473ed47 /Userland/Applications/ImageViewer/main.cpp
parent4a8d47edf8c5905ab6d5c35353776fe403374876 (diff)
downloadserenity-f2d3fcb7cd6e97c15f2911bf16ee777173f1ea54.zip
ImageViewer: Hide the border frame in fullscreen mode
Diffstat (limited to 'Userland/Applications/ImageViewer/main.cpp')
-rw-r--r--Userland/Applications/ImageViewer/main.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Userland/Applications/ImageViewer/main.cpp b/Userland/Applications/ImageViewer/main.cpp
index 39af0245a7..2caff080f9 100644
--- a/Userland/Applications/ImageViewer/main.cpp
+++ b/Userland/Applications/ImageViewer/main.cpp
@@ -110,6 +110,7 @@ int main(int argc, char** argv)
widget.on_doubleclick = [&] {
window->set_fullscreen(!window->is_fullscreen());
toolbar_container.set_visible(!window->is_fullscreen());
+ widget.set_frame_thickness(window->is_fullscreen() ? 0 : 2);
};
// Actions