font-scaling #672
No reviewers
Labels
No Label
android
arch
backlog
blocked-on-external
bug
bugbash
component/bindings
component/bine
component/connectivity
component/cwtch
component/tapir
component/ui
cwtch-1.14
cwtch-1.15
cwtch-beta-1.1
cwtch-beta-1.10
cwtch-beta-1.11
cwtch-beta-1.12
cwtch-beta-1.13
cwtch-beta-1.2
cwtch-beta-1.3
cwtch-beta-1.4
cwtch-beta-1.5
cwtch-beta-1.5.x
cwtch-beta-1.6
cwtch-beta-1.7
cwtch-beta-1.8
cwtch-beta-1.9
design
duplicate
enhancement
flutter
funding-needed
help wanted
hybrid-groups
in-nightly
in-progress
invalid
ios
linux
mac
need-replication-or-investigation
ops
packaging
post-stable
question
questionable
requires-more-effort-than-we-can-spare
rust
scheduled
stable-blocker
tails
testing-needed
tests
tor
waiting-on-fix-confirmation
waiting-on-new-flutter-feature
whonix
windows
wontfix
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: cwtch.im/cwtch-ui#672
Loading…
Reference in New Issue
No description provided.
Delete Branch "font-scaling"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.
Drone Build Status: success
https://build.openprivacy.ca/cwtch.im/cwtch-ui/338
@ -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),
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?
why not use
bodySmall
or something as defined below? or define this style below?as per chat:
a fast follow is scheduled to dedup dup widgets so that should cut down on this
@ -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),
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?
then again, it will make it easier in the future so all new Text fields dont need to manually specify the font as well?
oh it's all below, disreguard