Skip to content

Conversation

dweymouth
Copy link
Contributor

@dweymouth dweymouth commented Aug 10, 2025

Description:

Fixes #5894

I may not have gotten 100% of them but it doesn't entirely matter -- the point is for the widgets code to be a demonstration of the current, recommended way to write custom widgets, using the latest theme helper APIs introduced in 2.5.

Checklist:

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

Where applicable:

  • Public APIs match existing style and have Since: line.
  • Any breaking changes have a deprecation path or have been discussed.
  • Check for binary size increases when importing new modules.

@coveralls
Copy link

coveralls commented Aug 10, 2025

Coverage Status

coverage: 62.216% (-0.2%) from 62.379%
when pulling 49f6415 on dweymouth:colorforwidget
into bcf11ad on fyne-io:develop.

@dweymouth dweymouth marked this pull request as ready for review August 10, 2025 18:47
Copy link
Member

@andydotxyz andydotxyz left a comment

Choose a reason for hiding this comment

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

Thanks, it is a nice cleanup.

However on the methods that look up many items in a row there will now be additional hits to the theme cache.
That is obviously fixed by your other PR to cache the current widget in those calls, so should this PR be held back until that lands?

assert.False(t, check.Disabled())
}

func TestCheckRenderer_ApplyTheme(t *testing.T) {
Copy link
Member

Choose a reason for hiding this comment

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

Rather than removed shouldn't this be updated to test the alternative theme like we have done in other widgets (the "ugly" variant)?

@dweymouth dweymouth marked this pull request as draft September 5, 2025 17:14
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