From 8ff7dd465eb1ffb291a7772fc181e5268a05c09e Mon Sep 17 00:00:00 2001 From: Adam Treat Date: Sun, 21 May 2023 15:28:23 -0400 Subject: [PATCH] Fix the tabs so they don't have a double border on the bottom. --- gpt4all-chat/qml/SettingsDialog.qml | 46 ++++++++++++++++++++++++++--- 1 file changed, 42 insertions(+), 4 deletions(-) diff --git a/gpt4all-chat/qml/SettingsDialog.qml b/gpt4all-chat/qml/SettingsDialog.qml index 31b09563..b49695b7 100644 --- a/gpt4all-chat/qml/SettingsDialog.qml +++ b/gpt4all-chat/qml/SettingsDialog.qml @@ -142,8 +142,27 @@ Dialog { } background: Rectangle { color: genSettingsButton.checked ? theme.backgroundDarkest : theme.backgroundLight - border.color: theme.tabBorder - border.width: 1 ? genSettingsButton.checked : 0 + Rectangle { + anchors.top: parent.top + anchors.left: parent.left + anchors.right: parent.right + height: 1 ? genSettingsButton.checked : 0 + color: theme.tabBorder + } + Rectangle { + anchors.top: parent.top + anchors.bottom: parent.bottom + anchors.left: parent.left + width: 1 ? genSettingsButton.checked : 0 + color: theme.tabBorder + } + Rectangle { + anchors.top: parent.top + anchors.bottom: parent.bottom + anchors.right: parent.right + width: 1 ? genSettingsButton.checked : 0 + color: theme.tabBorder + } } Accessible.role: Accessible.Button Accessible.name: qsTr("Generation settings") @@ -160,8 +179,27 @@ Dialog { } background: Rectangle { color: appSettingsButton.checked ? theme.backgroundDarkest : theme.backgroundLight - border.color: theme.tabBorder - border.width: 1 ? appSettingsButton.checked : 0 + Rectangle { + anchors.top: parent.top + anchors.left: parent.left + anchors.right: parent.right + height: 1 ? appSettingsButton.checked : 0 + color: theme.tabBorder + } + Rectangle { + anchors.top: parent.top + anchors.bottom: parent.bottom + anchors.left: parent.left + width: 1 ? appSettingsButton.checked : 0 + color: theme.tabBorder + } + Rectangle { + anchors.top: parent.top + anchors.bottom: parent.bottom + anchors.right: parent.right + width: 1 ? appSettingsButton.checked : 0 + color: theme.tabBorder + } } Accessible.role: Accessible.Button Accessible.name: qsTr("Application settings")