From 238b2f3ea33f88e0adba22bbce93b0af8670eb67 Mon Sep 17 00:00:00 2001 From: Eric Handley Date: Thu, 27 Nov 2025 22:44:44 -0800 Subject: [PATCH] feat: add category tab bar UI to emoji selector --- Modules/Panels/Launcher/Launcher.qml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/Modules/Panels/Launcher/Launcher.qml b/Modules/Panels/Launcher/Launcher.qml index 00537379..c6a649f1 100644 --- a/Modules/Panels/Launcher/Launcher.qml +++ b/Modules/Panels/Launcher/Launcher.qml @@ -586,6 +586,33 @@ SmartPanel { } } + // Emoji category tabs (shown when in browsing mode) + NTabBar { + id: emojiCategoryTabs + visible: root.activePlugin === emojiPlugin && emojiPlugin.isBrowsingMode + Layout.fillWidth: true + currentIndex: { + if (visible && emojiPlugin.categories) { + return emojiPlugin.categories.indexOf(emojiPlugin.selectedCategory); + } + return 0; + } + + Repeater { + model: emojiPlugin.categories + NIconTabButton { + required property string modelData + required property int index + icon: emojiPlugin.categoryIcons[modelData] || "star" + tabIndex: index + checked: emojiCategoryTabs.currentIndex === index + onClicked: { + emojiPlugin.selectCategory(modelData); + } + } + } + } + Loader { id: resultsViewLoader Layout.fillWidth: true