From 064b0581a7487d833e155bbc9f22edfd16c4ddbd Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Thu, 14 Mar 2024 19:22:31 -0400 Subject: [PATCH] Make the tabs in developer tools full-width It looks slightly better, and since there's only four tabs it increases the tappable area for them. --- src/qml/DevtoolsPage.qml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/qml/DevtoolsPage.qml b/src/qml/DevtoolsPage.qml index d1e54292a..04dc6cc0f 100644 --- a/src/qml/DevtoolsPage.qml +++ b/src/qml/DevtoolsPage.qml @@ -23,17 +23,27 @@ FormCard.FormCardPage { header: QQC2.TabBar { id: tabBar + readonly property real tabWidth: tabBar.width / tabBar.count + QQC2.TabButton { text: qsTr("Room Data") + + implicitWidth: tabBar.tabWidth } QQC2.TabButton { text: qsTr("Server Info") + + implicitWidth: tabBar.tabWidth } QQC2.TabButton { text: i18nc("@title:tab", "Account Data") + + implicitWidth: tabBar.tabWidth } QQC2.TabButton { text: i18nc("@title:tab", "Feature Flags") + + implicitWidth: tabBar.tabWidth } }