plasma-desktop-animation-duration.patch 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. From f3bbc0ba0e34ea1b34b106228c02d85865ed904a Mon Sep 17 00:00:00 2001
  2. From: Nate Graham <nate@kde.org>
  3. Date: Tue, 24 Mar 2020 08:15:12 -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
  12. Subscribers: plasma-devel
  13. Tags: #plasma
  14. Differential Revision: https://phabricator.kde.org/D28239
  15. ---
  16. applets/taskmanager/package/contents/ui/Task.qml | 2 +-
  17. applets/taskmanager/package/contents/ui/TaskList.qml | 2 +-
  18. desktoppackage/contents/configuration/PanelConfiguration.qml | 4 ++--
  19. desktoppackage/contents/explorer/WidgetExplorer.qml | 6 +++---
  20. toolboxes/desktoptoolbox/contents/ui/ToolBoxButton.qml | 6 +++---
  21. 5 files changed, 10 insertions(+), 10 deletions(-)
  22. diff --git a/applets/taskmanager/package/contents/ui/Task.qml b/applets/taskmanager/package/contents/ui/Task.qml
  23. index 2bf8b88..9683fab 100644
  24. --- a/applets/taskmanager/package/contents/ui/Task.qml
  25. +++ b/applets/taskmanager/package/contents/ui/Task.qml
  26. @@ -293,7 +293,7 @@ MouseArea {
  27. Timer {
  28. id: timer
  29. - interval: units.longDuration * 2
  30. + interval: units.longDuration
  31. repeat: false
  32. onTriggered: {
  33. diff --git a/applets/taskmanager/package/contents/ui/TaskList.qml b/applets/taskmanager/package/contents/ui/TaskList.qml
  34. index 594420b..6d6bc45 100644
  35. --- a/applets/taskmanager/package/contents/ui/TaskList.qml
  36. +++ b/applets/taskmanager/package/contents/ui/TaskList.qml
  37. @@ -34,7 +34,7 @@ Flow {
  38. NumberAnimation {
  39. properties: "x, y"
  40. easing.type: Easing.OutQuad
  41. - duration: units.longDuration * 2
  42. + duration: units.longDuration
  43. }
  44. PropertyAction { target: taskList; property: "animating"; value: false }
  45. diff --git a/desktoppackage/contents/configuration/PanelConfiguration.qml b/desktoppackage/contents/configuration/PanelConfiguration.qml
  46. index 0e11a96..33e3fbc 100644
  47. --- a/desktoppackage/contents/configuration/PanelConfiguration.qml
  48. +++ b/desktoppackage/contents/configuration/PanelConfiguration.qml
  49. @@ -103,7 +103,7 @@ PlasmaCore.FrameSvgItem {
  50. return panel.screenGeometry.y + panel.screenGeometry.height - panel.height - panel.distance
  51. }
  52. }
  53. - duration: units.shortDuration * 3
  54. + duration: units.shortDuration
  55. }
  56. NumberAnimation {
  57. @@ -122,7 +122,7 @@ PlasmaCore.FrameSvgItem {
  58. return panel.screenGeometry.y + panel.screenGeometry.height - panel.height - configDialog.height - panel.distance
  59. }
  60. }
  61. - duration: units.shortDuration * 3
  62. + duration: units.shortDuration
  63. }
  64. }
  65. //END Animations
  66. diff --git a/desktoppackage/contents/explorer/WidgetExplorer.qml b/desktoppackage/contents/explorer/WidgetExplorer.qml
  67. index 1648708..e26cc40 100644
  68. --- a/desktoppackage/contents/explorer/WidgetExplorer.qml
  69. +++ b/desktoppackage/contents/explorer/WidgetExplorer.qml
  70. @@ -306,7 +306,7 @@ Item {
  71. properties: "x"
  72. from: -list.width
  73. to: 0
  74. - duration: units.shortDuration * 3
  75. + duration: units.shortDuration
  76. }
  77. }
  78. @@ -316,7 +316,7 @@ Item {
  79. NumberAnimation {
  80. properties: "x"
  81. to: list.width
  82. - duration: units.shortDuration * 3
  83. + duration: units.shortDuration
  84. }
  85. }
  86. @@ -329,7 +329,7 @@ Item {
  87. displaced: Transition {
  88. NumberAnimation {
  89. properties: "y"
  90. - duration: units.shortDuration * 3
  91. + duration: units.shortDuration
  92. }
  93. }
  94. }
  95. diff --git a/toolboxes/desktoptoolbox/contents/ui/ToolBoxButton.qml b/toolboxes/desktoptoolbox/contents/ui/ToolBoxButton.qml
  96. index 06524c3..eb6b190 100644
  97. --- a/toolboxes/desktoptoolbox/contents/ui/ToolBoxButton.qml
  98. +++ b/toolboxes/desktoptoolbox/contents/ui/ToolBoxButton.qml
  99. @@ -54,14 +54,14 @@ Item {
  100. }
  101. Behavior on rotation {
  102. NumberAnimation {
  103. - duration: units.shortDuration * 3;
  104. + duration: units.shortDuration;
  105. easing.type: Easing.InOutExpo;
  106. }
  107. enabled: visible
  108. }
  109. Behavior on x {
  110. NumberAnimation {
  111. - duration: units.shortDuration * 3;
  112. + duration: units.shortDuration;
  113. easing.type: Easing.InOutExpo;
  114. }
  115. enabled: visible
  116. @@ -69,7 +69,7 @@ Item {
  117. }
  118. Behavior on y {
  119. NumberAnimation {
  120. - duration: units.shortDuration * 3;
  121. + duration: units.shortDuration;
  122. easing.type: Easing.InOutExpo;
  123. }
  124. enabled: visible
  125. --
  126. cgit v1.1