| 38 | } |
| 39 | |
| 40 | MultiGraph::MultiGraph(Widget* parent, string_view caption) : Widget{parent}, mCaption{caption} { |
| 41 | mBackgroundColor = Color(20, 128); |
| 42 | mForegroundColor = Color(255, 192, 0, 128); |
| 43 | mTextColor = Color(240, 192); |
| 44 | |
| 45 | m_preferred_size_depends_on_size = false; |
| 46 | } |
| 47 | |
| 48 | Vector2i MultiGraph::preferred_size_impl(NVGcontext*) const { return Vector2i(180, 80); } |
| 49 |