mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2025-09-07 11:30:05 +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:
@@ -408,7 +408,7 @@ Rectangle {
|
||||
}
|
||||
delegate: ItemDelegate {
|
||||
id: comboItemDelegate
|
||||
width: comboItemPopup.width
|
||||
width: comboItemPopup.width -20
|
||||
contentItem: Text {
|
||||
text: name
|
||||
color: theme.textColor
|
||||
@@ -417,7 +417,8 @@ Rectangle {
|
||||
verticalAlignment: Text.AlignVCenter
|
||||
}
|
||||
background: Rectangle {
|
||||
color: highlighted ? theme.lightContrast : theme.darkContrast
|
||||
radius: 10
|
||||
color: highlighted ? theme.menuHighlightColor : theme.menuBackgroundColor
|
||||
}
|
||||
highlighted: comboBox.highlightedIndex === index
|
||||
}
|
||||
@@ -451,7 +452,9 @@ Rectangle {
|
||||
}
|
||||
|
||||
background: Rectangle {
|
||||
color: theme.controlBackground
|
||||
border.color: theme.menuBorderColor
|
||||
border.width: 1
|
||||
color: theme.menuBackgroundColor
|
||||
radius: 10
|
||||
}
|
||||
}
|
||||
@@ -888,9 +891,7 @@ Rectangle {
|
||||
color: {
|
||||
if (!currentChat.isServer)
|
||||
return theme.textColor
|
||||
if (name === qsTr("Response: "))
|
||||
return theme.white
|
||||
return theme.black
|
||||
return theme.white
|
||||
}
|
||||
wrapMode: Text.WordWrap
|
||||
textFormat: TextEdit.PlainText
|
||||
|
Reference in New Issue
Block a user