Skip to content

Commit 54ff8e0

Browse files
committed
stuff
1 parent e22c830 commit 54ff8e0

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/ruis/context.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

src/ruis/gui.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

8383
void gui::set_viewport(const ruis::rect& rect)

0 commit comments

Comments
 (0)