benchmark_toolbox: reorganize tabs

This commit is contained in:
souldbminersmwc committed 2026-06-11 19:07:14 -04:00
1 parent 65eb5f8903
commit 319fa2bf8f
5 files changed
+36 -7

No files matched your search

@@ -157,6 +157,19 @@ void Sidebar::addItem(std::string label, GenericEvent::Callback focusCallback)
this->contentBox->addView(item);
}
void Sidebar::addHeader(std::string label)
{
Label* header = new Label();
header->setText(label);
header->setFontSize(15.0f);
header->setTextColor(nvgRGB(120, 130, 140));
header->setMarginTop(18.0f);
header->setMarginBottom(4.0f);
header->setMarginLeft(12.0f);
this->contentBox->addView(header);
}
void Sidebar::addSeparator()
{
this->contentBox->addView(new SidebarSeparator());
@@ -75,6 +75,11 @@ void TabFrame::addTab(std::string label, TabViewCreator creator)
});
}
void TabFrame::addHeader(std::string label)
{
this->sidebar->addHeader(label);
}
void TabFrame::addSeparator()
{
this->sidebar->addSeparator();