Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SetTheme() behaves is not fully effective for widget.Form #2810

Closed
BabySid opened this issue Feb 27, 2022 · 2 comments
Closed

SetTheme() behaves is not fully effective for widget.Form #2810

BabySid opened this issue Feb 27, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@BabySid
Copy link

BabySid commented Feb 27, 2022

Describe the bug:

I have the same problem #842
When I SetTheme(), I found that the text color of FormItem did not refresh.
I checked my code and found that there should be no misuse in use. I searched the issue and found similar problems as above.

To Reproduce:

Steps to reproduce the behaviour:

  1. Run the code below

Screenshots:

When Theme is Light, it is normal.
微信图片_20220227181132
When Theme switch to Dark, I hope the text of FormItems is white, but it's actually black.
微信图片_20220227181136

Example code:

package main

import (
	"fyne.io/fyne/v2"
	"fyne.io/fyne/v2/app"
	"fyne.io/fyne/v2/theme"
	"fyne.io/fyne/v2/widget"
)

func main() {
	myApp := app.New()
	myWindow := myApp.NewWindow("Rick&Morty")
	myWindow.SetMainMenu(fyne.NewMainMenu(fyne.NewMenu("Menu",
		fyne.NewMenuItem("Dark Theme", func() { myApp.Settings().SetTheme(theme.DarkTheme()) }),
		fyne.NewMenuItem("Light Theme", func() { myApp.Settings().SetTheme(theme.LightTheme()) }),
	)))

	form := widget.NewForm()
	form.Append("ID", widget.NewLabel("Character's Name"))
	form.Append("be", widget.NewLabel("bebe"))

	myWindow.SetContent(form)
	myWindow.ShowAndRun()
}

Device (please complete the following information):

  • OS: Windows10
  • Version: 19044
  • Go version: 1.17.5
  • Fyne version: 2.1.3
@BabySid BabySid added the unverified A bug that has been reported but not verified label Feb 27, 2022
@andydotxyz andydotxyz added bug Something isn't working and removed unverified A bug that has been reported but not verified labels Feb 28, 2022
@andydotxyz andydotxyz added this to the Fixes (v2.1.x) milestone Feb 28, 2022
@andydotxyz
Copy link
Member

Thanks for reporting this, confirmed

@andydotxyz
Copy link
Member

Resolved for next release (v2.1.4 or v2.2.0)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants