From 6e4e3cefb22f21c69055537c8bd3b0a5d9c80626 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Mon, 3 May 2021 17:08:28 +0200 Subject: [PATCH] Minesweeper: Add a tasteful separator line between menubar and UI --- Userland/Games/Minesweeper/main.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Userland/Games/Minesweeper/main.cpp b/Userland/Games/Minesweeper/main.cpp index 00513087e2..66db46e78d 100644 --- a/Userland/Games/Minesweeper/main.cpp +++ b/Userland/Games/Minesweeper/main.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018-2020, Andreas Kling + * Copyright (c) 2018-2021, Andreas Kling * * SPDX-License-Identifier: BSD-2-Clause */ @@ -15,6 +15,7 @@ #include #include #include +#include #include #include #include @@ -61,6 +62,9 @@ int main(int argc, char** argv) widget.set_layout(); widget.layout()->set_spacing(0); + auto& top_line = widget.add(Gfx::Orientation::Horizontal); + top_line.set_fixed_height(2); + auto& container = widget.add(); container.set_fill_with_background_color(true); container.set_fixed_height(36);