diff options
author | Andreas Kling <kling@serenityos.org> | 2021-05-03 17:08:28 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-05-03 17:08:28 +0200 |
commit | 6e4e3cefb22f21c69055537c8bd3b0a5d9c80626 (patch) | |
tree | d68365b16f70564f5b52d19e58410b3a03be3473 /Userland/Games | |
parent | 381dcca2f6732ebb596613d2c34ccc5daacd41d6 (diff) | |
download | serenity-6e4e3cefb22f21c69055537c8bd3b0a5d9c80626.zip |
Minesweeper: Add a tasteful separator line between menubar and UI
Diffstat (limited to 'Userland/Games')
-rw-r--r-- | Userland/Games/Minesweeper/main.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
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 <kling@serenityos.org> + * Copyright (c) 2018-2021, Andreas Kling <kling@serenityos.org> * * SPDX-License-Identifier: BSD-2-Clause */ @@ -15,6 +15,7 @@ #include <LibGUI/Label.h> #include <LibGUI/Menu.h> #include <LibGUI/Menubar.h> +#include <LibGUI/SeparatorWidget.h> #include <LibGUI/Window.h> #include <stdio.h> #include <unistd.h> @@ -61,6 +62,9 @@ int main(int argc, char** argv) widget.set_layout<GUI::VerticalBoxLayout>(); widget.layout()->set_spacing(0); + auto& top_line = widget.add<GUI::SeparatorWidget>(Gfx::Orientation::Horizontal); + top_line.set_fixed_height(2); + auto& container = widget.add<GUI::Widget>(); container.set_fill_with_background_color(true); container.set_fixed_height(36); |