From e6e4fe4f5146fae8ecfc2b7fe6ab676196ec0960 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Thu, 31 Dec 2020 14:39:23 +0100 Subject: [PATCH] LibGUI: Add 1px of margin to EmojiPickerDialog The left and top highlight edges were cut off by the dialog frame. Add a small margin to make sure all buttons can be painted fully. --- Libraries/LibGUI/EmojiInputDialog.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Libraries/LibGUI/EmojiInputDialog.cpp b/Libraries/LibGUI/EmojiInputDialog.cpp index c1870c5af0..06072d6815 100644 --- a/Libraries/LibGUI/EmojiInputDialog.cpp +++ b/Libraries/LibGUI/EmojiInputDialog.cpp @@ -65,6 +65,7 @@ EmojiInputDialog::EmojiInputDialog(Window* parent_window) main_widget.set_frame_shadow(Gfx::FrameShadow::Raised); main_widget.set_fill_with_background_color(true); auto& main_layout = main_widget.set_layout(); + main_layout.set_margins({ 1, 1, 1, 1 }); main_layout.set_spacing(0); auto code_points = supported_emoji_code_points();