mirror of
https://github.com/nomic-ai/gpt4all
synced 2024-11-10 01:10:35 +00: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
|
|
}
|
|
}
|