-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Grid and grid-snapping position? #21
Comments
I suppose it concerns HoustonPatchbay more than RaySession (that is not strong). I don't understand the point at all, could you be more verbose ? We should snap the top left corner of boxes to a grid, why do it ? |
It really helps my head to have the graph nodes all lined up in some consistent manner. Snapping to a grid would make this process a lot quicker to get done. Snapping the top left corner sounds like a viable method. |
Even just a repeating background image that's a tiling grid pattern to line things up along/against to would be great. |
It is quite hard to imagine, it has big conflicts with the "prevent overlap" option. It means that boxes should be moved by it to a grid, with a box spacing distance dependent of the grid, etc...
You can easily do that now, editing a theme, you just have to define a checkerboard image as background. |
Thanks! I'll look at how to theme at some point soon. I mean, this is two requests in one really. The relationship of units to a grid must be harder than just showing a grid. Do you use the same graph positioning JACK metadata as Carla? |
Here is the theme help: http://raysession.tuxfamily.org/manuals/patchbay/en/theme_edit.html Note that you can set a background image and a background color. The background color is front of the background image, it is useful if your color has transparency.
No, because I don't see any interest for this, other apps would do nothing with the box positions. Even if theses apps contain a patchbay, box would not have the same sizes. |
Nice, it looks like tiles. Don't hesitate to make a PR with a new theme, even if nothing changes except the background. Maybe we could change the theme directly, I don't know, "Light Blue Rose" is the only theme I made that I never use, I've done it for accessibility, but it is too lightly for my eyes. |
I'll get back to a theme PR at some point soon. (Though an option to dynamically change the background and background-image properties for all available themes might save on doubling the number of themes). Grid snapping; I am using GNU Radio for the first time, and there is no grid but there is snapping, e.g., every unit bumps around when dragged, moving in only 10px increments either vertically or horizontally. There is no grid, no visible one anyway, just the assumed one provided by this unit movement constraint. |
I'll take a look, maybe something is possible.
Yes, I thought about that. The most important problem comes from one of the most important features: prevent overlap. I don't say it is impossible, and I see the design interest, but it is quite long to do. |
I just made some tests modifying HoustonPatchbay to position boxes in a grid. The idea is finally quite simple, cells have margins, box sizes are increased to fill all the cells (except margins of course). In the Y axe, cells height can't be very high, only because having a big empty space below the last port is quite ugly. It needs some code adjustments of course, but not so much, and it seems to be very nice. So, soon or later, I'll do that. Good idea, thanks ! |
Ok, it has been done with many other features. see #23. |
How about an optional grid, plus the option to snap nodes to that grid?
The text was updated successfully, but these errors were encountered: