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

Defer to system theme when a custom theme delegates to DefaultTheme #5231

Open
wants to merge 6 commits into
base: develop
Choose a base branch
from

Conversation

andydotxyz
Copy link
Member

@andydotxyz andydotxyz commented Oct 28, 2024

I discovered that an app with a partial custom theme will delegate to the builtin theme instead of the rendered one. These can be different if you have a system theme installed.

  • I still have to refactor the base config dir code

Checklist:

  • Tests included.
  • Lint and formatter run with no errors.
  • Tests all pass.

I still have to refactor the base config dir code
@coveralls
Copy link

coveralls commented Oct 28, 2024

Coverage Status

coverage: 59.98% (+0.02%) from 59.961%
when pulling c64f5b2 on andydotxyz:fix/systemthemefallback
into de361f6 on fyne-io:develop.

@andydotxyz andydotxyz marked this pull request as ready for review November 25, 2024 21:21
app/app.go Outdated
@@ -172,6 +172,10 @@ func newAppWithDriver(d fyne.Driver, clipboard fyne.Clipboard, id string) fyne.A
return newApp
}

func rootConfigDir() string {
return app.RootConfigDir()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we not just call that function directly instead of indirectly through this function?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for that :) fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants