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:
parent
49999006ef
commit
25468fdcf7
1 changed files with 2 additions and 2 deletions
|
@ -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 {
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue