Skip to content

button with icon has wrong padding on right #4124

Closed
@pseidemann

Description

Checklist

  • I have searched the issue tracker for open issues that relate to the same problem, before opening a new one.
  • This issue only relates to a single bug. I will open new issues for any other problems.

Describe the bug

when a button has an icon, the padding on the left and the padding on the right have a mismatch, making the content of button look shifted to the right. the fix would be to have the right padding equal to the left padding.

How to reproduce

open demo and click on "widgets"

Screenshots

Screenshot 2023-08-03 at 00 41 46

Example code

widget.NewButtonWithIcon("Cancel", theme.CancelIcon(), func() {})

Fyne version

2.3.5

Go compiler version

1.20.6

Operating system and version

macOS 13.5

Additional Information

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    unverifiedA bug that has been reported but not verified

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions