mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2024-10-01 01:06:10 -04:00
45aa141189
* Style and align with a rounded border for combobox popups. * Convert this menu to use the new style as well. Signed-off-by: Adam Treat <treat.adam@gmail.com>
21 lines
417 B
QML
21 lines
417 B
QML
import QtCore
|
|
import QtQuick
|
|
import QtQuick.Controls
|
|
import QtQuick.Controls.Basic
|
|
|
|
MenuItem {
|
|
id: item
|
|
background: Rectangle {
|
|
color: item.highlighted ? theme.lightContrast : theme.darkContrast
|
|
}
|
|
|
|
contentItem: Text {
|
|
leftPadding: 10
|
|
rightPadding: 10
|
|
padding: 5
|
|
text: item.text
|
|
color: theme.textColor
|
|
font.pixelSize: theme.fontSizeLarge
|
|
}
|
|
}
|