UI: Add close button to tab bar

This commit is contained in:
Luke Street
2026-05-03 18:29:08 -06:00
parent ef02037990
commit 7fbfe5ad88
8 changed files with 136 additions and 8 deletions
+1
View File
@@ -40,6 +40,7 @@ const Rml::String kDocumentSource = R"RML(
Window::Window() : Document(kDocumentSource), mRoot(mDocument->GetElementById("window")) {
mTabBar = std::make_unique<TabBar>(mRoot, TabBar::Props{
.onClose = [this] { pop(); },
.selectedTabIndex = 0,
.autoSelect = true,
});