From d330020fddb22dc7cfddd298ef00e3f3829aa691 Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Mon, 3 Feb 2020 19:21:03 +0100 Subject: Improve styling a bit --- resources/qml/delegates/FileMessage.qml | 2 +- resources/qml/delegates/Pill.qml | 2 +- resources/qml/delegates/PlayableMediaMessage.qml | 11 ++++++----- 3 files changed, 8 insertions(+), 7 deletions(-) (limited to 'resources/qml/delegates') diff --git a/resources/qml/delegates/FileMessage.qml b/resources/qml/delegates/FileMessage.qml index 9a5300bb..2fe0a490 100644 --- a/resources/qml/delegates/FileMessage.qml +++ b/resources/qml/delegates/FileMessage.qml @@ -3,7 +3,7 @@ import QtQuick.Layouts 1.2 Rectangle { radius: 10 - color: colors.dark + color: colors.base height: row.height + 24 width: parent ? parent.width : undefined diff --git a/resources/qml/delegates/Pill.qml b/resources/qml/delegates/Pill.qml index 53a9684e..b19d9a54 100644 --- a/resources/qml/delegates/Pill.qml +++ b/resources/qml/delegates/Pill.qml @@ -9,6 +9,6 @@ Label { width: contentWidth * 1.2 background: Rectangle { radius: parent.height / 2 - color: colors.dark + color: colors.base } } diff --git a/resources/qml/delegates/PlayableMediaMessage.qml b/resources/qml/delegates/PlayableMediaMessage.qml index 50202098..a4096864 100644 --- a/resources/qml/delegates/PlayableMediaMessage.qml +++ b/resources/qml/delegates/PlayableMediaMessage.qml @@ -8,7 +8,7 @@ import im.nheko 1.0 Rectangle { id: bg radius: 10 - color: colors.dark + color: colors.base height: content.height + 24 width: parent ? parent.width : undefined @@ -83,15 +83,16 @@ Rectangle { Rectangle { id: button - color: colors.light + color: colors.window radius: 22 height: 44 width: 44 Image { id: img anchors.centerIn: parent + z: 3 - source: "image://colorimage/:/icons/icons/ui/arrow-pointing-down.png?"+colors.dark + source: "image://colorimage/:/icons/icons/ui/arrow-pointing-down.png?"+colors.text fillMode: Image.Pad } @@ -134,11 +135,11 @@ Rectangle { states: [ State { name: "stopped" - PropertyChanges { target: img; source: "image://colorimage/:/icons/icons/ui/play-sign.png?"+colors.dark } + PropertyChanges { target: img; source: "image://colorimage/:/icons/icons/ui/play-sign.png?"+colors.text } }, State { name: "playing" - PropertyChanges { target: img; source: "image://colorimage/:/icons/icons/ui/pause-symbol.png?"+colors.dark } + PropertyChanges { target: img; source: "image://colorimage/:/icons/icons/ui/pause-symbol.png?"+colors.text } } ] } -- cgit 1.5.1