-
Notifications
You must be signed in to change notification settings - Fork 0
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
16 Replaced all fonts with Montserrat #196
base: dev
Are you sure you want to change the base?
Conversation
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.
The font looks good to me, except for the bug noted in #195.
However, I have a thought on centralizing the font changes: currently the change is made by updating the styling for each component to include a fontFamily
property, but I was thinking that another possibility would be to create custom Text components with the appropriate font styling and then update the screens to use those custom Text components. So we could have something like a BoldText component that is styled with Montserrat_700Bold and so on (perhaps with better naming).
My reasoning for this is that in the (very unlikely) case that we change the font type, size or boldness that we want for a certain type of text in the app (header text, button text, body text), we could change all of that type of text by editing one component file rather than each file that has that type of text.
Of course, this may have drawbacks I haven't considered, what are your thoughts on this?
Note: we should have edit access to Figma, so the font for tutorial images should be able to be updated |
Added Still have to update fonts in tutorial pictures. Settings page looks a little wonky - will have to update this. Wait for #205 to be merged into |
Switched order of end session and next round buttons
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.
Fixed the formatting issues for the buttons on the Settings screen and the Test Results screen. I changed the buttons on the Settings screen to be centered because I think it looks better but let me know if you think we should change back to right-aligned. |
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.
Changes
Added
RegularText
,MediumText
, andBoldText
components, and updated the code to use these. Also merged indev
and handled the conflicts. Fonts are imported and loaded in inApp.tsx
. There are constants set inconstants/fonts.tsx
for the strings of each font type, to be used for styling. If we change fonts at any point, we will only have to change the imports anduseFonts
statement inApp.tsx
and the declarations inconstants/fonts.tsx
. Updated fonts in tutorial pictures.Also edited game screen to switch order of buttons.
end session
is now on the left andnext round
is now on the right, to favor right-handed players. The corresponding tutorial image was updated. This was issue #206.Also fixed the Ananas-Pineapple formatting issue on Test Question 32. This was issue #195.
TODOs
Fonts
Closes #16
Closes #206
Closes #195