From 8f58c394484bac4562c793aa9da013aceb4ae063 Mon Sep 17 00:00:00 2001 From: Richard Shiue <71320345+richardshiue@users.noreply.github.com> Date: Tue, 29 Oct 2024 16:25:13 +0300 Subject: [PATCH] chore(flutter_desktop): improve title and heading appearance (#6658) --- .../presentation/editor_plugins/header/cover_title.dart | 2 +- .../lib/plugins/document/presentation/editor_style.dart | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/header/cover_title.dart b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/header/cover_title.dart index d533dd5343..f5ad854d1c 100644 --- a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/header/cover_title.dart +++ b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/header/cover_title.dart @@ -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().state.width; return BlocConsumer( listenWhen: (previous, current) => diff --git a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_style.dart b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_style.dart index bcb0a2256e..0303743337 100644 --- a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_style.dart +++ b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_style.dart @@ -173,8 +173,6 @@ class EditorStyleCustomizer { final String? fontFamily; final List fontSizes; final double fontSize; - final FontWeight fontWeight = - level <= 2 ? FontWeight.w700 : FontWeight.w600; if (UniversalPlatform.isMobile) { final state = context.read().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, ); }