| 90 | std::shared_ptr<Layout> View::getLayout() { return _layout.get(); } |
| 91 | |
| 92 | void View::updateFromStylesheet() |
| 93 | { |
| 94 | if (auto core = viewCore()) { |
| 95 | if (stylesheet->count("background-color")) { |
| 96 | core->backgroundColor = stylesheet->at("background-color"); |
| 97 | } else { |
| 98 | core->backgroundColor = std::nullopt; |
| 99 | } |
| 100 | |
| 101 | core->updateFromStylesheet(stylesheet.get()); |
| 102 | } |
| 103 | } |
| 104 | |
| 105 | void View::scheduleLayout() |
| 106 | { |