Allow reducing SplitContainer drag bar thickness using the default themes #74691
+8
−8
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.
Using the default themes, the grabber handles of SplitContainers have some white space, making them 8px thick although the actual drawn area is 2px wide only.
Due to a minimum size enforcement based on the grabber graphic size, it is impossible to have a splitter bar thinner
than 8px without providing an alternate grabber graphic.
I discovered this when experimenting with the Godot theme to have thinner separators between panels.
This fixes both the default and editor themes.
The default splitter bar separation remains 8px to avoid breaking changes. But it can now be reduced down to 2px without the need to provide an alternate graphic.
Experimenting with the editor unveiled an issue in the alignment of the T-shaped center grabbers on the 3D editor.
Happens when the view is split in 3 and the separation is something else than 8px.
This commit also fixes this point, simplifying the approach by centering those specific grabber graphics in all cases and adjusting the whitespaces in the graphics.
Compatibility with 3.x: needs adjustement to the 3.x default and editor themes.