panel: drag to move or resize, bending like KDE's wobbly windows, also adds oneko cat #172
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/lobomfz--VIctory-xmem!172
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-172"
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?
@nullish-cat on GitHub · 2026-12-02 08:28 UTC · original
nullish-cat:main→main· +1937 −149 · 11 files · 2 commits · closed without mergingthe following PR allows for users to drag and resize using the mouse by pressing
F4. dragging effect inspired by KDE.https://github.com/user-attachments/assets/eed857e8-dded-44c9-aeee-4743842a4587
auto generated text, by deepseek v4.1 flash fast freebuff:
The performance panel can now be placed and sized with the mouse, and it bends like jelly while you drag it — KDE's wobbly windows effect.
What it does
F4tap — edit mode. The panel is framed and its four corners bracketed in cyan, and the mouse becomes the panel's: cursor shown and free, no clip or recentre, title mouse look and buttons not fed.F4again ends it and the title gets the mouse back on the next move.F4+ arrows /+--/0move, resize and reset from the keyboard (arrows repeat while held);F3+ arrows still snaps to a corner.VICTORY_PANEL_WOBBLE=0(off,false,no) turns the bend off and leaves the fade.Why
The panel used to be corner-only and keyboard-only. Dragging it is the way people expect to move an overlay, and the wobble is what KDE users know the gesture looks like — KWin's own cloth is ported rather than approximated, with the pull and damping softened (
0.09/0.65against KWin's0.16/0.50) and the release eased, because the stock settings read as too fast and too springy on a 216 px tall panel.Testing
cargo check -p victory-gpu --tests, clippy clean for the touched files.wobble_bends_and_settles— the cloth bends under a drag and the centre never crosses to the far side of flat while settling (fails on a full-strength spring by ~15 px).wobble_pins_a_still_edge— a resize against a window edge leaves that edge where it is.vs_5_1/ps_5_1viaD3DCompile)../build.sh && ./run.sh play,F4, then a drag and holding the panel against each of the four window edges.Notes
README.mdandrun.conf.defaultdocument theF4gestures andVICTORY_PANEL_WOBBLE.panel: drag to move or resize, bending like KDE's wobbly windowsto panel: drag to move or resize, bending like KDE's wobbly windows, also adds oneko cat@nullish-cat on GitHub · 2026-12-03 02:54 UTC · original
added oneko :3
https://github.com/user-attachments/assets/37147419-2471-4bb9-a4fd-7205d3b0ccf6
@Luxuride on GitHub · 2026-12-04 12:01 UTC · original
As it stands this cannot be merged, and the reason is mechanical:
crates/victory-gpu/src/host/neko.rs:20isinclude_bytes!("../../assets/oneko/sprites.bin"), butassets/oneko/in the PR holds onlyLICENSEandREADME.md..gitignore:45is*.bin(onlybcpack-tables.binis excepted at:47), sogit addsilently dropped the sprite. Anyone who checks the branch out getscouldn't read …/assets/oneko/sprites.bin.Beyond that: wobble is on by default (
run.conf.default:24 VICTORY_PANEL_WOBBLE=1), which gives every user cloth physics and transparency nobody asked for, and the scale (+1479 lines inhost/panel.rs, 466 inneko.rs) will conflict with every other panel PR in the backlog.The part worth keeping is small and clean:
crates/victory-core/src/panel_edit.rs(31 lines of atomics) plus the four-linecursor_locked()change ingameinput.rs:129. One PR that is only F4 drag/resize, no wobble, no cat, default off, would be a quick yes.Pull request closed