Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Update memories title typography

ashilkn7bc7e778f36f
diff --git a/mobile/apps/photos/changes/memories-title-typography.md b/mobile/apps/photos/changes/memories-title-typography.md
new file mode 100644
index 0000000000..fd488e3d07
--- /dev/null
+++ b/mobile/apps/photos/changes/memories-title-typography.md
@@ -0,0 +1 @@
+- Refined the typography used for memory titles on the home screen.
diff --git a/mobile/apps/photos/lib/ui/home/memories/memory_cover_widget.dart b/mobile/apps/photos/lib/ui/home/memories/memory_cover_widget.dart
index 84b7d408e9..3c8ba86ed0 100644
--- a/mobile/apps/photos/lib/ui/home/memories/memory_cover_widget.dart
+++ b/mobile/apps/photos/lib/ui/home/memories/memory_cover_widget.dart
@@ -4,7 +4,6 @@ import "package:flutter/material.dart";
import "package:photos/core/constants.dart";
import "package:photos/models/memories/smart_memory.dart";
import "package:photos/theme/colors.dart";
-import "package:photos/theme/ente_theme.dart";
import "package:photos/ui/home/memories/all_memories_page.dart";
import "package:photos/ui/home/memories/memory_cover_util.dart";
import "package:photos/ui/viewer/file/thumbnail_widget.dart";
@@ -49,11 +48,6 @@ class _MemoryCoverWidgetState extends State<MemoryCoverWidget> {
final memory = memories[index];
final isSeen = memory.isSeen();
- final titleFontWeight =
- widget.smartMemory.type == MemoryType.time ||
- widget.smartMemory.type == MemoryType.filler
- ? FontWeight.w300
- : FontWeight.w700;
return Padding(
padding: const EdgeInsets.symmetric(
@@ -121,12 +115,14 @@ class _MemoryCoverWidgetState extends State<MemoryCoverWidget> {
tag: title,
child: Text(
title,
- style: getEnteTextTheme(context).body.copyWith(
- fontSize: widget.height * 0.085,
+ style: TextStyle(
+ fontSize: 14,
+ height: 16 / 14,
fontFamily: TextStyles.outfitFontFamily,
package: TextStyles.fontPackage,
color: isSeen ? textFaintDark : Colors.white,
- fontWeight: titleFontWeight,
+ fontWeight: FontWeight.w700,
+ letterSpacing: 0,
),
textAlign: TextAlign.left,
),