adding details to TextBackground

This commit is contained in:
Chris Cochrun 2023-09-29 05:43:07 -05:00
parent 7e6e8c71e0
commit 6beb39bea8
3 changed files with 15 additions and 2 deletions

View file

@ -1,6 +1,8 @@
import QtQuick 2.13 import QtQuick 2.13
import QtGraphicalEffects 1.15
Rectangle { Rectangle {
id: root
// Used for // Used for
property var control property var control
property bool errorCondition property bool errorCondition
@ -17,4 +19,14 @@ Rectangle {
else else
return Kirigami.Theme.positiveColor return Kirigami.Theme.positiveColor
} }
DropShadow {
id: shadow
source: root
horizontalOffset: 2
verticalOffset: 2
radius: 3
samples: 8
color: "black"
}
} }

View file

@ -24,6 +24,7 @@
<file>qml/presenter/Settings.qml</file> <file>qml/presenter/Settings.qml</file>
<file>qml/presenter/RangedSlider.qml</file> <file>qml/presenter/RangedSlider.qml</file>
<file>qml/presenter/NewVideo.qml</file> <file>qml/presenter/NewVideo.qml</file>
<file>qml/presenter/TextBackground.qml</file>
<file>assets/parallel.jpg</file> <file>assets/parallel.jpg</file>
<file>assets/black.jpg</file> <file>assets/black.jpg</file>
</qresource> </qresource>

View file

@ -536,8 +536,8 @@ pub mod song_model {
song.background = song.background =
updated_background.to_string(); updated_background.to_string();
debug!( debug!(
background = updated_background, background = ?updated_background,
model_index = model_index, model_index = ?model_index,
roles = vector_roles.get(0) roles = vector_roles.get(0)
); );
self.as_mut().emit_data_changed( self.as_mut().emit_data_changed(