1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-29 16:25:07 +00:00

Playground: Start out with a GUI::Frame on the right hand side

This looks a lot nicer than starting with a plain GUI::Widget.
This commit is contained in:
Andreas Kling 2021-05-26 20:36:30 +02:00
parent 49999006ef
commit 25468fdcf7

View file

@ -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 {
}