From ada5ee2ddc5f4e6d3b0b0e825810786bc4586c19 Mon Sep 17 00:00:00 2001 From: Lemmy Date: Tue, 16 Dec 2025 18:56:55 -0500 Subject: [PATCH] PluginsTab: improved tabbar --- Modules/Panels/Settings/Tabs/PluginsTab.qml | 5 +++-- Modules/Panels/Wallpaper/WallpaperPanel.qml | 1 + Widgets/NTabBar.qml | 2 +- Widgets/NTabButton.qml | 4 ++-- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/Modules/Panels/Settings/Tabs/PluginsTab.qml b/Modules/Panels/Settings/Tabs/PluginsTab.qml index 3218b884d..4c91eecdc 100644 --- a/Modules/Panels/Settings/Tabs/PluginsTab.qml +++ b/Modules/Panels/Settings/Tabs/PluginsTab.qml @@ -383,6 +383,7 @@ ColumnLayout { NTabBar { id: filterTabBar Layout.fillWidth: true + spacing: Style.marginM currentIndex: 0 onCurrentIndexChanged: { if (currentIndex === 0) @@ -392,7 +393,6 @@ ColumnLayout { else if (currentIndex === 2) pluginFilter = "notDownloaded"; } - spacing: Style.marginXS NTabButton { text: I18n.tr("settings.plugins.filter.all") @@ -407,6 +407,7 @@ ColumnLayout { } NTabButton { + Layout.fillWidth: true text: I18n.tr("settings.plugins.filter.not-downloaded") tabIndex: 2 checked: pluginFilter === "notDownloaded" @@ -416,7 +417,7 @@ ColumnLayout { NIconButton { icon: "refresh" tooltipText: I18n.tr("settings.plugins.refresh.tooltip") - baseSize: Style.baseWidgetSize * 0.8 + baseSize: Style.baseWidgetSize * 0.9 onClicked: { PluginService.refreshAvailablePlugins(); checkUpdatesTimer.restart(); diff --git a/Modules/Panels/Wallpaper/WallpaperPanel.qml b/Modules/Panels/Wallpaper/WallpaperPanel.qml index f69698a80..f83732892 100644 --- a/Modules/Panels/Wallpaper/WallpaperPanel.qml +++ b/Modules/Panels/Wallpaper/WallpaperPanel.qml @@ -308,6 +308,7 @@ SmartPanel { NTabButton { required property var modelData required property int index + Layout.fillWidth: true text: modelData.name || `Screen ${index + 1}` tabIndex: index checked: { diff --git a/Widgets/NTabBar.qml b/Widgets/NTabBar.qml index fecbefa90..8cbb11c6d 100644 --- a/Widgets/NTabBar.qml +++ b/Widgets/NTabBar.qml @@ -14,7 +14,7 @@ Rectangle { default property alias content: tabRow.children // Styling - Layout.fillWidth: true + implicitWidth: tabRow.implicitWidth + (margins * 2) implicitHeight: Style.baseWidgetSize + (margins * 2) color: Color.mSurfaceVariant radius: Style.iRadiusS diff --git a/Widgets/NTabButton.qml b/Widgets/NTabButton.qml index b8e1f3c98..361a49f87 100644 --- a/Widgets/NTabButton.qml +++ b/Widgets/NTabButton.qml @@ -18,9 +18,9 @@ Rectangle { signal clicked // Sizing - Layout.fillWidth: true Layout.fillHeight: true - Layout.minimumWidth: 140 + Layout.minimumWidth: 100 + implicitWidth: tabText.implicitWidth + Style.marginXL * 2 // Styling radius: Style.iRadiusM