mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-11-29 03:42:46 +01:00
feat(kwin): easing curves for animations
An animation that moves a window at one pace all the way looks flat, and the stock Geometry Change has one curve, an exponential ease out. The patched effect reads a Curve setting, the name of one of Qt's easing curves. komorebi's styles are those curves with Ease in front, so the look the backend is asked for names the curve as Qt does, and the effect's settings have it next to the duration. A cubic Bezier, which only a configuration can say, is not one of Qt's curves and is an ease out. With the stock effect every style is that ease out. komorebic gets animation-style, for every animation or the movement of windows alone. vm-features puts two curves a few seconds into a 30 s move of the same window and checks that they are in different places. The animation key of komorebi.json takes a style too, for every kind of animation or for one.
This commit is contained in:
1 parent
4fa8108110
commit
abfa8c6a5c
32 files changed
+1058
-88
No files matched your search
@@ -153,9 +153,11 @@ the run.
|
||||
reads the color of a pixel of a screenshot, and wants nothing else there.
|
||||
- `pixels` reads a screenshot: `pixels.pixel(image, x, y)` is the color of a
|
||||
pixel, `pixels.near(a, b)` compares two colors within a tolerance, since a
|
||||
compositor blends the edge of what it draws, and `pixels.ring(image, frame,
|
||||
compositor blends the edge of what it draws, `pixels.ring(image, frame,
|
||||
color)` names the sides of a window's frame that have no ring of `color` just
|
||||
outside them, which is how a test sees a border.
|
||||
outside them, which is how a test sees a border, and `pixels.leftmost(image,
|
||||
y, color)` finds where a row first has a color, which is how a test sees how
|
||||
far along a window is on its way.
|
||||
- `kwin_script(name, source, keep=)` runs a KWin script and returns the lines it
|
||||
reported: the script calls `report(...)`, which `print`s a line marked with
|
||||
`name` to KWin's log, and ends with `report("done")`. A script that is kept
|
||||
|
||||
Reference in new issue
Block a user