Action button for snap-to-grid / snap-to-angle #1100
Replies: 4 comments 11 replies
-
Dear @letsfindaway and @kaamui I would like to hear your feedback regarding the sketches and to know what adjustments could be done to make it fit openboard more. PS: The designs are not shaded in the sketch but shaded in the stylus palette to fit the design theme. Obviously this is just a draft and once we agree on a concept, the design will be shaded and in svg format
This will be the next step since I need to have a sense first of how the icons will look all together and we see how to move forward from there |
Beta Was this translation helpful? Give feedback.
-
Changes to the codeI have just pushed a new branch
This branch can be used to check-out the behavior and to get a first visual impression of the new snap-to-grid action. |
Beta Was this translation helpful? Give feedback.
-
Dear @kaamui, I noticed that you were the last one to update the build-from-source guide for Windows on GitHub, and I was hoping to get some clarification on a few issues I've encountered. Qt Installation: When using the online Qt installer, the guide mentions enabling only three components during the custom installation. Could you advise on whether the other components are necessary, or if I can safely skip them? qmake Issue: After setting the Qt directory in the environment variables (e.g., "C:\Qt\5.14.2\msvc2019_64\bin"), I encounter errors when running OpenBoard Source Files: After downloading the OpenBoard sources through Git Bash, I see two folders: OpenBoard and OpenBoard-Thirdparty. However, when I try to navigate to directories like freetype or xpdf, Git Bash indicates that these folders don't exist. Additionally, when attempting to run I appreciate any help or advice you can offer. Thanks for your time and it would be very helpful to be able to test the Magnet icon that way on my own! Best regards, |
Beta Was this translation helpful? Give feedback.
-
These are the new updated svg icons without the lightning bolt and also with a different grid that is better when zoomed out: Magnet ShadedMagnet Shaded_on |
Beta Was this translation helpful? Give feedback.
-
After merging PR #1013, which implemented snap-to-grid and snap-to-angle using the
Shift
key, a discussion started about how to make this feature available for an interactive whiteboard. In this case, a keyboard and therefore theShift
key is typically not readily available. So other means to enable snapping should be considered.After some discussion, the preferred UI is a button with some kind of magnet icon, that can enable and disable this feature (see #1013 (comment)). This entry should now serve as a place to discuss this feature further.
Placement of the button
The current idea is to place this button in the stylus palette as the very last button. Here we already have the button for the virtual keyboard, which is also not part of the button group of stylus tools represented by the other buttons.
Icon for the button
Very often some kind of magnet icon is used to represent the snap-to-grid feature. The idea is to develop a graphical representation based on this. We need two appearances of the button: enabled and disabled. Icons should be in SVG format so that they can be lossless scaled for HiRES displays.
@fadikdawoud: Before you put too much effort into a single idea, you can also post rough sketches and ideas here to get feedback.
I am not sure if it is useful to visualize that this button (and the virtual keyboard button next to it) are not part of the stylus tool's button group. An idea would be to draw an additional frame around the grouped buttons or to add a separator between grouped and ungrouped buttons. This would however not be part of the icons, but of the code of the stylus palette.
Behavior of the button
I suggest keeping the function of the
Shift
key even with the presence of this new button. These two methods should work together as follows:Shift
key is pressed, the snap-to-grid action button is activated.Shift
key is released, the snap-to-grid action button is deactivated.Activating/deactivating the button by pressing or releasing the
Shift
key gives immediate visual feedback of the function.Additionally I suggest to assign a keyboard shortcut to the button, e.g.
Ctrl + S
. This way you can use the button even when the stylus palette is hidden.Beta Was this translation helpful? Give feedback.
All reactions