diff --git a/.vscode/settings.json b/.vscode/settings.json index 77e005a9c9ae90b156a175757843e44dc6c1248b..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,7 +0,0 @@ -{ - "workbench.colorCustomizations": { - "activityBar.background": "#123046", - "titleBar.activeBackground": "#194363", - "titleBar.activeForeground": "#F9FBFD" - } -} \ No newline at end of file diff --git a/lib/ui/huge_listview/lazy_loading_gallery.dart b/lib/ui/huge_listview/lazy_loading_gallery.dart index d28f11196af3317495648ea5fb6650c77d2669c8..6d20af8c90b85c0a620da8abf91c478431b199a2 100644 --- a/lib/ui/huge_listview/lazy_loading_gallery.dart +++ b/lib/ui/huge_listview/lazy_loading_gallery.dart @@ -33,7 +33,6 @@ class LazyLoadingGallery extends StatefulWidget { final String tag; final String logTag; final Stream currentIndexStream; - final bool smallerTodayFont; LazyLoadingGallery( this.files, @@ -44,7 +43,6 @@ class LazyLoadingGallery extends StatefulWidget { this.selectedFiles, this.tag, this.currentIndexStream, { - this.smallerTodayFont, this.logTag = "", Key key, }) : super(key: key ?? UniqueKey()); @@ -190,7 +188,6 @@ class _LazyLoadingGalleryState extends State { child: getDayWidget( context, _files[0].creationTime, - widget.smallerTodayFont, ), ), ValueListenableBuilder( diff --git a/lib/ui/viewer/gallery/collection_page.dart b/lib/ui/viewer/gallery/collection_page.dart index 7aedb8322aed07a827972662d5ef0f1e52d0cf4d..554b252c354ab3a487f1eb9230dde787cdb3f7c0 100644 --- a/lib/ui/viewer/gallery/collection_page.dart +++ b/lib/ui/viewer/gallery/collection_page.dart @@ -66,7 +66,6 @@ class CollectionPage extends StatelessWidget { tagPrefix: tagPrefix, selectedFiles: _selectedFiles, initialFiles: initialFiles, - smallerTodayFont: true, albumName: c.collection.name, ); return Scaffold( diff --git a/lib/ui/viewer/gallery/gallery.dart b/lib/ui/viewer/gallery/gallery.dart index d3b6a9aad845f6102c2a18cdc33960de25edba0f..c7f2c1739547d7c82210a404ae5568cc411c45ea 100644 --- a/lib/ui/viewer/gallery/gallery.dart +++ b/lib/ui/viewer/gallery/gallery.dart @@ -39,7 +39,6 @@ class Gallery extends StatefulWidget { final Widget header; final Widget footer; final Widget emptyState; - final bool smallerTodayFont; final String albumName; final double scrollBottomSafeArea; @@ -55,7 +54,6 @@ class Gallery extends StatefulWidget { this.footer = const SizedBox(height: 120), this.emptyState = const EmptyState(), this.scrollBottomSafeArea = 120.0, - this.smallerTodayFont = false, this.albumName = '', Key key, }) : super(key: key); @@ -247,7 +245,6 @@ class _GalleryState extends State { .on() .where((event) => event.tag == widget.tagPrefix) .map((event) => event.index), - smallerTodayFont: widget.smallerTodayFont, logTag: _logTag, ); if (widget.header != null && index == 0) { diff --git a/lib/utils/date_time_util.dart b/lib/utils/date_time_util.dart index 22f75cf13651c5604d1dd624dc3e0fa98605cec4..6df7c77e41bb509698670911adc9776b0d7ba583 100644 --- a/lib/utils/date_time_util.dart +++ b/lib/utils/date_time_util.dart @@ -1,6 +1,7 @@ import 'package:flutter/foundation.dart'; import 'package:flutter/material.dart'; import 'package:intl/intl.dart'; +import 'package:photos/theme/ente_theme.dart'; const Set monthWith31Days = {1, 3, 5, 7, 8, 10, 12}; const Set monthWith30Days = {4, 6, 9, 11}; @@ -194,19 +195,16 @@ bool isLeapYear(DateTime dateTime) { Widget getDayWidget( BuildContext context, int timestamp, - bool smallerTodayFont, ) { + final colorScheme = getEnteColorScheme(context); + final textTheme = getEnteTextTheme(context); return Container( alignment: Alignment.centerLeft, child: Text( getDayTitle(timestamp), - style: (getDayTitle(timestamp) == "Today" && !smallerTodayFont) - ? Theme.of(context).textTheme.headline5 - : Theme.of(context).textTheme.caption?.copyWith( - fontSize: 16, - fontWeight: FontWeight.w600, - fontFamily: 'Inter-SemiBold', - ), + style: (getDayTitle(timestamp) == "Today") + ? textTheme.body + : textTheme.body.copyWith(color: colorScheme.textMuted), ), ); }