Skip to content

adding snap to grid button #1428

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions crates/rnote-ui/data/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,7 @@ rnote_ui_gresources_icons_files = files(
'icons/scalable/actions/shapebuilder-quadrantcoordsystem2d-symbolic.svg',
'icons/scalable/actions/shapebuilder-rectangle-symbolic.svg',
'icons/scalable/actions/sidebar-reveal-symbolic.svg',
'icons/scalable/actions/snap-to-grid-symbolic.svg',
'icons/scalable/actions/stroke-color-symbolic.svg',
'icons/scalable/actions/stylus-button-eraser-symbolic.svg',
'icons/scalable/actions/stylus-button-primary-symbolic.svg',
Expand Down
1 change: 1 addition & 0 deletions crates/rnote-ui/data/resources.gresource.xml
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@
<file compressed="true">icons/scalable/actions/shapebuilder-quadrantcoordsystem2d-symbolic.svg</file>
<file compressed="true">icons/scalable/actions/shapebuilder-rectangle-symbolic.svg</file>
<file compressed="true">icons/scalable/actions/sidebar-reveal-symbolic.svg</file>
<file compressed="true">icons/scalable/actions/snap-to-grid-symbolic.svg</file>
<file compressed="true">icons/scalable/actions/stroke-color-symbolic.svg</file>
<file compressed="true">icons/scalable/actions/stylus-button-eraser-symbolic.svg</file>
<file compressed="true">icons/scalable/actions/stylus-button-primary-symbolic.svg</file>
Expand Down
2 changes: 1 addition & 1 deletion crates/rnote-ui/data/ui/mainheader.ui
Original file line number Diff line number Diff line change
Expand Up @@ -101,4 +101,4 @@
</object>
</child>
</template>
</interface>
</interface>
13 changes: 12 additions & 1 deletion crates/rnote-ui/data/ui/penssidebar/selectorpage.ui
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,17 @@
</style>
</object>
</child>
<child>
<object class="GtkToggleButton" id="snap_to_grid_toggle_button">
<property name="tooltip_text" translatable="yes">Snap to Grid When Moving the Selection</property>
<property name="action-name">win.snap-positions</property>
<property name="icon_name">snap-to-grid-symbolic</property>
<style>
<class name="flat" />
<class name="sidebar_action_button" />
</style>
</object>
</child>
<child>
<object class="GtkButton" id="selection_select_all_button">
<property name="tooltip_text" translatable="yes">Select All Strokes</property>
Expand Down Expand Up @@ -137,4 +148,4 @@
</object>
</child>
</template>
</interface>
</interface>