commits
tags
import QtQuick
import QtQuick.Controls
import TvLauncher
// Mörk meny med tydlig markering, styrs med upp/ner + Enter.
Menu {
id: menu
font.family: Theme.fontFamily
font.pixelSize: Theme.dp(26)
padding: Theme.dp(10)
margins: Theme.dp(20)
implicitWidth: Theme.dp(380)
background: Rectangle {
color: Theme.surface
radius: Theme.r(14)
border.color: Theme.border
border.width: Theme.dp(1)
}
delegate: MenuItem {
id: item
implicitHeight: Theme.dp(64)
Keys.onReturnPressed: item.click()
Keys.onEnterPressed: item.click()
contentItem: Text {
leftPadding: Theme.dp(20)
text: item.text
font: item.font
color: item.highlighted ? Theme.onAccent : Theme.text
verticalAlignment: Text.AlignVCenter
}
background: Rectangle {
radius: Theme.r(10)
color: item.highlighted ? Theme.accent : "transparent"
}
}
// Första valet markeras direkt så att man ser var man är med kontrollen.
onOpened: currentIndex = 0
}