Add dock margin size customization feature #2390
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
I added a feature to customize the dock margin size when panel mode is enabled. This feature introduces a slider in the settings, allowing users to adjust the margin from the edge of the screen (default: 0px) up to 300px.
This is particularly useful for setups with differently sized monitors, where getting a consistent amount of space from the edge of the screen can be difficult without access to dynamic units (e.g. vw, %, etc.)

Implementation Details
Added a new GSettings key (dock-margin-size) to store the margin value.
Updated the settings UI (Settings.ui) to include a slider for margin adjustment.
Modified the dock positioning logic in docking.js to respect the margin value.
Bound the slider to the GSettings key in prefs.js.
Testing
Tested on GNOME Shell 46 with a dual-monitor setup. (1920x1080 and 3440x1440)
Verified that the margin applies correctly in panel mode, both vertically and horizontally.
Confirmed that the default behavior (0px margin) remains unchanged.
Sidenote
This is my first contribution to anything open-source, so feedback is very welcome. If you'd like me to change anything, please let me know.