From 15d04a79169a63a6930a01f2eae91e8701f4a07e Mon Sep 17 00:00:00 2001 From: Adam Treat Date: Sun, 9 Jul 2023 14:56:54 -0400 Subject: [PATCH] Fix new version dialog ui. --- gpt4all-chat/qml/MyDialog.qml | 2 ++ gpt4all-chat/qml/NewVersionDialog.qml | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/gpt4all-chat/qml/MyDialog.qml b/gpt4all-chat/qml/MyDialog.qml index da39c821..6923a706 100644 --- a/gpt4all-chat/qml/MyDialog.qml +++ b/gpt4all-chat/qml/MyDialog.qml @@ -7,6 +7,7 @@ import QtQuick.Layouts Dialog { id: myDialog + property alias closeButtonVisible: myCloseButton.visible background: Rectangle { width: parent.width height: parent.height @@ -17,6 +18,7 @@ Dialog { } MyToolButton { + id: myCloseButton x: 0 + myDialog.width - myDialog.padding - width - 15 y: 0 - myDialog.padding + 15 z: 300 diff --git a/gpt4all-chat/qml/NewVersionDialog.qml b/gpt4all-chat/qml/NewVersionDialog.qml index ebfdeec9..9fb80e74 100644 --- a/gpt4all-chat/qml/NewVersionDialog.qml +++ b/gpt4all-chat/qml/NewVersionDialog.qml @@ -13,7 +13,8 @@ MyDialog { modal: true width: contentItem.width height: contentItem.height - padding: 10 + padding: 20 + closeButtonVisible: false Theme { id: theme