diff options
author | Andreas Kling <kling@serenityos.org> | 2021-05-26 20:36:30 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-05-26 22:17:47 +0200 |
commit | 25468fdcf7283c1e035f45c1f8704a86c44b51db (patch) | |
tree | 15ddf66c6599709e4a2e5918a54756a7a47bd4ff /Userland/DevTools/Playground/main.cpp | |
parent | 49999006ef85d28bc1f0010a390bd54cff5d9363 (diff) | |
download | serenity-25468fdcf7283c1e035f45c1f8704a86c44b51db.zip |
Playground: Start out with a GUI::Frame on the right hand side
This looks a lot nicer than starting with a plain GUI::Widget.
Diffstat (limited to 'Userland/DevTools/Playground/main.cpp')
-rw-r--r-- | Userland/DevTools/Playground/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/DevTools/Playground/main.cpp b/Userland/DevTools/Playground/main.cpp index 300233218b..fcaa94181c 100644 --- a/Userland/DevTools/Playground/main.cpp +++ b/Userland/DevTools/Playground/main.cpp @@ -97,7 +97,7 @@ int main(int argc, char** argv) auto& splitter = window->set_main_widget<GUI::HorizontalSplitter>(); auto& editor = splitter.add<GUI::TextEditor>(); - auto& preview = splitter.add<GUI::Widget>(); + auto& preview = splitter.add<GUI::Frame>(); editor.set_syntax_highlighter(make<GUI::GMLSyntaxHighlighter>()); editor.set_autocomplete_provider(make<GMLAutocompleteProvider>()); @@ -120,7 +120,7 @@ int main(int argc, char** argv) }; if (String(path).is_empty()) { - editor.set_text(R"~~~(@GUI::Widget { + editor.set_text(R"~~~(@GUI::Frame { layout: @GUI::VerticalBoxLayout { } |