MCPcopy Create free account
hub / github.com/AshampooSystems/boden / updateFromStylesheet

Method updateFromStylesheet

framework/ui/src/View.cpp:92–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected