plasma-animation-duration.patch 3.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. From 2958702524348e9e4fcbdf490be731e92b353dad Mon Sep 17 00:00:00 2001
  2. From: Nate Graham <nate@kde.org>
  3. Date: Tue, 24 Mar 2020 08:10:54 -0600
  4. Subject: Stop multiplying duration values
  5. Summary:
  6. After D28144, some animations are now too long because they were inappropriately
  7. multiplying a duration value. That's no longer necessary, so let's remove the
  8. multiplication.
  9. Depends on D28144
  10. Test Plan: Various things that were a bit too slow before feel just right now
  11. Reviewers: #vdg, #plasma, cblack
  12. Reviewed By: #vdg, #plasma, cblack
  13. Subscribers: cblack, plasma-devel
  14. Tags: #plasma
  15. Differential Revision: https://phabricator.kde.org/D28238
  16. ---
  17. applets/devicenotifier/package/contents/ui/FullRepresentation.qml | 2 +-
  18. applets/systemtray/package/contents/ui/ExpanderArrow.qml | 2 +-
  19. lookandfeel/contents/components/ActionButton.qml | 4 ++--
  20. lookandfeel/contents/components/UserDelegate.qml | 2 +-
  21. 4 files changed, 5 insertions(+), 5 deletions(-)
  22. diff --git a/applets/devicenotifier/package/contents/ui/FullRepresentation.qml b/applets/devicenotifier/package/contents/ui/FullRepresentation.qml
  23. index d15e47c..80b9c73 100644
  24. --- a/applets/devicenotifier/package/contents/ui/FullRepresentation.qml
  25. +++ b/applets/devicenotifier/package/contents/ui/FullRepresentation.qml
  26. @@ -225,7 +225,7 @@ MouseArea {
  27. popupIconTimer.restart()
  28. }
  29. }
  30. - Behavior on height { NumberAnimation { duration: units.shortDuration * 3 } }
  31. + Behavior on height { NumberAnimation { duration: units.shortDuration } }
  32. }
  33. }
  34. }
  35. diff --git a/applets/systemtray/package/contents/ui/ExpanderArrow.qml b/applets/systemtray/package/contents/ui/ExpanderArrow.qml
  36. index 9baf654..729f56b 100644
  37. --- a/applets/systemtray/package/contents/ui/ExpanderArrow.qml
  38. +++ b/applets/systemtray/package/contents/ui/ExpanderArrow.qml
  39. @@ -37,7 +37,7 @@ PlasmaCore.ToolTipArea {
  40. anchors.fill: parent
  41. onClicked: root.expanded = !root.expanded
  42. - readonly property int arrowAnimationDuration: units.shortDuration * 3
  43. + readonly property int arrowAnimationDuration: units.shortDuration
  44. PlasmaCore.Svg {
  45. id: arrowSvg
  46. diff --git a/lookandfeel/contents/components/ActionButton.qml b/lookandfeel/contents/components/ActionButton.qml
  47. index 9fbd2a8..7a66c56 100644
  48. --- a/lookandfeel/contents/components/ActionButton.qml
  49. +++ b/lookandfeel/contents/components/ActionButton.qml
  50. @@ -44,7 +44,7 @@ Item {
  51. opacity: activeFocus || containsMouse ? 1 : 0.85
  52. Behavior on opacity {
  53. PropertyAnimation { // OpacityAnimator makes it turn black at random intervals
  54. - duration: units.longDuration * 2
  55. + duration: units.longDuration
  56. easing.type: Easing.InOutQuad
  57. }
  58. }
  59. @@ -59,7 +59,7 @@ Item {
  60. opacity: activeFocus || containsMouse ? (softwareRendering ? 0.8 : 0.15) : (softwareRendering ? 0.6 : 0)
  61. Behavior on opacity {
  62. PropertyAnimation { // OpacityAnimator makes it turn black at random intervals
  63. - duration: units.longDuration * 3
  64. + duration: units.longDuration
  65. easing.type: Easing.InOutQuad
  66. }
  67. }
  68. diff --git a/lookandfeel/contents/components/UserDelegate.qml b/lookandfeel/contents/components/UserDelegate.qml
  69. index 8882e39..cdb55f1 100644
  70. --- a/lookandfeel/contents/components/UserDelegate.qml
  71. +++ b/lookandfeel/contents/components/UserDelegate.qml
  72. @@ -72,7 +72,7 @@ Item {
  73. Behavior on width {
  74. PropertyAnimation {
  75. from: faceSize
  76. - duration: units.longDuration * 2;
  77. + duration: units.longDuration;
  78. }
  79. }
  80. width: isCurrent ? faceSize : faceSize - units.largeSpacing
  81. --
  82. cgit v1.1