pencil2d / pencil

Pencil2D is an easy, intuitive tool to make 2D hand-drawn animations. Pencil2D is open source and cross-platform.
http://pencil2d.org
GNU General Public License v2.0
1.48k stars 272 forks source link

🐛 [BUG] - Shrink/resize the tools window at the maximum to just fit the content of the toolbar #1893

Open lobre opened 1 week ago

lobre commented 1 week ago

Description

When I only show the "tools window" and try to resize it to the minimum possible width, it does not go as far as just fitting the toolbar content.

image

You see here there is horizontal blank space while if you take a tool such as Pinta, it will naturally shrink to fit the content.

image

Expected result

It shrinks horizontally to fit the content of the toolbar.

Actual result

There is a gap on the right and the toolbar cannot be resized more.

Steps to reproduce

1. Click on the "Windows" menu and deselect everything except "Tools".
2. Grab the resize handle for the "Tools" window, and shrink it at the maximum to the left.

This is not a big issue and there might be reasons. I guess there is a hard-coded minimum width for other potentially larger widgets. But for people who like minimalist interfaces, it would be a nice addition to be able to shrink to fit the content.

Video or Image Reference

No response

System Information

- Pencil2D version: 0.7.0 (App Image)
- Operation system: Linux
- Drawing tablet: none
lobre commented 1 week ago

I realize the same happens if I try to position the toolbar horizontally at the top.

image

Jose-Moreno commented 1 week ago

@lobre Hi Lobric Thank you for your report! Indeed this has been an issue for a long time. From what I know it seems to stem from how the Qt Framework widgets work.

@MrStevns since you have worked on the UI recently and we briefly discussed the toolbox widget "width" in the past, when you're available could you perhaps provide a bit more insight in order to understand this issue better? Thanks in advance!