From 6beb39bea8dfa335e1c8f61d0d30e43527ef6703 Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Fri, 29 Sep 2023 05:43:07 -0500 Subject: [PATCH] adding details to TextBackground --- src/qml/presenter/TextBackground.qml | 12 ++++++++++++ src/resources.qrc | 1 + src/rust/songs/song_model.rs | 4 ++-- 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/src/qml/presenter/TextBackground.qml b/src/qml/presenter/TextBackground.qml index 0ba3fcd..bdf88a0 100644 --- a/src/qml/presenter/TextBackground.qml +++ b/src/qml/presenter/TextBackground.qml @@ -1,6 +1,8 @@ import QtQuick 2.13 +import QtGraphicalEffects 1.15 Rectangle { + id: root // Used for property var control property bool errorCondition @@ -17,4 +19,14 @@ Rectangle { else return Kirigami.Theme.positiveColor } + + DropShadow { + id: shadow + source: root + horizontalOffset: 2 + verticalOffset: 2 + radius: 3 + samples: 8 + color: "black" + } } diff --git a/src/resources.qrc b/src/resources.qrc index 93572fb..d944bcc 100644 --- a/src/resources.qrc +++ b/src/resources.qrc @@ -24,6 +24,7 @@ qml/presenter/Settings.qml qml/presenter/RangedSlider.qml qml/presenter/NewVideo.qml + qml/presenter/TextBackground.qml assets/parallel.jpg assets/black.jpg diff --git a/src/rust/songs/song_model.rs b/src/rust/songs/song_model.rs index a118c37..10b14d5 100644 --- a/src/rust/songs/song_model.rs +++ b/src/rust/songs/song_model.rs @@ -536,8 +536,8 @@ pub mod song_model { song.background = updated_background.to_string(); debug!( - background = updated_background, - model_index = model_index, + background = ?updated_background, + model_index = ?model_index, roles = vector_roles.get(0) ); self.as_mut().emit_data_changed(