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

Fix single pixel lines #2299

Merged
merged 2 commits into from Jul 26, 2021
Merged

Fix single pixel lines #2299

merged 2 commits into from Jul 26, 2021

Conversation

andydotxyz
Copy link
Member

Description:

Better support single px lines even on hidpi screens

Fixes #2298

Checklist:

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

@andydotxyz andydotxyz mentioned this pull request Jun 25, 2021
@andydotxyz andydotxyz changed the title Fix/2298 Fix single pixel lines Jun 26, 2021
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.

Are the iOS build changes supposed to be part of this PR? It looks to be a good change, but it seems like it might have accidentally slipped in.

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.

The lines on the colour wheels in the test images looks like they are almost too thin. Is that expected? If yes, should we perhaps make them a bit thicker?

@andydotxyz
Copy link
Member Author

The lines on the colour wheels in the test images looks like they are almost too thin. Is that expected? If yes, should we perhaps make them a bit thicker?

They were coded as 0px thick, so drawing them as thin as possible is probably what was intended?

@andydotxyz
Copy link
Member Author

andydotxyz commented Jul 24, 2021

Are the iOS build changes supposed to be part of this PR? It looks to be a good change, but it seems like it might have accidentally slipped in.

I think it's some weird merge / rebase artefact - I have re-merged in develop and the changes don't appear in the diff.

@Jacalz
Copy link
Member

Jacalz commented Jul 25, 2021

The lines on the colour wheels in the test images looks like they are almost too thin. Is that expected? If yes, should we perhaps make them a bit thicker?

They were coded as 0px thick, so drawing them as thin as possible is probably what was intended?

Hmm, maybe.I personally think that they would look better a little bit thicker, closer to before this change.

@andydotxyz
Copy link
Member Author

Hmm, maybe.I personally think that they would look better a little bit thicker, closer to before this change.

This is a subjective matter. I far prefer hairlines like that to be as thin as possible.
The old version was 2px thick, the new is 1px - there isn't really an in-between.
If it needs to be adjusted I'd say we do so separately to this.

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.

Hmm, maybe.I personally think that they would look better a little bit thicker, closer to before this change.

This is a subjective matter. I far prefer hairlines like that to be as thin as possible.

The old version was 2px thick, the new is 1px - there isn't really an in-between.

If it needs to be adjusted I'd say we do so separately to this.

Alright then. I'd have preferred keeping them as thick as before, but I'm going to approve this.

@andydotxyz
Copy link
Member Author

andydotxyz commented Jul 26, 2021

Alright then. I'd have preferred keeping them as thick as before, but I'm going to approve this.

Maybe we should review it with @stuartmscott when he gets back, as he was the original author?
I won't pull it into v2.0.x so we have more time to reflect on whether it should be changed.

@andydotxyz andydotxyz merged commit e223195 into fyne-io:develop Jul 26, 2021
@andydotxyz andydotxyz deleted the fix/2298 branch July 26, 2021 10:24
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.

None yet

2 participants