英文:
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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论