How to round button widget in Fyne golang?

huangapple go评论96阅读模式
英文:

How to round button widget in Fyne golang?

问题

有人知道如何在Fyne golang中将按钮小部件或其他小部件设置为圆角吗?查看了文档,似乎找不到相关内容。

英文:

Does anyone know how to round a button widget in or any other widget in Fyne golang? Looked through the documentation can't seem find anything related to it.

答案1

得分: 1

标准小部件不提供调整其图形表示的能力。该API基于行为和结果,而不是图形定义。

您需要创建一种自定义小部件来构建一个不像标准按钮的按钮。

英文:

The standard widgets don’t expose the ability to tweak their graphical representation. The API is based on behaviour and outcomes rather than graphical definition.

You would need to make some sort of custom widget to build a button that does not look like a standard button.

huangapple
  • 本文由 发表于 2022年8月3日 04:26:46
  • 转载请务必保留本文链接:https://go.coder-hub.com/73213419.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定