File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ class context : public std::enable_shared_from_this<context>
6464 * @brief Shorthand alias for style_provider.
6565 * @return this->style_provider.get().
6666 */
67- const ruis::style_provider& style () const noexcept
67+ ruis::style_provider& style () noexcept
6868 {
6969 return this ->style_provider .get ();
7070 }
Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ void gui::init_standard_widgets(const fsif::file& fi)
7777
7878 // TODO: pass which style to load via parameter
7979 auto style_res = this ->context .get ().loader ().load <ruis::res::tml>(" ruis_tml_style_dark" sv);
80- this ->context .get ().style_provider . get ().set (utki::make_shared<style_sheet>(style_res.get ().forest ));
80+ this ->context .get ().style ().set (utki::make_shared<style_sheet>(style_res.get ().forest ));
8181}
8282
8383void gui::set_viewport (const ruis::rect& rect)
You can’t perform that action at this time.
0 commit comments