136 this->require(
"lib/ace.js");
139 auto theme = std::make_shared<Wt::WBootstrapTheme>();
140 theme->setVersion(Wt::BootstrapVersion::v3);
141 theme->setResponsive(
true);
142 this->setTheme(theme);
144 this->setTitle(
"PeriDyno: An AI-targeted physics simulation platform");
147 this->styleSheet().addRule(
148 ".remote-framebuffer",
150 "transform: scaleY(-1) !important;"
152 "-webkit-user-drag: none !important;"
153 "-khtml-user-drag: none !important;"
154 "-moz-user-drag: none !important;"
155 "-o-user-drag: none !important;"
156 "user-drag: none !important;"
158 "filter: brightness(2);"
162 this->styleSheet().addRule(
164 "padding: 0!important;"
167 this->styleSheet().addRule(
169 "border-radius: 5px;"
173 this->styleSheet().addRule(
175 "background-image: url(\"logo.png\");"
176 "background-repeat: no-repeat;"
177 "background-size: 36px 36px;"
178 "background-position: 12px 6px;"
179 "padding-left: 36px;"
183 this->styleSheet().addRule(
185 "border: 0!important;"
186 "padding: 0!important;"
190 this->styleSheet().addRule(
191 ".scrollable-content",
194 "border: 1px solid #ccc;"
196 "box-sizing: border-box;"
200 auto layout = this->root()->setLayout(std::make_unique<Wt::WHBoxLayout>());
201 layout->setContentsMargins(0, 0, 0, 0);
203 window = layout->addWidget(std::make_unique<WMainWindow>());
WMainApp(const Wt::WEnvironment &env)