Skip to content

app style #853

Closed Answered by kkoreilly
ddkwork asked this question in Q&A
Jan 24, 2024 · 3 comments · 2 replies
Discussion options

You must be logged in to vote

The icons are smaller because the size of the icons is set in the button styles. You can change that with the following code:

bt := gi.NewButton(parent).SetIcon("my_icon")
bt.OnWidgetAdded(func(w Widget) {
		if w.PathFrom(bt) == "parts/icon" {
			w.Style(func(s *styles.Style) {
				s.Min.Set(units.Dp(30)) // or whatever value you want
			})
                }
})

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@kkoreilly
Comment options

Answer selected by ddkwork
@ddkwork
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants