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:
3Simplex
2024-07-10 10:36:20 -04:00
committed by GitHub
parent 0de6eba69e
commit 7340bf85e3
6 changed files with 63 additions and 15 deletions

View File

@@ -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