Hi,l ALL.
I’d like to revive the topic in Hope GtkToolbar back to GTK4.
From that thread going by the list of features as posted:
- icon_size: support large icon
You can select the icon size when adding an image to a
GtkButton
. You can also change it at run time.
It is easy with the SVG image - it will be scaled automatically.
- icon_position: left, top, right, bottom, center
Position relative to what?
Position relative to the top left toolbar point.
- label: show or hide button’s label
Icons and labels should not be mixed; in general, you either want text or you want icons for
commonly known operations . Too many icons lead to complex icons that are hard to remember.
Well, MSW have it, Qt have it, OSX have it, GTK… does not.
But then GTK is already unique, right?
This feature exist for a reason - it is possible that user doesn’t pick what the tool do and so text with the image will help. No need to go over each button and wait for the tooltip to show up.
- flat/ relief: set button as flat or relief
This is just a case of adding the
flat
class to the button.
I hope it is already being done.
But it just gives you guys more work for no particular gain. The dedicated toolbar already had it.
- image: always show icon while icon or image is set
I don’t know what is this.
- Arrow to scroll hide buttons
If you mean moving buttons to a menu in case the toolbar is too small, then I’d probably suggest
changing the UI; moving widgets around isn’t the greatest way to maintain positional memory,
which is what people tend to rely on more than icons or text.
No, that is not what (s)he means.
I presume that what is meant here is following.
When the frame becomes to small and the toolbar is present - then the toolbar displays a little down arrow at the end. Clicking this arrow brings up a pop-up with all additional tools nicely packed in a grid.
And I presume this functionality was not done by the user but by the GTK itself.
- Style to switch small or large icon
Again, this is mostly a case of styling your UI.
No it is not.
Users can switch between different sizes of the tools - one user can be blind and one user can not. And so first will have small icons and the second will have big.
Are you saying now this will done with 2 different GTKBOX classes and it will be switched during the run-time when the user selects one or the other.
All in all “toolbar” is an essential class in the application development and it has to be brought back.
On top of everything - I’d like to know how to code this from C/C++, not the CSS.
CSS should define the “styles” of the existing object in addition to the C API of GTK - meaning every single CSS style should have an equivalent of the C function.
However it turns out not to be the case here.
Thank you.