Skip to content
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

fix(gtk): width size of listbox and download button #1434

Merged
merged 2 commits into from
Aug 9, 2024

Conversation

Ja7ad
Copy link
Contributor

@Ja7ad Ja7ad commented Jul 25, 2024

Description

This PR fix width of list box items in prune node and download button.

@Ja7ad Ja7ad added this to the v1.4.0 milestone Jul 25, 2024
@Ja7ad Ja7ad requested a review from b00f July 25, 2024 08:40

ssDLBtn, err := gtk.ButtonNewWithLabel("⏬ Download")
fatalErrorCheck(err)
setMargin(ssDLBtn, 10, 5, 1, 1)
ssDLBtn.SetHAlign(gtk.ALIGN_CENTER)
ssDLBtn.SetSizeRequest(600, -1)
ssDLBtn.SetSizeRequest(700, -1)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What happens if we don't set size?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What happens if we don't set size?

Make smaller size as default, gtk don't support auto size as percent.

@b00f b00f modified the milestones: v1.4.0, v1.4.1 Aug 3, 2024
@b00f b00f added the Pactus-GUI label Aug 3, 2024
@b00f
Copy link
Collaborator

b00f commented Aug 5, 2024

@Ja7ad fix PR's title.

@b00f b00f changed the title fix: width size of listbox and download button fix(gtk): width size of listbox and download button Aug 9, 2024
@b00f b00f merged commit dcdb8bf into pactus-project:main Aug 9, 2024
10 of 11 checks passed
@Ja7ad Ja7ad modified the milestones: v1.4.1, v.1.5.0 Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants