mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-07 18:35:34 +00:00
example/kitchen: Use the button passed to iconAndTextButton.Layout
The global iconTextButton variable was used instead of the passed button. Signed-off-by: Fabian Geiselhart <me@f4814n.de>
This commit is contained in:
committed by
Elias Naur
parent
0e70fbc126
commit
b862f4f174
@@ -145,7 +145,7 @@ var (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func (b iconAndTextButton) Layout(gtx *layout.Context, button *widget.Button, icon *material.Icon, word string) {
|
func (b iconAndTextButton) Layout(gtx *layout.Context, button *widget.Button, icon *material.Icon, word string) {
|
||||||
b.theme.ButtonLayout().Layout(gtx, iconTextButton, func() {
|
b.theme.ButtonLayout().Layout(gtx, button, func() {
|
||||||
iconAndLabel := layout.Flex{Axis: layout.Horizontal, Alignment: layout.Middle}
|
iconAndLabel := layout.Flex{Axis: layout.Horizontal, Alignment: layout.Middle}
|
||||||
textIconSpacer := unit.Dp(5)
|
textIconSpacer := unit.Dp(5)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user