| 234 | } |
| 235 | |
| 236 | WidgetStyle* WidgetTypes::findWidgetStyleBySkin(std::string_view _skinName) |
| 237 | { |
| 238 | for (auto& widgetType : mWidgetTypes) |
| 239 | { |
| 240 | for (const auto& skin : widgetType->skin) |
| 241 | { |
| 242 | if (skin == _skinName) |
| 243 | return widgetType; |
| 244 | } |
| 245 | } |
| 246 | |
| 247 | return nullptr; |
| 248 | } |
| 249 | |
| 250 | void WidgetTypes::updateDepth() |
| 251 | { |