~eliasnaur/gio#43:
Button with icons and text support

Hello, really don’t know if there’s a way to have buttons with text and icons?

Status
REPORTED
Submitter
Uti Michael
Assigned to
No-one
Submitted
3 months ago
Updated
3 months ago
Labels
No labels applied.

~eliasnaur 3 months ago

On Mon Oct 14, 2019 at 12:23 AM Uti Michael wrote:

Hello, really don’t know if there’s a way to have buttons with text and icons?

There is a button with text, and there is a button with an icon, but not one with both. I imagine it would be relatively straightforward to add icon support to the text variant.

-- elias

Uti Michael 3 months ago

You mean users can actually create custom button widgets?, seems I have to create custom layouts and there are unexportable functions like rrect and fill functions. Also are IconButtons only circular?

~eliasnaur 3 months ago

On Mon Oct 14, 2019 at 11:34 PM Uti Michael wrote:

You mean users can actually create custom button widgets?, seems I have to create custom layouts and there are unexportable functions like rrect and fill functions. Also are IconButtons only circular?

My suggestion was to send a patch that expanded the text button to optionally draw an icon.

However, since all of Gio is UNLICENSEd, you can also freely copy the necessary code and draw the icon button yourself.

-- elias

~metaclips 3 months ago

Hello, I was able to implement buttons with text and icon but currently having issues with reading image formats, png, jpg and svg. I noticed gio read image bytes in iconvg format, anyway we could use other image format or better still convert to icing

~metaclips 3 months ago

*iconvg

Register here or Log in to comment, or comment via email.