mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2025-09-17 00:08:39 +00:00
Update theme for menus (#2578)
* Add radius to selected menu items, adust width to fit. Update colors. * Fix server text color in chatview. Signed-off-by: 3simplex <10260755+3Simplex@users.noreply.github.com>
This commit is contained in:
@@ -128,6 +128,10 @@ QtObject {
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
These nolonger apply to anything (remove this?)
|
||||
Replaced by menuHighlightColor & menuBackgroundColor now using different colors.
|
||||
|
||||
property color darkContrast: {
|
||||
switch (MySettings.chatTheme) {
|
||||
case "LegacyDark":
|
||||
@@ -149,7 +153,7 @@ QtObject {
|
||||
return gray0
|
||||
}
|
||||
}
|
||||
|
||||
*/
|
||||
property color controlBorder: {
|
||||
switch (MySettings.chatTheme) {
|
||||
case "LegacyDark":
|
||||
@@ -219,6 +223,8 @@ QtObject {
|
||||
return gray50
|
||||
}
|
||||
}
|
||||
/*
|
||||
These nolonger apply to anything (remove this?)
|
||||
|
||||
property color containerForeground: {
|
||||
switch (MySettings.chatTheme) {
|
||||
@@ -230,7 +236,7 @@ QtObject {
|
||||
return gray300
|
||||
}
|
||||
}
|
||||
|
||||
*/
|
||||
property color containerBackground: {
|
||||
switch (MySettings.chatTheme) {
|
||||
case "LegacyDark":
|
||||
@@ -1164,6 +1170,39 @@ QtObject {
|
||||
}
|
||||
}
|
||||
|
||||
property color menuBackgroundColor: {
|
||||
switch (MySettings.chatTheme) {
|
||||
case "LegacyDark":
|
||||
return blue700
|
||||
case "Dark":
|
||||
return darkgray200
|
||||
default:
|
||||
return gray50
|
||||
}
|
||||
}
|
||||
|
||||
property color menuHighlightColor: {
|
||||
switch (MySettings.chatTheme) {
|
||||
case "LegacyDark":
|
||||
return blue400
|
||||
case "Dark":
|
||||
return darkgray0
|
||||
default:
|
||||
return green100
|
||||
}
|
||||
}
|
||||
|
||||
property color menuBorderColor: {
|
||||
switch (MySettings.chatTheme) {
|
||||
case "LegacyDark":
|
||||
return blue400
|
||||
case "Dark":
|
||||
return gray800
|
||||
default:
|
||||
return gray300
|
||||
}
|
||||
}
|
||||
|
||||
property real fontScale: MySettings.fontSize === "Small" ? 1 :
|
||||
MySettings.fontSize === "Medium" ? 1.3 :
|
||||
/* "Large" */ 1.8
|
||||
|
Reference in New Issue
Block a user