Make compositions use less vertical space, expand when selected.

parent eb4fc227
......@@ -201,8 +201,8 @@ Item {
anchors.top: compositionRoot.top
anchors.right: compositionRoot.right
anchors.left: compositionRoot.left
anchors.topMargin: displayHeight * 1.2
height: parentTrack.height - displayHeight * 1.2 + Logic.getTrackHeightByPos(Logic.getTrackIndexFromId(parentTrack.trackInternalId) + 1) / 3
anchors.topMargin: displayHeight
height: parentTrack.height - displayHeight + (compositionRoot.selected ? Math.min(Logic.getTrackHeightByPos(Logic.getTrackIndexFromId(parentTrack.trackInternalId) + 1) / 3, root.baseUnit) : 0)
color: selected ? 'mediumpurple' : Qt.darker('mediumpurple')
border.color: selected ? root.selectionColor : grouped ? root.groupColor : borderColor
border.width: isGrabbed ? 8 : 1.5
......
......@@ -358,7 +358,7 @@ Item{
Component {
id: compositionDelegate
Composition {
displayHeight: trackRoot.height / 2
displayHeight: Math.max(trackRoot.height / 2, trackRoot.height - (root.baseUnit * 2))
opacity: 0.8
selected: root.timelineSelection.indexOf(clipId) !== -1
onTrimmingIn: {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment