Skip to content
Snippets Groups Projects
Commit 49fadff8 authored by Pierre Lamot's avatar Pierre Lamot Committed by Steve Lhomme
Browse files

qml: fix bad color cast in TeletextWidget

parent 3a6ab3fb
No related branches found
No related tags found
1 merge request!5889qml: fix bad color cast in TeletextWidget
Pipeline #503514 passed with stage
in 11 minutes and 52 seconds
......@@ -40,7 +40,7 @@ T.Pane {
Keys.priority: Keys.AfterItem
Keys.onPressed: (event) => Navigation.defaultKeyAction(event)
function _teletextButtonColor(item, base)
function _teletextButtonColor(item : Item, base : color) : color
{
if (!item.enabled)
return base.alpha(0.2)
......@@ -196,7 +196,7 @@ T.Pane {
description: qsTr("Red key")
color: root._teletextButtonColor(this, "red")
color: root._teletextButtonColor(this, Qt.color("red"))
Navigation.parentItem: root
Navigation.leftItem: indexKeyBtn
......@@ -215,7 +215,7 @@ T.Pane {
description: qsTr("Green key")
color: root._teletextButtonColor(this, "green")
color: root._teletextButtonColor(this, Qt.color("green"))
Navigation.parentItem: root
Navigation.leftItem: redKeyBtn
......@@ -234,7 +234,7 @@ T.Pane {
description: qsTr("Yellow key")
color: root._teletextButtonColor(this, "yellow")
color: root._teletextButtonColor(this, Qt.color("yellow"))
Navigation.parentItem: root
Navigation.leftItem: greenKeyBtn
......@@ -253,7 +253,7 @@ T.Pane {
description: qsTr("Blue key")
color: root._teletextButtonColor(this, "blue")
color: root._teletextButtonColor(this, Qt.color("blue"))
Navigation.parentItem: root
Navigation.leftItem: yellowKeyBtn
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment