19 this->require(
"lib/ace.js");
22 auto bootstrapTheme = std::make_shared<Wt::WBootstrap3Theme>();
23 this->setTheme(bootstrapTheme);
25 this->setTitle(
"PeriDyno: An AI-targeted physics simulation platform");
29 this->styleSheet().addRule(
30 ".remote-framebuffer",
32 "transform: scaleY(-1) !important;"
34 "-webkit-user-drag: none !important;"
35 "-khtml-user-drag: none !important;"
36 "-moz-user-drag: none !important;"
37 "-o-user-drag: none !important;"
38 "user-drag: none !important;"
40 "filter: brightness(2);"
44 this->styleSheet().addRule(
46 "padding: 0!important;"
49 this->styleSheet().addRule(
55 this->styleSheet().addRule(
57 "background-image: url(\"logo.png\");"
58 "background-repeat: no-repeat;"
59 "background-size: 36px 36px;"
60 "background-position: 12px 6px;"
65 this->styleSheet().addRule(
67 "border: 0!important;"
68 "padding: 0!important;"
72 this->styleSheet().addRule(
73 ".scrollable-content",
76 "border: 1px solid #ccc;"
78 "box-sizing: border-box;"
81 this->styleSheet().addRule(
82 ".scrollable-content-sample",
85 "border: 1px solid #ccc;"
87 "box-sizing: border-box;"
91 auto layout = this->root()->setLayout(std::make_unique<Wt::WHBoxLayout>());
92 layout->setContentsMargins(0, 0, 0, 0);
94 window = layout->addWidget(std::make_unique<WMainWindow>());
98 window->createRightPanel();
WMainApp(const Wt::WEnvironment &env)
void onKeyWentDown(const Wt::WKeyEvent &event)