Skip to content

armgit / ente

Public Imported from GitHub
0

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

Give icons background

laurenspriem6a4ce942673b
diff --git a/mobile/apps/photos/lib/ui/activity/activity_screen.dart b/mobile/apps/photos/lib/ui/activity/activity_screen.dart
index cea9870718..9cc30151f4 100644
--- a/mobile/apps/photos/lib/ui/activity/activity_screen.dart
+++ b/mobile/apps/photos/lib/ui/activity/activity_screen.dart
@@ -70,13 +70,23 @@ class _ActivityScreenState extends State<ActivityScreen> {
title: const Text("Rituals"),
centerTitle: false,
actions: [
- IconButton(
- padding: const EdgeInsets.only(right: 12),
- icon: const Icon(Icons.add_rounded),
- onPressed: () async {
- await showRitualEditor(context, ritual: null);
- },
- tooltip: "Add ritual",
+ Padding(
+ padding: const EdgeInsets.only(right: 16),
+ child: IconButton(
+ style: IconButton.styleFrom(
+ backgroundColor: getEnteColorScheme(context).fillFaint,
+ shape: RoundedRectangleBorder(
+ borderRadius: BorderRadius.circular(10),
+ ),
+ padding: const EdgeInsets.all(8),
+ minimumSize: const Size(40, 40),
+ ),
+ icon: const Icon(Icons.add_rounded),
+ onPressed: () async {
+ await showRitualEditor(context, ritual: null);
+ },
+ tooltip: "Add ritual",
+ ),
),
],
),
@@ -91,6 +101,7 @@ class _ActivityScreenState extends State<ActivityScreen> {
: summary;
final summaryToShare = displaySummary;
final iconColor = Theme.of(context).iconTheme.color;
+ final colorScheme = getEnteColorScheme(context);
final String sectionTitle = selectedRitual == null
? "Take a photo every day"
: (selectedRitual.title.isEmpty
@@ -139,14 +150,23 @@ class _ActivityScreenState extends State<ActivityScreen> {
height: 44,
child: Align(
alignment: Alignment.centerRight,
- child: Icon(
- Icons.share_outlined,
- size: 22,
- color: shareEnabled
- ? iconColor
- : Theme.of(context)
- .disabledColor
- .withValues(alpha: 0.7),
+ child: DecoratedBox(
+ decoration: BoxDecoration(
+ color: colorScheme.fillFaint,
+ borderRadius: BorderRadius.circular(10),
+ ),
+ child: Padding(
+ padding: const EdgeInsets.all(8),
+ child: Icon(
+ Icons.share_outlined,
+ size: 22,
+ color: shareEnabled
+ ? iconColor
+ : Theme.of(context)
+ .disabledColor
+ .withValues(alpha: 0.7),
+ ),
+ ),
),
),
),
diff --git a/mobile/apps/photos/lib/ui/activity/rituals_section.dart b/mobile/apps/photos/lib/ui/activity/rituals_section.dart
index b08fcdff89..24ec90fe54 100644
--- a/mobile/apps/photos/lib/ui/activity/rituals_section.dart
+++ b/mobile/apps/photos/lib/ui/activity/rituals_section.dart
@@ -31,6 +31,7 @@ class RitualsSection extends StatelessWidget {
@override
Widget build(BuildContext context) {
+ final colorScheme = getEnteColorScheme(context);
return Padding(
padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 8),
child: Column(
@@ -48,6 +49,14 @@ class RitualsSection extends StatelessWidget {
onPressed: () async {
await _showRitualEditor(context, ritual: null);
},
+ style: IconButton.styleFrom(
+ backgroundColor: colorScheme.fillFaint,
+ shape: RoundedRectangleBorder(
+ borderRadius: BorderRadius.circular(10),
+ ),
+ padding: const EdgeInsets.all(8),
+ minimumSize: const Size(40, 40),
+ ),
icon: const Icon(Icons.add_rounded),
),
],