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

Introduce a new theme size name for rounded scrollbar corners #4839

Draft
wants to merge 4 commits into
base: develop
Choose a base branch
from

Conversation

dweymouth
Copy link
Contributor

@dweymouth dweymouth commented May 10, 2024

Description:

Fixes #4360

  • Tests included.
  • Lint and formatter run with no errors.
  • Tests all pass. <- need to update all the test images that contain scroll bars; I'm not sure how to do that

@dweymouth dweymouth changed the base branch from master to develop May 10, 2024 15:35
@andydotxyz
Copy link
Member

Seems more like it should be a new theme lookup - scrollbars aren't really a selection type I don't think.

@dweymouth dweymouth changed the title Round scrollbar using theme.SelectionRadiusSize Introduce a new theme size name for rounded scrollbar corners May 11, 2024
@dweymouth dweymouth added this to the "Elgin" release, early 2024 milestone May 11, 2024
Copy link
Member

@Jacalz Jacalz left a comment

Choose a reason for hiding this comment

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

I know this isn't completed but I just want to give my thumbs up to say that this looks great and would be a great inclusion for v2.5.0 👍

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 for adding this, just a question about the size

@@ -169,6 +169,8 @@ func (t *builtinTheme) Size(s fyne.ThemeSizeName) float32 {
return 5
case SizeNameSelectionRadius:
return 3
case SizeNameScrollBarRadius:
return 4
Copy link
Member

Choose a reason for hiding this comment

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

is 4 right? Should it not match the selection radius or size of the slider bars?
I have not looked at it rendered, but 3 seems right mathematically...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

4 was an arbitrary choice. I can switch it to 3

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.

Scroll bar should have rounded corners, at least in its expanded state
3 participants