From ed85cd8b6ac4c0385c39b83bb7cbb226966aa2ad Mon Sep 17 00:00:00 2001 From: Jared Van Bortel Date: Wed, 28 Aug 2024 12:49:43 -0400 Subject: [PATCH] qml: dynamic min win size, smaller default size, scaling tweaks (#2904) Signed-off-by: Jared Van Bortel --- gpt4all-chat/CHANGELOG.md | 3 +++ gpt4all-chat/src/main.qml | 8 ++++---- gpt4all-chat/src/qml/HomeView.qml | 12 ++++++------ 3 files changed, 13 insertions(+), 10 deletions(-) diff --git a/gpt4all-chat/CHANGELOG.md b/gpt4all-chat/CHANGELOG.md index 987b8370..5b42240a 100644 --- a/gpt4all-chat/CHANGELOG.md +++ b/gpt4all-chat/CHANGELOG.md @@ -9,6 +9,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/). ### Added - Use greedy sampling when temperature is set to zero ([#2854](https://github.com/nomic-ai/gpt4all/pull/2854)) +### Changed +- Smaller default window size, dynamic minimum size, and scaling tweaks ([#2904](https://github.com/nomic-ai/gpt4all/pull/2904)) + ### Fixed - Bring back "Auto" option for Embeddings Device as "Application default," which went missing in v3.1.0 ([#2873](https://github.com/nomic-ai/gpt4all/pull/2873)) - Correct a few strings in the Italian translation (by [@Harvester62](https://github.com/Harvester62) in [#2872](https://github.com/nomic-ai/gpt4all/pull/2872) and [#2909](https://github.com/nomic-ai/gpt4all/pull/2909)) diff --git a/gpt4all-chat/src/main.qml b/gpt4all-chat/src/main.qml index 16b5b65c..e02141c4 100644 --- a/gpt4all-chat/src/main.qml +++ b/gpt4all-chat/src/main.qml @@ -15,10 +15,10 @@ import mysettings Window { id: window - width: 1920 - height: 1080 - minimumWidth: 1280 - minimumHeight: 720 + width: 1440 + height: 810 + minimumWidth: 658 + 470 * theme.fontScale + minimumHeight: 384 + 160 * theme.fontScale visible: true title: qsTr("GPT4All v%1").arg(Qt.application.version) diff --git a/gpt4all-chat/src/qml/HomeView.qml b/gpt4all-chat/src/qml/HomeView.qml index 780cb35a..eefff018 100644 --- a/gpt4all-chat/src/qml/HomeView.qml +++ b/gpt4all-chat/src/qml/HomeView.qml @@ -76,8 +76,8 @@ Rectangle { MyWelcomeButton { Layout.fillWidth: true - Layout.maximumWidth: 500 - Layout.preferredHeight: 150 + Layout.maximumWidth: 150 + 200 * theme.fontScale + Layout.preferredHeight: 40 + 90 * theme.fontScale text: qsTr("Start Chatting") description: qsTr("Chat with any LLM") imageSource: "qrc:/gpt4all/icons/chat.svg" @@ -87,8 +87,8 @@ Rectangle { } MyWelcomeButton { Layout.fillWidth: true - Layout.maximumWidth: 500 - Layout.preferredHeight: 150 + Layout.maximumWidth: 150 + 200 * theme.fontScale + Layout.preferredHeight: 40 + 90 * theme.fontScale text: qsTr("LocalDocs") description: qsTr("Chat with your local files") imageSource: "qrc:/gpt4all/icons/db.svg" @@ -98,8 +98,8 @@ Rectangle { } MyWelcomeButton { Layout.fillWidth: true - Layout.maximumWidth: 500 - Layout.preferredHeight: 150 + Layout.maximumWidth: 150 + 200 * theme.fontScale + Layout.preferredHeight: 40 + 90 * theme.fontScale text: qsTr("Find Models") description: qsTr("Explore and download models") imageSource: "qrc:/gpt4all/icons/models.svg"