Minesweeper: Add a tasteful separator line between menubar and UI
This commit is contained in:
parent
381dcca2f6
commit
6e4e3cefb2
Notes:
sideshowbarker
2024-07-18 18:44:42 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/6e4e3cefb22
1 changed files with 5 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue