-
-
Notifications
You must be signed in to change notification settings - Fork 310
feat: add setting to enable/disable piece magnification #889
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
| <string name="puzzleStormSubtitle" comment="Shown as a description for the 'Puzzle Storm' mode">Solve as many puzzles as possible in 3 minutes.</string> | ||
| <string name="greeting" comment="A greeting that is shown on the app's home page, e.g. 'Hello, GM Magnus'. %s is substituted with the user's name">Hello, %s</string> | ||
| <string name="greetingWithoutName" comment="Greeing that is shown on the app's home page when the user is not logged in.">Hello</string> | ||
| <string name="prefMagnifyDraggedPiece" comment="Title of a setting the settings screen. When enabled, the piece being dragged around the board will be magnified.">Magnify dragged piece</string> |
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.
Note: Since the setting already exists in the old app and is well known, I thought it would be okay to already add a translation.
1fdd8d7 to
bb3d296
Compare
|
Demo: magnify.webm |
| showLastMove: boardPrefs.boardHighlights, | ||
| enableCoordinates: boardPrefs.coordinates, | ||
| animationDuration: boardPrefs.pieceAnimationDuration, | ||
| dragFeedbackSize: boardPrefs.magnifyDraggedPiece ? 2.0 : 1.0, |
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.
Note: This logic is already duplicated (here and in the normal game screen), and once we have the board editor, we'll duplicate it again. Would it make sense to add a method to BoardPreferences that converts BoardPreferences to chessground.ChessBoardSettings and/or chessground.ChessBoardEditorSettings ?
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.
Done, added BoardPrefs.toBoardSettings()
(also rebased to fix conflicts)
bb3d296 to
2b9336b
Compare
2b9336b to
b04b8a1
Compare
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.
Thanks!
Fixes #770
Is it worth adding a unit test for this? Or do we rely on chessground behaving correctly here?