From 97d22378ffd5ebb10d6d1e5ed891f1923ff333ba Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Sat, 10 Jan 2026 11:29:20 +0100 Subject: [PATCH] sidebar: add empty placeholder (#2804) --- .../ii/sidebarLeft/SidebarLeftContent.qml | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/dots/.config/quickshell/ii/modules/ii/sidebarLeft/SidebarLeftContent.qml b/dots/.config/quickshell/ii/modules/ii/sidebarLeft/SidebarLeftContent.qml index f3ebfd356..f9e7ec100 100644 --- a/dots/.config/quickshell/ii/modules/ii/sidebarLeft/SidebarLeftContent.qml +++ b/dots/.config/quickshell/ii/modules/ii/sidebarLeft/SidebarLeftContent.qml @@ -48,6 +48,7 @@ Item { spacing: sidebarPadding Toolbar { + visible: tabButtonList.length > 0 Layout.alignment: Qt.AlignHCenter enableShadow: false ToolbarTabBar { @@ -83,9 +84,10 @@ Item { } contentChildren: [ - ...((root.aiChatEnabled || (!root.translatorEnabled && !root.animeEnabled)) ? [aiChat.createObject()] : []), + ...(root.aiChatEnabled ? [aiChat.createObject()] : []), ...(root.translatorEnabled ? [translator.createObject()] : []), - ...(root.animeEnabled ? [anime.createObject()] : []) + ...(root.animeEnabled ? [anime.createObject()] : []), + ...(root.tabButtonList.length === 0 ? [placeholder.createObject()] : []) ] } } @@ -102,6 +104,15 @@ Item { id: anime Anime {} } - + Component { + id: placeholder + Item { + StyledText { + anchors.centerIn: parent + text: Translation.tr("Enjoy your empty sidebar...") + color: Appearance.colors.colSubtext + } + } + } } } \ No newline at end of file