chore(flutter_desktop): improve title and heading appearance (#6658)

This commit is contained in:
Richard Shiue 2024-10-29 16:25:13 +03:00 committed by GitHub
parent cee0e2ed42
commit 8f58c39448
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 4 deletions

View File

@ -103,7 +103,7 @@ class _InnerCoverTitleState extends State<_InnerCoverTitle> {
final fontStyle = Theme.of(context)
.textTheme
.bodyMedium!
.copyWith(fontSize: 38.0, fontWeight: FontWeight.w700);
.copyWith(fontSize: 40.0, fontWeight: FontWeight.w700);
final width = context.read<DocumentAppearanceCubit>().state.width;
return BlocConsumer<ViewBloc, ViewState>(
listenWhen: (previous, current) =>

View File

@ -173,8 +173,6 @@ class EditorStyleCustomizer {
final String? fontFamily;
final List<double> fontSizes;
final double fontSize;
final FontWeight fontWeight =
level <= 2 ? FontWeight.w700 : FontWeight.w600;
if (UniversalPlatform.isMobile) {
final state = context.read<DocumentPageStyleBloc>().state;
fontFamily = state.fontFamily;
@ -192,7 +190,7 @@ class EditorStyleCustomizer {
fontSize,
];
}
return baseTextStyle(fontFamily, fontWeight: fontWeight).copyWith(
return baseTextStyle(fontFamily, fontWeight: FontWeight.w600).copyWith(
fontSize: fontSizes.elementAtOrNull(level - 1) ?? fontSize,
);
}