[effects] Re-implement the Minimize Animation effect in JavaScript
Summary:
There were several reasons to rewrite the Minimize Animation effect in
JavaScript: to simplify code and to get rid of full repaints. One could
say that nothing prevents us from calculating the dirty region in
postPaintScreen or postPaintWindow and it is correct, but with the
scripting effects API the dirty region will be calculated for us, so we
can focus more on "what we want" instead of "how".
Visually, the "old" effect and the rewritten one look quite the same.
Except one tiny bit: if a window doesn't have an icon in the task manager,
it won't be animated. The reason for that is the purpose of this effect is
to show where the window will be after it's minimized, if the window
doesn't have icon in the task manager, one can't click at the center of
the screen to unminimize the window.
There is one significant change, the name of the effect was changed to
"Squash". If we put this effect and the Magic lamp effect under "Window
Minimize Animation" category (or if we add some "heading" label), then
the old name and the name of the category would "conflict". The new name
was suggested by Nate Graham and it very closely describes what the
effect does. "Scale" doesn't fit this effect because while a window is
being animated, its aspect ratio is not preserved.
Reviewers: #kwin, #plasma, davidedmundson
Reviewed By: #kwin, #plasma, davidedmundson
Subscribers: davidedmundson, kwin
Tags: #kwin
Differential Revision: https://phabricator.kde.org/D16372
2018-09-23 17:07:48 +00:00
|
|
|
|
[Desktop Entry]
|
|
|
|
|
Comment=Squash windows when they are minimized
|
2020-07-23 04:10:20 +00:00
|
|
|
|
Comment[az]=Yığılarkən pəncrəni sıxlaşdıqmaq
|
2018-10-25 04:01:19 +00:00
|
|
|
|
Comment[ca]=Amuntega les finestres quan estan minimitzades
|
2018-10-27 03:56:01 +00:00
|
|
|
|
Comment[ca@valencia]=Amuntega les finestres quan estan minimitzades
|
2019-05-08 03:51:51 +00:00
|
|
|
|
Comment[da]=Mas vinduer når de minimeres
|
2019-08-07 03:12:10 +00:00
|
|
|
|
Comment[de]=Quetscht Fenster beim Minimieren zusammen
|
2018-10-28 03:59:42 +00:00
|
|
|
|
Comment[en_GB]=Squash windows when they are minimised
|
2019-01-11 04:41:32 +00:00
|
|
|
|
Comment[es]=Aplastar las ventanas al minimizarlas
|
2019-11-02 04:41:14 +00:00
|
|
|
|
Comment[et]=Minimeeritud akende taas üleshüpitamine
|
2019-06-09 03:13:32 +00:00
|
|
|
|
Comment[eu]=Zanpatu leihoak haiek ikonotzean
|
2018-11-29 04:32:08 +00:00
|
|
|
|
Comment[fi]=Litistä ikkunat, kun ne pienennetään
|
2019-03-07 07:45:16 +00:00
|
|
|
|
Comment[fr]=Écrase les fenêtres lorsqu'elles sont minimisées
|
2018-10-25 04:01:19 +00:00
|
|
|
|
Comment[gl]=Xuntar as xanelas cando estean minimizadas
|
2020-01-13 04:53:53 +00:00
|
|
|
|
Comment[ia]=Deforma fenestras durante que illes es minimisate
|
2018-11-22 05:02:11 +00:00
|
|
|
|
Comment[id]=Sesakkan window ketika mereka diminimalkan
|
2018-10-28 03:59:42 +00:00
|
|
|
|
Comment[it]=Schiaccia le finestre quando vengono minimizzate
|
2019-04-12 03:58:07 +00:00
|
|
|
|
Comment[ko]=창을 최소화할 때 압축시킵니다
|
2019-10-18 03:38:34 +00:00
|
|
|
|
Comment[lt]=Sutraiškyti langus, juos suskleidžiant
|
2018-10-25 04:01:19 +00:00
|
|
|
|
Comment[nl]=Krimp vensters wanneer ze geminimaliseerd zijn
|
2018-10-28 03:59:42 +00:00
|
|
|
|
Comment[nn]=Skvis vindauge når dei vert minimerte
|
2019-12-03 04:49:05 +00:00
|
|
|
|
Comment[pl]=Ściąga okna przy ich minimalizacji
|
2018-10-25 04:01:19 +00:00
|
|
|
|
Comment[pt]=Esmagar as janelas quando são minimizadas
|
2019-01-25 07:42:24 +00:00
|
|
|
|
Comment[pt_BR]=Achatar as janelas quando são minimizadas
|
2020-09-30 04:16:48 +00:00
|
|
|
|
Comment[ro]=Strivește ferestrele când sunt minimizate
|
2018-11-21 04:47:44 +00:00
|
|
|
|
Comment[ru]=Сжатие окна при сворачивании
|
2018-12-28 04:34:06 +00:00
|
|
|
|
Comment[sk]=Deformuje okná pri ich minimalizovaní
|
2020-03-27 05:43:00 +00:00
|
|
|
|
Comment[sl]=Zmečkaj okna, ko jih strneš
|
2018-10-25 04:01:19 +00:00
|
|
|
|
Comment[sv]=Kläm fönster när de minimeras
|
|
|
|
|
Comment[uk]=Складує вікна, якщо їх мінімізовано
|
2020-06-18 03:44:57 +00:00
|
|
|
|
Comment[x-test]=xxSquash windows when they are minimizedxx
|
2021-01-14 06:04:00 +00:00
|
|
|
|
Comment[zh_CN]=窗口最小化时绘制收缩过渡动画
|
2018-11-01 04:58:11 +00:00
|
|
|
|
Comment[zh_TW]=壓縮最小化的視窗
|
[effects] Re-implement the Minimize Animation effect in JavaScript
Summary:
There were several reasons to rewrite the Minimize Animation effect in
JavaScript: to simplify code and to get rid of full repaints. One could
say that nothing prevents us from calculating the dirty region in
postPaintScreen or postPaintWindow and it is correct, but with the
scripting effects API the dirty region will be calculated for us, so we
can focus more on "what we want" instead of "how".
Visually, the "old" effect and the rewritten one look quite the same.
Except one tiny bit: if a window doesn't have an icon in the task manager,
it won't be animated. The reason for that is the purpose of this effect is
to show where the window will be after it's minimized, if the window
doesn't have icon in the task manager, one can't click at the center of
the screen to unminimize the window.
There is one significant change, the name of the effect was changed to
"Squash". If we put this effect and the Magic lamp effect under "Window
Minimize Animation" category (or if we add some "heading" label), then
the old name and the name of the category would "conflict". The new name
was suggested by Nate Graham and it very closely describes what the
effect does. "Scale" doesn't fit this effect because while a window is
being animated, its aspect ratio is not preserved.
Reviewers: #kwin, #plasma, davidedmundson
Reviewed By: #kwin, #plasma, davidedmundson
Subscribers: davidedmundson, kwin
Tags: #kwin
Differential Revision: https://phabricator.kde.org/D16372
2018-09-23 17:07:48 +00:00
|
|
|
|
Icon=preferences-system-windows-effect-squash
|
|
|
|
|
Name=Squash
|
2020-07-23 04:10:20 +00:00
|
|
|
|
Name[az]=Sıxılma
|
2018-10-25 04:01:19 +00:00
|
|
|
|
Name[ca]=Amuntega
|
2018-10-27 03:56:01 +00:00
|
|
|
|
Name[ca@valencia]=Amuntega
|
2019-05-08 03:51:51 +00:00
|
|
|
|
Name[da]=Mas
|
2019-08-07 03:12:10 +00:00
|
|
|
|
Name[de]=Quetschen
|
2018-10-28 03:59:42 +00:00
|
|
|
|
Name[en_GB]=Squash
|
2019-01-11 04:41:32 +00:00
|
|
|
|
Name[es]=Aplastar
|
2019-11-02 04:41:14 +00:00
|
|
|
|
Name[et]=Üleshüpe
|
2019-06-09 03:13:32 +00:00
|
|
|
|
Name[eu]=Zanpatu
|
2018-11-29 04:32:08 +00:00
|
|
|
|
Name[fi]=Litistä
|
2019-03-07 07:45:16 +00:00
|
|
|
|
Name[fr]=Écraser
|
2018-10-25 04:01:19 +00:00
|
|
|
|
Name[gl]=Xuntar
|
2020-01-17 05:19:40 +00:00
|
|
|
|
Name[ia]=Squash
|
2019-10-23 03:33:32 +00:00
|
|
|
|
Name[id]=Sesakkan
|
2018-10-28 03:59:42 +00:00
|
|
|
|
Name[it]=Schiaccia
|
2019-04-12 03:58:07 +00:00
|
|
|
|
Name[ko]=압축
|
2019-10-18 03:38:34 +00:00
|
|
|
|
Name[lt]=Sutraiškymas
|
2018-10-25 04:01:19 +00:00
|
|
|
|
Name[nl]=Krimpen
|
2018-10-28 03:59:42 +00:00
|
|
|
|
Name[nn]=Skvis
|
2019-12-03 04:49:05 +00:00
|
|
|
|
Name[pl]=Ściąganie
|
2018-10-25 04:01:19 +00:00
|
|
|
|
Name[pt]=Esmagar
|
2019-01-25 07:42:24 +00:00
|
|
|
|
Name[pt_BR]=Achatar
|
2020-09-30 04:16:48 +00:00
|
|
|
|
Name[ro]=Strivire
|
2018-11-21 04:47:44 +00:00
|
|
|
|
Name[ru]=Сжатие
|
2019-05-02 03:57:21 +00:00
|
|
|
|
Name[sk]=Rozpučiť
|
2020-03-27 05:43:00 +00:00
|
|
|
|
Name[sl]=Zmečkaj
|
2018-10-25 04:01:19 +00:00
|
|
|
|
Name[sv]=Kläm
|
|
|
|
|
Name[uk]=Складування
|
2020-06-18 03:44:57 +00:00
|
|
|
|
Name[x-test]=xxSquashxx
|
2021-01-14 06:04:00 +00:00
|
|
|
|
Name[zh_CN]=最小化过渡动画 (收缩)
|
2018-11-01 04:58:11 +00:00
|
|
|
|
Name[zh_TW]=壓縮
|
[effects] Re-implement the Minimize Animation effect in JavaScript
Summary:
There were several reasons to rewrite the Minimize Animation effect in
JavaScript: to simplify code and to get rid of full repaints. One could
say that nothing prevents us from calculating the dirty region in
postPaintScreen or postPaintWindow and it is correct, but with the
scripting effects API the dirty region will be calculated for us, so we
can focus more on "what we want" instead of "how".
Visually, the "old" effect and the rewritten one look quite the same.
Except one tiny bit: if a window doesn't have an icon in the task manager,
it won't be animated. The reason for that is the purpose of this effect is
to show where the window will be after it's minimized, if the window
doesn't have icon in the task manager, one can't click at the center of
the screen to unminimize the window.
There is one significant change, the name of the effect was changed to
"Squash". If we put this effect and the Magic lamp effect under "Window
Minimize Animation" category (or if we add some "heading" label), then
the old name and the name of the category would "conflict". The new name
was suggested by Nate Graham and it very closely describes what the
effect does. "Scale" doesn't fit this effect because while a window is
being animated, its aspect ratio is not preserved.
Reviewers: #kwin, #plasma, davidedmundson
Reviewed By: #kwin, #plasma, davidedmundson
Subscribers: davidedmundson, kwin
Tags: #kwin
Differential Revision: https://phabricator.kde.org/D16372
2018-09-23 17:07:48 +00:00
|
|
|
|
|
|
|
|
|
Type=Service
|
|
|
|
|
X-KDE-ParentApp=
|
2019-09-29 14:03:25 +00:00
|
|
|
|
X-KDE-PluginInfo-Author=Rivo Laks, Vlad Zahorodnii
|
[effects] Re-implement the Minimize Animation effect in JavaScript
Summary:
There were several reasons to rewrite the Minimize Animation effect in
JavaScript: to simplify code and to get rid of full repaints. One could
say that nothing prevents us from calculating the dirty region in
postPaintScreen or postPaintWindow and it is correct, but with the
scripting effects API the dirty region will be calculated for us, so we
can focus more on "what we want" instead of "how".
Visually, the "old" effect and the rewritten one look quite the same.
Except one tiny bit: if a window doesn't have an icon in the task manager,
it won't be animated. The reason for that is the purpose of this effect is
to show where the window will be after it's minimized, if the window
doesn't have icon in the task manager, one can't click at the center of
the screen to unminimize the window.
There is one significant change, the name of the effect was changed to
"Squash". If we put this effect and the Magic lamp effect under "Window
Minimize Animation" category (or if we add some "heading" label), then
the old name and the name of the category would "conflict". The new name
was suggested by Nate Graham and it very closely describes what the
effect does. "Scale" doesn't fit this effect because while a window is
being animated, its aspect ratio is not preserved.
Reviewers: #kwin, #plasma, davidedmundson
Reviewed By: #kwin, #plasma, davidedmundson
Subscribers: davidedmundson, kwin
Tags: #kwin
Differential Revision: https://phabricator.kde.org/D16372
2018-09-23 17:07:48 +00:00
|
|
|
|
X-KDE-PluginInfo-Category=Appearance
|
2020-01-14 16:17:18 +00:00
|
|
|
|
X-KDE-PluginInfo-Email=rivolaks@hot.ee, vlad.zahorodnii@kde.org
|
[effects] Re-implement the Minimize Animation effect in JavaScript
Summary:
There were several reasons to rewrite the Minimize Animation effect in
JavaScript: to simplify code and to get rid of full repaints. One could
say that nothing prevents us from calculating the dirty region in
postPaintScreen or postPaintWindow and it is correct, but with the
scripting effects API the dirty region will be calculated for us, so we
can focus more on "what we want" instead of "how".
Visually, the "old" effect and the rewritten one look quite the same.
Except one tiny bit: if a window doesn't have an icon in the task manager,
it won't be animated. The reason for that is the purpose of this effect is
to show where the window will be after it's minimized, if the window
doesn't have icon in the task manager, one can't click at the center of
the screen to unminimize the window.
There is one significant change, the name of the effect was changed to
"Squash". If we put this effect and the Magic lamp effect under "Window
Minimize Animation" category (or if we add some "heading" label), then
the old name and the name of the category would "conflict". The new name
was suggested by Nate Graham and it very closely describes what the
effect does. "Scale" doesn't fit this effect because while a window is
being animated, its aspect ratio is not preserved.
Reviewers: #kwin, #plasma, davidedmundson
Reviewed By: #kwin, #plasma, davidedmundson
Subscribers: davidedmundson, kwin
Tags: #kwin
Differential Revision: https://phabricator.kde.org/D16372
2018-09-23 17:07:48 +00:00
|
|
|
|
X-KDE-PluginInfo-License=GPL
|
|
|
|
|
X-KDE-PluginInfo-Name=kwin4_effect_squash
|
|
|
|
|
X-KDE-PluginInfo-Version=1
|
|
|
|
|
X-KDE-PluginInfo-Website=
|
|
|
|
|
X-KDE-ServiceTypes=KWin/Effect
|
|
|
|
|
X-KDE-PluginInfo-EnabledByDefault=true
|
|
|
|
|
X-KDE-Ordering=60
|
|
|
|
|
X-Plasma-API=javascript
|
|
|
|
|
X-Plasma-MainScript=code/main.js
|
|
|
|
|
X-KWin-Exclusive-Category=minimize
|
2019-03-25 18:11:15 +00:00
|
|
|
|
X-KWin-Video-Url=https://files.kde.org/plasma/kwin/effect-videos/minimize.ogv
|