-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
skins/QMLSkin: Add support for maximized library #3937
Changes from all commits
5071692
e792d2b
ba09cf9
03e28a0
c0e727a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import QtQuick 2.12 | ||
|
||
Behavior { | ||
id: root | ||
|
||
// Starting with QtQuick 2.15, we can use targetProperty.object here | ||
property Item fadeTarget | ||
|
||
SequentialAnimation { | ||
// If the opacity is 1, animate it down to 0 | ||
NumberAnimation { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. assuming you don't need to access the opacity during the animation, you can try to use an OpacityAnimator instead. Not sure if that works when used as a value interceptor like in this case though... There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If you want to try that out, feel free to do that in a follow up. I struggled far too long with these animations (I initially planned to reanchor the cue/play button and the overview, too), but didn't manage to make it look good. |
||
target: root.fadeTarget | ||
property: "opacity" | ||
from: 1 | ||
to: 0 | ||
easing.type: Easing.InQuad | ||
duration: 150 | ||
} | ||
|
||
// Actually change the property value (i.e. "visible") | ||
PropertyAction { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I know you've taken this code from some example code on the Behavior Type but I still struggle to understand it... There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Added some comments. |
||
} | ||
|
||
// If the opacity is 0, animate it up to 1 | ||
NumberAnimation { | ||
target: root.fadeTarget | ||
from: 0 | ||
to: 1 | ||
property: "opacity" | ||
easing.type: Easing.OutQuad | ||
duration: 150 | ||
} | ||
|
||
} | ||
|
||
} |
This file was deleted.
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is it possible to deduplicate this State by making the first one reversible?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added a comment why this is not possible.