From cb104651270f113b24e03db98c923c8d7cb2e599 Mon Sep 17 00:00:00 2001 From: Adam Treat Date: Tue, 6 Feb 2024 09:34:38 -0500 Subject: [PATCH] Make the collection dialog progress bar more readable. Signed-off-by: Adam Treat --- gpt4all-chat/qml/CollectionsDialog.qml | 2 +- gpt4all-chat/qml/Theme.qml | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/gpt4all-chat/qml/CollectionsDialog.qml b/gpt4all-chat/qml/CollectionsDialog.qml index 2374fa3d..c2ad7d20 100644 --- a/gpt4all-chat/qml/CollectionsDialog.qml +++ b/gpt4all-chat/qml/CollectionsDialog.qml @@ -121,7 +121,7 @@ MyDialog { } Label { id: speedLabel - color: theme.textColor + color: theme.progressText visible: model.indexing || model.currentEmbeddingsToIndex !== model.totalEmbeddingsToIndex anchors.verticalCenter: itemProgressBar.verticalCenter anchors.left: itemProgressBar.left diff --git a/gpt4all-chat/qml/Theme.qml b/gpt4all-chat/qml/Theme.qml index 042d4ad3..49f8343c 100644 --- a/gpt4all-chat/qml/Theme.qml +++ b/gpt4all-chat/qml/Theme.qml @@ -222,6 +222,17 @@ QtObject { } } + property color progressText: { + switch (MySettings.chatTheme) { + case "LegacyDark": + return "#ffffff"; + case "Dark": + return "#000000"; + default: + return "#000000"; + } + } + property color checkboxBorder: { switch (MySettings.chatTheme) { case "LegacyDark":