-
Notifications
You must be signed in to change notification settings - Fork 7
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
feat: Update Fonts #583
feat: Update Fonts #583
Conversation
25a9e7b
to
c72602c
Compare
...gets/witnet/transactions/value_transfer/create_dialog_box/vtt_builder/01_recipient_step.dart
Show resolved
Hide resolved
963bc30
to
8bc257b
Compare
add Nimbus Mono Font Family for the extended theme
acfdf18
to
951ebe1
Compare
951ebe1
to
be6afec
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.
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.
@@ -57,21 +57,21 @@ class GenerateMnemonicCardState extends State<GenerateMnemonicCard> | |||
children: [ | |||
Text( | |||
localization.generateMnemonic01(_radioWordCount), | |||
style: theme.textTheme.bodyLarge, | |||
style: theme.textTheme.bodyMedium, |
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 mnemonic fontSize is too small. Also the description text seems a bit too small too.
@@ -40,7 +40,7 @@ class InitScreenState extends State<InitScreen> with TickerProviderStateMixin { | |||
), | |||
Text( | |||
localization.welcome, | |||
style: theme.textTheme.displayLarge, | |||
style: theme.textTheme.displayLarge?.copyWith(height: 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.
Avoid modifying the height here
@@ -181,7 +181,7 @@ class GeneralConfigState extends State<GeneralConfig> { | |||
localization.theme, | |||
style: theme.textTheme.titleMedium, | |||
), | |||
SizedBox(height: 16), | |||
SizedBox(height: 10), |
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.
why are you modifying the sizedBox?
@@ -190,15 +190,16 @@ class GeneralConfigState extends State<GeneralConfig> { | |||
style: theme.textTheme.titleMedium, | |||
), | |||
PaddedButton( | |||
padding: EdgeInsets.only(bottom: 16, top: 16), | |||
padding: EdgeInsets.only(bottom: 16, top: 10), |
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.
Avoid modifying the padding
text: localization.lockWalletLabel, | ||
type: ButtonType.primary, | ||
enabled: true, | ||
onPressed: () => logout(context)), | ||
SizedBox(height: 16), | ||
SizedBox(height: 12), |
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.
Avoid modfying the sizedBox
Text( | ||
localization.versionNumber(VERSION_NUMBER), | ||
style: theme.textTheme.titleSmall, | ||
style: theme.textTheme.bodyMedium | ||
?.copyWith(fontWeight: FontWeight.w700), |
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.
Avoid modifying the weight here
lib/widgets/switch.dart
Outdated
@@ -27,7 +27,7 @@ class CustomSwitch extends StatelessWidget { | |||
padding: EdgeInsets.only(left: 16), | |||
child: Text( | |||
primaryLabel, | |||
style: theme.textTheme.bodyLarge, | |||
style: theme.textTheme.bodyMedium?.copyWith(fontSize: 14), |
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.
avoid modifying the fontSize here
lib/widgets/transaction_item.dart
Outdated
@@ -66,7 +66,7 @@ class TransactionsItemState extends State<TransactionsItem> { | |||
transacionStatusCopy, | |||
textAlign: TextAlign.start, | |||
overflow: TextOverflow.ellipsis, | |||
style: theme.textTheme.bodySmall, | |||
style: theme.textTheme.bodyMedium?.copyWith(fontSize: 11), |
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.
Avoid modifying the size here
lib/widgets/transaction_item.dart
Outdated
Text(address, | ||
overflow: TextOverflow.fade, | ||
style: extendedTheme.monoRegularText | ||
?.copyWith(fontSize: 14)) |
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.
Lets create an extended theme for different mono font sizes
lib/widgets/transactions_list.dart
Outdated
@@ -120,7 +120,7 @@ class TransactionsListState extends State<TransactionsList> { | |||
if (widget.transactions.length > 0) { | |||
return ListView.builder( | |||
controller: _scroller, | |||
padding: EdgeInsets.only(top: 8), | |||
padding: EdgeInsets.only(top: 4), |
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.
Why is this necessary?
@@ -116,7 +116,8 @@ class WalletListState extends State<WalletList> { | |||
padding: EdgeInsets.all(0), | |||
text: localization.createOrImportLabel, | |||
color: theme.textTheme.displayMedium!.color, | |||
boldText: true, | |||
fontSize: 13, |
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.
Avoid modifying the fontSize here
Update fonts to match the redesign
close #581