font-scaling #672

Merged
sarah merged 5 commits from font-scaling into trunk 2023-05-15 22:12:11 +00:00
Owner

An initial implementation of font scaling. While I was touching the font code I also took the opportunity to change up our font weights / switch defaults.

An initial implementation of font scaling. While I was touching the font code I also took the opportunity to change up our font weights / switch defaults.
dan was assigned by sarah 2023-05-15 19:08:52 +00:00
sarah added 4 commits 2023-05-15 19:08:53 +00:00
sarah added 1 commit 2023-05-15 19:19:02 +00:00
continuous-integration/drone/pr Build is pending Details
ab5d11b8bb
Update Translation / Text
Member
Drone Build Status: success https://build.openprivacy.ca/cwtch.im/cwtch-ui/338
dan reviewed 2023-05-15 19:28:30 +00:00
@ -47,3 +47,2 @@
textAlign: TextAlign.left,
style: TextStyle(overflow: TextOverflow.ellipsis),
codeStyle: TextStyle(overflow: TextOverflow.ellipsis),
style: TextStyle(fontSize: 12.0 * Provider.of<Settings>(context).fontScaling, fontWeight: FontWeight.normal, fontFamily: "Inter", overflow: TextOverflow.ellipsis),
Owner

do we want to set a few defined font sizes somewhere in theme so if we ever want to update, we don't have to search and replace a ton of 12s and etc?

do we want to set a few defined font sizes somewhere in theme so if we ever want to update, we don't have to search and replace a ton of 12s and etc?
Owner

why not use bodySmall or something as defined below? or define this style below?

why not use `bodySmall` or something as defined below? or define this style below?
Owner

as per chat:
a fast follow is scheduled to dedup dup widgets so that should cut down on this

as per chat: a fast follow is scheduled to dedup dup widgets so that should cut down on this
dan marked this conversation as resolved
@ -157,3 +156,1 @@
titleTextStyle: TextStyle(
color: opaque.current().mainTextColor,
),
titleTextStyle: TextStyle(fontWeight: FontWeight.bold, fontFamily: "Inter", color: opaque.current().mainTextColor, fontSize: opaque.fontScaling * 18.0),
Owner

yeah here we have title text style with 18 baked in.

but not sure we want all styles in the theme? or do we? prolly not? prolly just moving a few defined sizes in is enough?

yeah here we have title text style with 18 baked in. but not sure we want all styles in the theme? or do we? prolly not? prolly just moving a few defined sizes in is enough?
Owner

then again, it will make it easier in the future so all new Text fields dont need to manually specify the font as well?

then again, it will make it easier in the future so all new Text fields dont need to manually specify the font as well?
Owner

oh it's all below, disreguard

oh it's all below, disreguard
dan marked this conversation as resolved
dan approved these changes 2023-05-15 21:46:14 +00:00
sarah merged commit 7e74421a3d into trunk 2023-05-15 22:12:11 +00:00
Sign in to join this conversation.
No reviewers
dan
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: cwtch.im/cwtch-ui#672
No description provided.