Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Small tweaks to the timeline palette

parent aabb41b2
......@@ -159,7 +159,7 @@ Rectangle {
labelRect.x = scrollX > modelStart * timeScale ? scrollX - modelStart * timeScale : 0
}
border.color: selected? activePalette.highlight : grouped ? root.audioColor : borderColor
border.color: selected? activePalette.highlight : grouped ? root.groupColor : borderColor
border.width: isGrabbed ? 8 : 1.5
function updateDrag() {
......@@ -422,7 +422,7 @@ Rectangle {
when: clipRoot.selected === true
PropertyChanges {
target: clipRoot
color: Qt.lighter(getColor(), 1.4)
color: Qt.lighter(getColor(), 2)
z: 3
}
}
......
......@@ -189,7 +189,7 @@ Item {
anchors.topMargin: displayHeight * 1.2
height: displayHeight * 1.3
color: Qt.darker('mediumpurple')
border.color: selected? 'red' : borderColor
border.color: selected ? activePalette.highlight : grouped ? root.groupColor : borderColor
border.width: isGrabbed ? 8 : 1.5
opacity: dragProxyArea.drag.active && dragProxy.draggedItem == clipId ? 0.5 : 1.0
Item {
......
......@@ -173,6 +173,7 @@ Rectangle {
property color audioColor: timeline.audioColor
property color videoColor: timeline.videoColor
property color neutralColor: timeline.neutralColor
property color groupColor: timeline.groupColor
property int clipBeingDroppedId: -1
property string clipBeingDroppedData
property int droppedPosition: -1
......
......@@ -2452,7 +2452,7 @@ void TimelineController::updateEffectKeyframe(int cid, int oldFrame, int newFram
QColor TimelineController::videoColor() const
{
KColorScheme scheme(QApplication::palette().currentColorGroup(), KColorScheme::View);
return scheme.background(KColorScheme::LinkBackground).color();
return scheme.background(KColorScheme::LinkBackground).color().darker();
}
QColor TimelineController::audioColor() const
......@@ -2466,3 +2466,9 @@ QColor TimelineController::neutralColor() const
KColorScheme scheme(QApplication::palette().currentColorGroup(), KColorScheme::View);
return scheme.background(KColorScheme::VisitedBackground).color();
}
QColor TimelineController::groupColor() const
{
KColorScheme scheme(QApplication::palette().currentColorGroup(), KColorScheme::Complementary);
return scheme.background(KColorScheme::NegativeBackground).color();
}
......@@ -69,6 +69,7 @@ class TimelineController : public QObject
Q_PROPERTY(QColor videoColor READ videoColor NOTIFY colorsChanged)
Q_PROPERTY(QColor audioColor READ audioColor NOTIFY colorsChanged)
Q_PROPERTY(QColor neutralColor READ neutralColor NOTIFY colorsChanged)
Q_PROPERTY(QColor groupColor READ groupColor NOTIFY colorsChanged)
public:
TimelineController(QObject *parent);
......@@ -121,6 +122,7 @@ public:
Q_INVOKABLE QColor videoColor() const;
Q_INVOKABLE QColor audioColor() const;
Q_INVOKABLE QColor neutralColor() const;
Q_INVOKABLE QColor groupColor() const;
/* @brief Request a seek operation
@param position is the desired new timeline position
*/
......
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