From 54e2295c214874a316d22eaedaf5c2db17b59df0 Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Fri, 2 Jun 2023 01:29:05 +0200 Subject: Fix palette access and QMediaPlayer errors --- resources/qml/components/FlatButton.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'resources/qml/components/FlatButton.qml') diff --git a/resources/qml/components/FlatButton.qml b/resources/qml/components/FlatButton.qml index a3dedf35..0636bc04 100644 --- a/resources/qml/components/FlatButton.qml +++ b/resources/qml/components/FlatButton.qml @@ -47,7 +47,7 @@ Button { font.capitalization: Font.AllUppercase font.pointSize: Math.ceil(fontMetrics.font.pointSize * 1.5) //font.capitalization: Font.AllUppercase - color: Nheko.colors.light + color: palette.light horizontalAlignment: Text.AlignHCenter verticalAlignment: Text.AlignVCenter elide: Text.ElideRight @@ -58,7 +58,7 @@ Button { //height: control.contentItem.implicitHeight * 2 //width: control.contentItem.implicitWidth * 2 radius: height / 8 - color: Qt.lighter(Nheko.colors.dark, control.down ? 1.4 : (control.hovered ? 1.2 : 1)) + color: Qt.lighter(palette.dark, control.down ? 1.4 : (control.hovered ? 1.2 : 1)) } } -- cgit 1.5.1