-
-
Notifications
You must be signed in to change notification settings - Fork 44
feat: allow scaling arrows #38
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
Conversation
Yes the scale should apply to the arrow body and tip at the same time, even for a first version I'd say. Shouldn't be too hard to do I suppose? |
This PR already does that - I meant that we might want to allow different scales for body and tip in the future |
(line 79 scales the body, line 94 scales the tip) |
Why would we want to scale differently the body and the tip? No it's fine like that. In your screenshot I see a thin white separation between the rectangle and the triangle. I don't think the current implementation has this issue. In any case, could you check that? Thanks. |
Yeah you're right, it at first looked to me like the old lichess app uses different scalings there, but at a closer look that was just my brain playing tricks. Will take a look at the separation issue! |
Ok I tested this again, and the |
If the problem is only on linux, that's fine. Can you please send a screenshot from an emulator or device with the scaling to show it's fine? Thanks. |
Heres a screenshot from lichess-org/mobile#828, doesn't look like it has the issue. Let me know if you want a screenshot of the example app running on Android instead. |
No that's fine, thanks. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please solve the conflicts and put the new version? Then I merge it. Thanks.
All done, thanks for the review! |
I'd need this for implementing different arrow sizes in the mobile app, based on the engine evaluation of each move.
This is a really naive approach of course, but it will probably be alright for starters? We might want to apply a different scaling to the arrow body vs its tip in the future (Looks like lichess web UI does that as well).