From 88f5face2b06255beb92c446ecde70eeec93015f Mon Sep 17 00:00:00 2001 From: Adam Treat Date: Wed, 26 Jun 2024 13:48:02 -0400 Subject: [PATCH] Change section headers to be lighter and smaller as per Vincent. Signed-off-by: Adam Treat --- gpt4all-chat/qml/ChatDrawer.qml | 4 ++-- gpt4all-chat/qml/Theme.qml | 12 ++++++++++++ 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/gpt4all-chat/qml/ChatDrawer.qml b/gpt4all-chat/qml/ChatDrawer.qml index 380e974d..c00291d4 100644 --- a/gpt4all-chat/qml/ChatDrawer.qml +++ b/gpt4all-chat/qml/ChatDrawer.qml @@ -109,8 +109,8 @@ Rectangle { topPadding: 15 bottomPadding: 5 text: parent.section - color: theme.styledTextColor - font.pixelSize: theme.fontSizeLarge + color: theme.chatDrawerSectionHeader + font.pixelSize: theme.fontSizeSmaller } } } diff --git a/gpt4all-chat/qml/Theme.qml b/gpt4all-chat/qml/Theme.qml index 5b4c799e..2de24404 100644 --- a/gpt4all-chat/qml/Theme.qml +++ b/gpt4all-chat/qml/Theme.qml @@ -65,6 +65,7 @@ QtObject { property color green950: Qt.hsla(125/360, 0.22, 0.10) // yellow + property color yellow0: Qt.hsla(47/360, 0.90, 0.99) property color yellow25: Qt.hsla(47/360, 0.90, 0.98) property color yellow50: Qt.hsla(47/360, 0.90, 0.96) property color yellow100: Qt.hsla(46/360, 0.89, 0.89) @@ -980,6 +981,17 @@ QtObject { } } + property color chatDrawerSectionHeader: { + switch (MySettings.chatTheme) { + case "LegacyDark": + return purple50 + case "Dark": + return yellow0 + default: + return grayRed800; + } + } + property color dialogBorder: { switch (MySettings.chatTheme) { case "LegacyDark":