Skip to content

Conversation

@HalfWhitt
Copy link
Member

Fixes #3946

I also noticed that Toga's color imports are inconsistent; sometimes we import from Travertino, sometimes from Toga, and in a couple of files, we even import things from both, so I've standardized those all to use toga.colors.

PR Checklist:

  • All new features have been tested
  • All new features have been documented
  • I have read the CONTRIBUTING.md file
  • I will abide by the code of conduct

@HalfWhitt
Copy link
Member Author

Interesting. I'm not sure what's different about local vs CI configurations, but when I ran it locally it was apparently silencing deprecation warnings.

Copy link
Member

@freakboy3742 freakboy3742 left a comment

Choose a reason for hiding this comment

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

One minor tweak to the change note to more strongly discourage Color.parse(), and I think this is good to go.

@freakboy3742 freakboy3742 merged commit ef8305c into beeware:main Dec 11, 2025
56 checks passed
@HalfWhitt HalfWhitt deleted the color-parse-method branch December 11, 2025 02:22
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.

Move color-parsing function to static method

2 participants