mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-01-11 14:40:25 +01:00
[PR #1002] [MERGED] feat(animation): transparency animations + refactoring of animations "engine" #1165
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/LGUG2Z/komorebi/pull/1002
Author: @thearturca
Created: 9/22/2024
Status: ✅ Merged
Merged: 11/26/2024
Merged by: @LGUG2Z
Base:
master← Head:refactor/rustify-animations📝 Commits (10+)
1a184a4refactor(animation): move animations to its own modd3ac6b7refactor(animation): reduce mutex call onANIMATION_STYLE8a42b73refactor(animation): introduceLerptrait7b08afarefactor(animation): remove unused importse449861refactor(animation): generalized ANIMATION_MANAGER67b2a7afeat(animation): introduceAnimationPrefixenum8290f14feat(animation): introduceRenderDispatchertrait2400d75feat(animation): implement window transparency animation44189d8refactor(animation): move generation ofanimation keytoRenderDispatchere502cb3refactor(animation): renameanimationmod toengine📊 Changes
17 files changed (+764 additions, -347 deletions)
View changed files
📝
komorebi-client/src/lib.rs(+1 -0)➕
komorebi/src/animation/animation_manager.rs(+115 -0)➕
komorebi/src/animation/engine.rs(+122 -0)➕
komorebi/src/animation/lerp.rs(+42 -0)➕
komorebi/src/animation/mod.rs(+54 -0)➕
komorebi/src/animation/prefix.rs(+31 -0)➕
komorebi/src/animation/render_dispatcher.rs(+8 -0)📝
komorebi/src/animation/style.rs(+1 -127)➖
komorebi/src/animation_manager.rs(+0 -108)📝
komorebi/src/core/mod.rs(+4 -3)📝
komorebi/src/lib.rs(+0 -11)📝
komorebi/src/main.rs(+6 -0)📝
komorebi/src/process_command.rs(+44 -13)📝
komorebi/src/static_config.rs(+49 -12)📝
komorebi/src/window.rs(+250 -70)📝
komorebi/src/windows_api.rs(+16 -0)📝
komorebic/src/main.rs(+21 -3)📄 Description
This PR refactors animations "engine" and makes it possible to add a new type of animations.
AnimationManagerget generalized by replacing HashMap key fromhwnd(isize)toStringLerptrait to easily perform linear interpolation values of any typeAnimationPrefixenum for easy tracking animations inAnimationManagerRenderDispatchertrait to standardize animations behavior.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.