mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2025-09-12 05:49:07 +00:00
Remove binary state from high-level API and use Jinja templates (#3147)
Signed-off-by: Jared Van Bortel <jared@nomic.ai> Signed-off-by: Adam Treat <treat.adam@gmail.com> Co-authored-by: Adam Treat <treat.adam@gmail.com>
This commit is contained in:
@@ -64,6 +64,9 @@ QtObject {
|
||||
property color green800: Qt.hsla(123/360, 0.17, 0.24)
|
||||
property color green900: Qt.hsla(124/360, 0.17, 0.20)
|
||||
property color green950: Qt.hsla(125/360, 0.22, 0.10)
|
||||
property color green300_sat: Qt.hsla(122/360, 0.24, 0.73)
|
||||
property color green400_sat: Qt.hsla(122/360, 0.23, 0.58)
|
||||
property color green450_sat: Qt.hsla(122/360, 0.23, 0.52)
|
||||
|
||||
// yellow
|
||||
property color yellow0: Qt.hsla(47/360, 0.90, 0.99)
|
||||
@@ -99,6 +102,7 @@ QtObject {
|
||||
property color purple200: Qt.hsla(279/360, 1.0, 0.91)
|
||||
property color purple300: Qt.hsla(279/360, 1.0, 0.84)
|
||||
property color purple400: Qt.hsla(279/360, 1.0, 0.73)
|
||||
property color purple450: Qt.hsla(279/360, 1.0, 0.68)
|
||||
property color purple500: Qt.hsla(279/360, 1.0, 0.63)
|
||||
property color purple600: Qt.hsla(279/360, 1.0, 0.53)
|
||||
property color purple700: Qt.hsla(279/360, 1.0, 0.47)
|
||||
@@ -408,6 +412,39 @@ QtObject {
|
||||
}
|
||||
}
|
||||
|
||||
property color mediumButtonBackground: {
|
||||
switch (MySettings.chatTheme) {
|
||||
case MySettingsEnums.ChatTheme.LegacyDark:
|
||||
return purple400
|
||||
case MySettingsEnums.ChatTheme.Dark:
|
||||
return green400_sat
|
||||
default:
|
||||
return green400_sat
|
||||
}
|
||||
}
|
||||
|
||||
property color mediumButtonBackgroundHovered: {
|
||||
switch (MySettings.chatTheme) {
|
||||
case MySettingsEnums.ChatTheme.LegacyDark:
|
||||
return purple450
|
||||
case MySettingsEnums.ChatTheme.Dark:
|
||||
return green450_sat
|
||||
default:
|
||||
return green300_sat
|
||||
}
|
||||
}
|
||||
|
||||
property color mediumButtonText: {
|
||||
switch (MySettings.chatTheme) {
|
||||
case MySettingsEnums.ChatTheme.LegacyDark:
|
||||
return textColor
|
||||
case MySettingsEnums.ChatTheme.Dark:
|
||||
return textColor
|
||||
default:
|
||||
return white
|
||||
}
|
||||
}
|
||||
|
||||
property color darkButtonText: {
|
||||
switch (MySettings.chatTheme) {
|
||||
case MySettingsEnums.ChatTheme.LegacyDark:
|
||||
@@ -922,16 +959,8 @@ QtObject {
|
||||
}
|
||||
}
|
||||
|
||||
property color textErrorColor: {
|
||||
switch (MySettings.chatTheme) {
|
||||
case MySettingsEnums.ChatTheme.LegacyDark:
|
||||
return red400
|
||||
case MySettingsEnums.ChatTheme.Dark:
|
||||
return red400
|
||||
default:
|
||||
return red400
|
||||
}
|
||||
}
|
||||
readonly property color textErrorColor: red400
|
||||
readonly property color textWarningColor: yellow400
|
||||
|
||||
property color settingsTitleTextColor: {
|
||||
switch (MySettings.chatTheme) {
|
||||
|
Reference in New Issue
Block a user