Code Monkey home page Code Monkey logo

Comments (5)

dweymouth avatar dweymouth commented on July 1, 2024

You are putting the button in a container with layout (GridWrapLayout). The Resize function on button will be called by the layout to manage the size and position. If you want to manually resize widgets using Resize, you must put them in a container without a layout (container.NewWithoutLayout) and then you need to manually manage the size and position. Or more likely what you want is a different layout that allows the buttons to be bigger.

from fyne.

kingsley8524267 avatar kingsley8524267 commented on July 1, 2024

I want make the logo become bigger, using container.NewWithoutLayout is make the size bigger, but not the logo size
image

from fyne.

dweymouth avatar dweymouth commented on July 1, 2024

The size of the logo is managed by the button widget and is set to a standard size. If you need the icon to be bigger, you will need to use a custom widget, or open a feature request (not a bug report) for allowing the button icons to scale up if the button itself is larger.

from fyne.

kingsley8524267 avatar kingsley8524267 commented on July 1, 2024

can you give me an example of custom widget?

from fyne.

andydotxyz avatar andydotxyz commented on July 1, 2024

https://docs.fyne.io/extend/custom-widget

from fyne.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.