Skip to content

armgit / ente

Public Imported from GitHub
0

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

Update feed screen styling for light mode

ashilkn1d3173a4123b
diff --git a/mobile/apps/photos/lib/ui/social/feed_screen.dart b/mobile/apps/photos/lib/ui/social/feed_screen.dart
index 3cb1c299db..7c788285ff 100644
--- a/mobile/apps/photos/lib/ui/social/feed_screen.dart
+++ b/mobile/apps/photos/lib/ui/social/feed_screen.dart
@@ -108,13 +108,14 @@ class _FeedScreenState extends State<FeedScreen> {
@override
Widget build(BuildContext context) {
- final colorScheme = getEnteColorScheme(context);
final textTheme = getEnteTextTheme(context);
+ final isDark = Theme.of(context).brightness == Brightness.dark;
return Scaffold(
+ backgroundColor: isDark ? null : const Color(0xFFFAFAFA),
appBar: AppBar(
automaticallyImplyLeading: false,
- backgroundColor: colorScheme.backgroundBase,
+ backgroundColor: isDark ? null : const Color(0xFFFAFAFA),
elevation: 0,
centerTitle: false,
leading: IconButtonWidget(
diff --git a/mobile/apps/photos/lib/ui/social/widgets/feed_item_widget.dart b/mobile/apps/photos/lib/ui/social/widgets/feed_item_widget.dart
index 2e13bc64e1..5ede0e9da8 100644
--- a/mobile/apps/photos/lib/ui/social/widgets/feed_item_widget.dart
+++ b/mobile/apps/photos/lib/ui/social/widgets/feed_item_widget.dart
@@ -159,7 +159,9 @@ class _FeedTypeIconWithTimeline extends StatelessWidget {
width: 32,
height: 32,
decoration: BoxDecoration(
- color: colorScheme.backgroundElevated,
+ color: isDarkMode
+ ? colorScheme.backgroundElevated
+ : const Color(0xFFFFFFFF),
shape: BoxShape.circle,
),
child: Center(
diff --git a/mobile/apps/photos/lib/ui/social/widgets/feed_preview_item_widget.dart b/mobile/apps/photos/lib/ui/social/widgets/feed_preview_item_widget.dart
index 5d9678e6dc..3902c3a4ca 100644
--- a/mobile/apps/photos/lib/ui/social/widgets/feed_preview_item_widget.dart
+++ b/mobile/apps/photos/lib/ui/social/widgets/feed_preview_item_widget.dart
@@ -1,4 +1,5 @@
import "package:flutter/material.dart";
+import "package:hugeicons/hugeicons.dart";
import "package:photos/extensions/user_extension.dart";
import "package:photos/generated/l10n.dart";
import "package:photos/models/api/collection/user.dart";
@@ -212,10 +213,14 @@ class _FeedTypeIconBadge extends StatelessWidget {
],
),
child: Center(
- child: Icon(
- Icons.notifications_outlined,
- size: 14,
- color: colorScheme.textBase,
+ child: Transform.rotate(
+ angle: -0.08,
+ child: HugeIcon(
+ // Icons.notifications_outlined,
+ icon: HugeIcons.strokeRoundedNotification01,
+ size: 14,
+ color: colorScheme.textBase,
+ ),
),
),
);