From 01bd9f659de215f9d099b71da8c14a0c9cd04e22 Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Mon, 6 Jan 2020 18:24:50 +0100 Subject: [PATCH] Adapt play buttons to theme and remove accidental message bg --- resources/qml/TimelineView.qml | 1 + resources/qml/delegates/PlayableMediaMessage.qml | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/resources/qml/TimelineView.qml b/resources/qml/TimelineView.qml index 0be8609d..3ad8ce7d 100644 --- a/resources/qml/TimelineView.qml +++ b/resources/qml/TimelineView.qml @@ -85,6 +85,7 @@ Item { property Item section width: chat.width height: section ? section.height + timelinerow.height : timelinerow.height + color: "transparent" TimelineRow { id: timelinerow diff --git a/resources/qml/delegates/PlayableMediaMessage.qml b/resources/qml/delegates/PlayableMediaMessage.qml index d0d4d7cb..b3275462 100644 --- a/resources/qml/delegates/PlayableMediaMessage.qml +++ b/resources/qml/delegates/PlayableMediaMessage.qml @@ -89,7 +89,7 @@ Rectangle { id: img anchors.centerIn: parent - source: "qrc:/icons/icons/ui/arrow-pointing-down.png" + source: "image://colorimage/:/icons/icons/ui/arrow-pointing-down.png?"+colors.dark fillMode: Image.Pad } @@ -132,11 +132,11 @@ Rectangle { states: [ State { name: "stopped" - PropertyChanges { target: img; source: "qrc:/icons/icons/ui/play-sign.png" } + PropertyChanges { target: img; source: "image://colorimage/:/icons/icons/ui/play-sign.png?"+colors.dark } }, State { name: "playing" - PropertyChanges { target: img; source: "qrc:/icons/icons/ui/pause-symbol.png" } + PropertyChanges { target: img; source: "image://colorimage/:/icons/icons/ui/pause-symbol.png?"+colors.dark } } ] }