1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-20 18:15:07 +00:00

ImageViewer: Hide the border frame in fullscreen mode

This commit is contained in:
Karol Kosek 2021-07-27 17:50:59 +02:00 committed by Andreas Kling
parent 4a8d47edf8
commit f2d3fcb7cd

View file

@ -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