tullamods / Dominos

A main actionbar replacement
https://tullamods.com/dominos
BSD 3-Clause "New" or "Revised" License
79 stars 26 forks source link

Enhanced grid display and snapping #542

Closed Swanarog closed 3 years ago

Swanarog commented 3 years ago

The current implementation of the alignment grid feels very choppy when changing grid density. It also does not display the grid with a truly square grid. Individual squares on the grid are always rectangles.

I've rewritten the code to correct both of those issues, and I'm going to include a short video of the grid density being changed to show how smooth the grid display appears now. If you like what you see, I'll make a fork and post it for you.

(video in next comment)

Goranaws commented 3 years ago

https://giphy.com/gifs/pWdYpbuIvPkW9Xw2uo

I'm not sure if this clearly shows what I'm trying to convey, hopefully you can see.

Swanarog commented 3 years ago

Proposed code changes:

https://github.com/Swanarog/Dominos https://github.com/Tuller/FlyPaper-2.0/compare/master...Swanarog:patch-1

Swanarog commented 3 years ago

I've updated my previous comment with a new link that includes all necessary code changes to go with the better grid display

Tuller commented 3 years ago

I've cherry picked the grid commits into the main branch and made a few adjustments. The main thing I've done differently is use GetScreenHeight as the factor for determining scale instead of width. That part is more consistent across various multi monitor and aspect ratios, I think. (I use a 21:9 monitor, for example).