From a7f8b23b524c5e3af72e42fde118706e94a454f3 Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Thu, 13 May 2021 08:23:56 +0200 Subject: Make palette global in Qml --- resources/qml/voip/CallDevices.qml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'resources/qml/voip/CallDevices.qml') diff --git a/resources/qml/voip/CallDevices.qml b/resources/qml/voip/CallDevices.qml index 11644797..824bb2e0 100644 --- a/resources/qml/voip/CallDevices.qml +++ b/resources/qml/voip/CallDevices.qml @@ -9,7 +9,7 @@ import im.nheko 1.0 Popup { modal: true - palette: colors + palette: Nheko.colors // only set the anchors on Qt 5.12 or higher // see https://doc.qt.io/qt-5/qml-qtquick-controls2-popup.html#anchors.centerIn-prop Component.onCompleted: { @@ -31,7 +31,7 @@ Popup { Image { Layout.preferredWidth: 22 Layout.preferredHeight: 22 - source: "image://colorimage/:/icons/icons/ui/microphone-unmute.png?" + colors.windowText + source: "image://colorimage/:/icons/icons/ui/microphone-unmute.png?" + Nheko.colors.windowText } ComboBox { @@ -49,7 +49,7 @@ Popup { Image { Layout.preferredWidth: 22 Layout.preferredHeight: 22 - source: "image://colorimage/:/icons/icons/ui/video-call.png?" + colors.windowText + source: "image://colorimage/:/icons/icons/ui/video-call.png?" + Nheko.colors.windowText } ComboBox { @@ -81,8 +81,8 @@ Popup { } background: Rectangle { - color: colors.window - border.color: colors.windowText + color: Nheko.colors.window + border.color: Nheko.colors.windowText } } -- cgit 1.5.1