From ce6680f0463ca769406bca7c3cff86036e6de06c Mon Sep 17 00:00:00 2001 From: Jared Van Bortel Date: Mon, 1 Jul 2024 16:46:03 -0400 Subject: [PATCH] chat: remove alt_logo.svg, tweak You/GPT4All icons (#2503) Signed-off-by: Jared Van Bortel --- gpt4all-chat/CMakeLists.txt | 1 - gpt4all-chat/icons/alt_logo.svg | 52 ----- gpt4all-chat/icons/gpt4all_transparent.svg | 254 +++------------------ gpt4all-chat/qml/ChatView.qml | 13 +- gpt4all-chat/qml/HomeView.qml | 2 +- 5 files changed, 36 insertions(+), 286 deletions(-) delete mode 100644 gpt4all-chat/icons/alt_logo.svg diff --git a/gpt4all-chat/CMakeLists.txt b/gpt4all-chat/CMakeLists.txt index 338f42f5..73bdba18 100644 --- a/gpt4all-chat/CMakeLists.txt +++ b/gpt4all-chat/CMakeLists.txt @@ -217,7 +217,6 @@ qt_add_qml_module(chat icons/gpt4all-32.png icons/gpt4all-48.png icons/you.svg - icons/alt_logo.svg ) set_target_properties(chat PROPERTIES diff --git a/gpt4all-chat/icons/alt_logo.svg b/gpt4all-chat/icons/alt_logo.svg deleted file mode 100644 index 9ecfd3ac..00000000 --- a/gpt4all-chat/icons/alt_logo.svg +++ /dev/null @@ -1,52 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/gpt4all-chat/icons/gpt4all_transparent.svg b/gpt4all-chat/icons/gpt4all_transparent.svg index 90c3d4c4..a7c0dacd 100644 --- a/gpt4all-chat/icons/gpt4all_transparent.svg +++ b/gpt4all-chat/icons/gpt4all_transparent.svg @@ -1,225 +1,31 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gpt4all-chat/qml/ChatView.qml b/gpt4all-chat/qml/ChatView.qml index 07978436..49768a06 100644 --- a/gpt4all-chat/qml/ChatView.qml +++ b/gpt4all-chat/qml/ChatView.qml @@ -789,19 +789,16 @@ Rectangle { Item { Layout.row: 0 Layout.column: 0 - Layout.alignment: Qt.AlignTop - Layout.preferredWidth: 38 - Layout.preferredHeight: 38 + Layout.alignment: Qt.AlignVCenter | Qt.AlignRight + Layout.preferredWidth: 32 + Layout.preferredHeight: 32 Image { id: logo - width: 38 - height: 38 - sourceSize.width: 64 - sourceSize.height: 64 + sourceSize: Qt.size(32, 32) fillMode: Image.PreserveAspectFit mipmap: true visible: false - source: name !== qsTr("Response: ") ? "qrc:/gpt4all/icons/you.svg" : "qrc:/gpt4all/icons/alt_logo.svg" + source: name !== qsTr("Response: ") ? "qrc:/gpt4all/icons/you.svg" : "qrc:/gpt4all/icons/gpt4all_transparent.svg" } ColorOverlay { diff --git a/gpt4all-chat/qml/HomeView.qml b/gpt4all-chat/qml/HomeView.qml index 90f00baf..34a3ee2b 100644 --- a/gpt4all-chat/qml/HomeView.qml +++ b/gpt4all-chat/qml/HomeView.qml @@ -148,7 +148,7 @@ Rectangle { Image { id: newsImg anchors.centerIn: parent - sourceSize: Qt.size(40, 40) + sourceSize: Qt.size(48, 48) mipmap: true visible: false source: "qrc:/gpt4all/icons/gpt4all_transparent.svg"