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
Allow the ToolPicker to have a scrollbar #258
Conversation
@precla thanks for providing this PR, I like the idea but there is a problem, currently you can do something like this: To have the icons in two columns, I know some users like to have it that ways as it resamples the legacy layout. Now cannot do that anymore as you see the scrollbar always: Is there a way to combine both features? Try multiple columns and if you've used up all column space and some icons still hidden then show scrollbar? (btw I like you console prompt, what are you using? Is that plain zsh?) |
Oh and why is the Spectacle window so small? I thought they have a separate window for annotation? That one seems indeed to be to small for all the controls. |
First the important thing: console is KDE's Konsole, using oh-my-zsh with Hm, how to have icons in two columns? Looks like I missed the piece of code that enables that. And yes, Spectacle keeps the Annotator inside the current Spectacle window, using the current window size of Spectacle. |
Thanks, just tried it in Spectacle. Tho, would be nice if there is a function call that would do that, instead of the user having to resize it. Not every user will notice this. I will take a closer look into this on the weekend when I have more time, maybe we can have both scrollbar and this resize with multiple columns. |
Problem is you don't know how far to go, you could always assume to go with two rows but ksnip for example goes with one. Or someone would like four columns and three rows. Tastes are different.
That would be lovely. Let me know if you need anything. :) |
a59c14d
to
46356e0
Compare
Found the solution: Applied & tested it, almost as you need it :) . When the This one was missing: |
46356e0
to
ee970b7
Compare
Looking odlično :) Merging it into 0.5.3 so it get's delivered with the next patch. Thanks for providing this enhancement/fix! |
Zahvaljujem :) Have you tested it? Because of the weird bug with 3x3 and one icon missing :D |
Yes, I can reproduce it, also with 4x2 when two icons are in the last row but that's ok for now, it's minor issue, at least it's better then it was. One more think, what do you think of removing the second border? This widget is the only one with two. |
Yeah, let's do it. Looks much better :) |
The ToolPicker is never fully visible when kImageAnnotator is used embedded within an program, like Spectacle. Which makes it almost impossible for the user to know if there are more tools to choose from. Instead of going by pure luck/intuition and resizing the main window, in this example the window of Spectacle, showing a scrollbar by default gives a hint to the user that there are more tools available.
ee970b7
to
9dd330d
Compare
Added within this MR |
Merged, thanks again for providing the PR :) |
The ToolPicker is never fully visible when the kImageAnnotator window is smaller than the ToolPicker area.
Occurs especially when used embedded within an program, like Spectacle, which makes it almost
impossible for the user to know if there are more tools to choose from. Instead of going by pure
luck/intuition and resizing the main window, in this example the window of Spectacle, showing a scrollbar
when the window is too small to show all tools by default gives a hint to the user that there are more tools available.
The scroll bar would be only shown when needed, not always :)
How it currently looks within Spectacle: