Skip to content

armgit / ente

Public Imported from GitHub
0

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

Refactor background color usage across settings and viewer pages

AmanRajSinghMouryac288ea8b7fc8
diff --git a/mobile/apps/photos/lib/ente_theme_data.dart b/mobile/apps/photos/lib/ente_theme_data.dart
index b8b4c4bdaf..5c9808dd0f 100644
--- a/mobile/apps/photos/lib/ente_theme_data.dart
+++ b/mobile/apps/photos/lib/ente_theme_data.dart
@@ -14,7 +14,7 @@ final lightThemeData = ThemeData(
colorScheme: const ColorScheme.light(
primary: Colors.black,
secondary: Color.fromARGB(255, 163, 163, 163),
- surface: Colors.white,
+ surface: backgroundColorLight,
surfaceTint: Colors.transparent,
),
outlinedButtonTheme: buildOutlinedButtonThemeData(
@@ -28,9 +28,9 @@ final lightThemeData = ThemeData(
primary: const Color.fromRGBO(0, 0, 0, 1),
),
switchTheme: getSwitchThemeData(const Color.fromRGBO(102, 187, 106, 1)),
- scaffoldBackgroundColor: const Color.fromRGBO(255, 255, 255, 1),
+ scaffoldBackgroundColor: backgroundColorLight,
appBarTheme: const AppBarTheme().copyWith(
- backgroundColor: Colors.white,
+ backgroundColor: backgroundColorLight,
foregroundColor: Colors.black,
iconTheme: const IconThemeData(color: Colors.black),
elevation: 0,
@@ -94,7 +94,7 @@ final darkThemeData = ThemeData(
hintColor: const Color.fromRGBO(158, 158, 158, 1),
colorScheme: const ColorScheme.dark(
primary: Colors.white,
- surface: Color.fromRGBO(0, 0, 0, 1),
+ surface: backgroundColorDark,
secondary: Color.fromARGB(255, 163, 163, 163),
surfaceTint: Colors.transparent,
),
@@ -113,9 +113,9 @@ final darkThemeData = ThemeData(
onPrimary: const Color.fromRGBO(0, 0, 0, 1),
primary: const Color.fromRGBO(255, 255, 255, 1),
),
- scaffoldBackgroundColor: const Color.fromRGBO(0, 0, 0, 1),
+ scaffoldBackgroundColor: backgroundColorDark,
appBarTheme: const AppBarTheme().copyWith(
- color: Colors.black,
+ backgroundColor: backgroundColorDark,
elevation: 0,
),
cardColor: const Color.fromRGBO(10, 15, 15, 1.0),
@@ -239,11 +239,13 @@ extension CustomColorScheme on ColorScheme {
? const Color(0xFFF5F5F5)
: const Color(0xFF252525);
- Color get defaultBackgroundColor =>
- brightness == Brightness.light ? backgroundBaseLight : backgroundBaseDark;
+ Color get defaultBackgroundColor => brightness == Brightness.light
+ ? backgroundColorLight
+ : backgroundColorDark;
- Color get inverseBackgroundColor =>
- brightness != Brightness.light ? backgroundBaseLight : backgroundBaseDark;
+ Color get inverseBackgroundColor => brightness != Brightness.light
+ ? backgroundColorLight
+ : backgroundColorDark;
Color get defaultTextColor =>
brightness == Brightness.light ? textBaseLight : textBaseDark;
diff --git a/mobile/apps/photos/lib/services/memories_cache_service.dart b/mobile/apps/photos/lib/services/memories_cache_service.dart
index 6c98cb0da6..e06f5588e5 100644
--- a/mobile/apps/photos/lib/services/memories_cache_service.dart
+++ b/mobile/apps/photos/lib/services/memories_cache_service.dart
@@ -1215,7 +1215,7 @@ class MemoriesCacheService {
initialIndex: 0,
memories: personMemory.memories,
child: Container(
- color: backgroundBaseDark,
+ color: backgroundColorDark,
width: double.infinity,
height: double.infinity,
child: FullScreenMemory(personMemory.title, 0),
diff --git a/mobile/apps/photos/lib/theme/colors.dart b/mobile/apps/photos/lib/theme/colors.dart
index c6e8a7aacb..75f53caadc 100644
--- a/mobile/apps/photos/lib/theme/colors.dart
+++ b/mobile/apps/photos/lib/theme/colors.dart
@@ -4,7 +4,7 @@ import 'package:flutter/material.dart';
class EnteColorScheme {
// Background Colors
- final Color backgroundBase;
+ final Color backgroundColour;
final Color backgroundElevated;
final Color backgroundElevated2;
@@ -78,8 +78,6 @@ class EnteColorScheme {
final Color strokeSolid;
final Color strokeDark;
- final Color backgroundColour;
-
final Color greenBase;
final Color greenDark;
final Color greenDarker;
@@ -92,7 +90,7 @@ class EnteColorScheme {
final Color redLight;
const EnteColorScheme(
- this.backgroundBase,
+ this.backgroundColour,
this.backgroundElevated,
this.backgroundElevated2,
this.backdropBase,
@@ -133,7 +131,6 @@ class EnteColorScheme {
this.contentReverse,
this.strokeSolid,
this.strokeDark,
- this.backgroundColour,
this.greenBase,
this.greenDark,
this.greenDarker,
@@ -158,7 +155,7 @@ class EnteColorScheme {
}
const EnteColorScheme lightScheme = EnteColorScheme(
- backgroundBaseLight,
+ backgroundColorLight,
backgroundElevatedLight,
backgroundElevated2Light,
backdropBaseLight,
@@ -199,7 +196,6 @@ const EnteColorScheme lightScheme = EnteColorScheme(
contentReverseLight,
strokeLight,
strokeDarkLight,
- backgroundColourLight,
green,
greenDark,
greenDarker,
@@ -212,7 +208,7 @@ const EnteColorScheme lightScheme = EnteColorScheme(
);
const EnteColorScheme darkScheme = EnteColorScheme(
- backgroundBaseDark,
+ backgroundColorDark,
backgroundElevatedDark,
backgroundElevated2Dark,
backdropBaseDark,
@@ -253,7 +249,6 @@ const EnteColorScheme darkScheme = EnteColorScheme(
contentReverseDark,
strokeDark,
strokeDarkDark,
- backgroundColourDark,
green,
greenDark,
greenDarker,
@@ -265,12 +260,13 @@ const EnteColorScheme darkScheme = EnteColorScheme(
redLightDark,
);
-// Background Colors
-const Color backgroundBaseLight = Color.fromRGBO(255, 255, 255, 1);
+// Background
+const Color backgroundColorLight = Color.fromRGBO(250, 250, 250, 1);
+const Color backgroundColorDark = Color.fromRGBO(22, 22, 22, 1);
+
const Color backgroundElevatedLight = Color.fromRGBO(255, 255, 255, 1);
const Color backgroundElevated2Light = Color.fromRGBO(251, 251, 251, 1);
-const Color backgroundBaseDark = Color.fromRGBO(0, 0, 0, 1);
const Color backgroundElevatedDark = Color.fromRGBO(27, 27, 27, 1);
const Color backgroundElevated2Dark = Color.fromRGBO(37, 37, 37, 1);
@@ -473,7 +469,3 @@ const Color strokeDark = Color.fromRGBO(20, 20, 20, 1);
const Color strokeDarkLight = Color.fromRGBO(224, 224, 224, 1);
const Color strokeDarkDark = Color.fromRGBO(62, 62, 62, 1);
-
-// Background
-const Color backgroundColourLight = Color.fromRGBO(250, 250, 250, 1);
-const Color backgroundColourDark = Color.fromRGBO(22, 22, 22, 1);
diff --git a/mobile/apps/photos/lib/ui/collections/album/list_item.dart b/mobile/apps/photos/lib/ui/collections/album/list_item.dart
index e0df2c47bc..8649043154 100644
--- a/mobile/apps/photos/lib/ui/collections/album/list_item.dart
+++ b/mobile/apps/photos/lib/ui/collections/album/list_item.dart
@@ -1,7 +1,6 @@
import "package:ente_icons/ente_icons.dart";
import "package:flutter/material.dart";
import "package:hugeicons/hugeicons.dart";
-import "package:intl/intl.dart";
import "package:logging/logging.dart";
import "package:photos/core/configuration.dart";
import "package:photos/generated/l10n.dart";
@@ -132,9 +131,8 @@ class AlbumListItemWidget extends StatelessWidget {
builder: (context, snapshot) {
String countText = "";
if (snapshot.hasData) {
- countText = AppLocalizations.of(context).memoryCount(
+ countText = AppLocalizations.of(context).itemCount(
count: snapshot.data!,
- formattedCount: NumberFormat().format(snapshot.data!),
);
} else if (snapshot.hasError) {
Logger("AlbumListItemWidget").severe(
diff --git a/mobile/apps/photos/lib/ui/collections/album/row_item.dart b/mobile/apps/photos/lib/ui/collections/album/row_item.dart
index 7be48d8d24..6178bc1138 100644
--- a/mobile/apps/photos/lib/ui/collections/album/row_item.dart
+++ b/mobile/apps/photos/lib/ui/collections/album/row_item.dart
@@ -5,8 +5,8 @@ import 'package:ente_pure_utils/ente_pure_utils.dart';
import "package:figma_squircle/figma_squircle.dart";
import 'package:flutter/material.dart';
import 'package:hugeicons/hugeicons.dart';
-import "package:intl/intl.dart";
import "package:photos/core/configuration.dart";
+import "package:photos/generated/l10n.dart";
import "package:photos/models/api/collection/user.dart";
import 'package:photos/models/collection/collection.dart';
import 'package:photos/models/collection/collection_items.dart';
@@ -278,7 +278,9 @@ class AlbumRowItemWidget extends StatelessWidget {
}
if (cachedCount != null && cachedCount > 0) {
final String textCount =
- NumberFormat().format(cachedCount);
+ AppLocalizations.of(context).itemCount(
+ count: cachedCount,
+ );
return Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
diff --git a/mobile/apps/photos/lib/ui/components/notification_widget.dart b/mobile/apps/photos/lib/ui/components/notification_widget.dart
index 88c8f98624..83624120a3 100644
--- a/mobile/apps/photos/lib/ui/components/notification_widget.dart
+++ b/mobile/apps/photos/lib/ui/components/notification_widget.dart
@@ -229,7 +229,7 @@ class NotificationNoteWidget extends StatelessWidget {
padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 14),
decoration: BoxDecoration(
border: Border.all(color: colorScheme.strokeMuted),
- color: colorScheme.backgroundBase,
+ color: colorScheme.backgroundColour,
borderRadius: const BorderRadius.all(Radius.circular(8)),
),
child: Row(
diff --git a/mobile/apps/photos/lib/ui/family/family_ui.dart b/mobile/apps/photos/lib/ui/family/family_ui.dart
index fd30a7354e..2391146dd2 100644
--- a/mobile/apps/photos/lib/ui/family/family_ui.dart
+++ b/mobile/apps/photos/lib/ui/family/family_ui.dart
@@ -5,9 +5,7 @@ import 'package:photos/ui/components/buttons/button_widget_v2.dart';
import 'package:photos/ui/notification/toast.dart';
Color familyPageBackgroundColor(BuildContext context) {
- return Theme.of(context).brightness == Brightness.dark
- ? const Color(0xFF161616)
- : const Color(0xFFFAFAFA);
+ return getEnteColorScheme(context).backgroundColour;
}
class FamilyPageScaffold extends StatelessWidget {
diff --git a/mobile/apps/photos/lib/ui/growth/code_success_screen.dart b/mobile/apps/photos/lib/ui/growth/code_success_screen.dart
index b15439f2bf..75b7ae0feb 100644
--- a/mobile/apps/photos/lib/ui/growth/code_success_screen.dart
+++ b/mobile/apps/photos/lib/ui/growth/code_success_screen.dart
@@ -20,15 +20,12 @@ class CodeSuccessScreen extends StatelessWidget {
final colorScheme = getEnteColorScheme(context);
final textTheme = getEnteTextTheme(context);
final isDarkMode = Theme.of(context).brightness == Brightness.dark;
-
- final pageBackgroundColor =
- isDarkMode ? const Color(0xFF161616) : const Color(0xFFFAFAFA);
final cardColor =
isDarkMode ? const Color(0xFF212121) : const Color(0xFFFFFFFF);
const greenColor = Color(0xFF08C225);
return Scaffold(
- backgroundColor: pageBackgroundColor,
+ backgroundColor: colorScheme.backgroundColour,
body: SafeArea(
child: SingleChildScrollView(
child: Padding(
diff --git a/mobile/apps/photos/lib/ui/growth/referral_screen.dart b/mobile/apps/photos/lib/ui/growth/referral_screen.dart
index 11d6ef418f..f7eb04095f 100644
--- a/mobile/apps/photos/lib/ui/growth/referral_screen.dart
+++ b/mobile/apps/photos/lib/ui/growth/referral_screen.dart
@@ -45,13 +45,9 @@ class _ReferralScreenState extends State<ReferralScreen> {
@override
Widget build(BuildContext context) {
final colorScheme = getEnteColorScheme(context);
- final isDarkMode = Theme.of(context).brightness == Brightness.dark;
-
- final pageBackgroundColor =
- isDarkMode ? const Color(0xFF161616) : const Color(0xFFFAFAFA);
return Scaffold(
- backgroundColor: pageBackgroundColor,
+ backgroundColor: colorScheme.backgroundColour,
body: SafeArea(
child: FutureBuilder<Tuple2<ReferralView, UserDetails>>(
future: _fetchData(),
diff --git a/mobile/apps/photos/lib/ui/growth/storage_details_screen.dart b/mobile/apps/photos/lib/ui/growth/storage_details_screen.dart
index c15cc54816..faff0dc418 100644
--- a/mobile/apps/photos/lib/ui/growth/storage_details_screen.dart
+++ b/mobile/apps/photos/lib/ui/growth/storage_details_screen.dart
@@ -25,14 +25,11 @@ class _StorageDetailsScreenState extends State<StorageDetailsScreen> {
final colorScheme = getEnteColorScheme(context);
final textTheme = getEnteTextTheme(context);
final isDarkMode = Theme.of(context).brightness == Brightness.dark;
-
- final pageBackgroundColor =
- isDarkMode ? const Color(0xFF161616) : const Color(0xFFFAFAFA);
final cardColor =
isDarkMode ? const Color(0xFF212121) : const Color(0xFFFFFFFF);
return Scaffold(
- backgroundColor: pageBackgroundColor,
+ backgroundColor: colorScheme.backgroundColour,
body: SafeArea(
child: FutureBuilder<BonusDetails>(
future: storageBonusService.getBonusDetails(),
diff --git a/mobile/apps/photos/lib/ui/home/memories/all_memories_page.dart b/mobile/apps/photos/lib/ui/home/memories/all_memories_page.dart
index 955fe7a833..767ccf616a 100644
--- a/mobile/apps/photos/lib/ui/home/memories/all_memories_page.dart
+++ b/mobile/apps/photos/lib/ui/home/memories/all_memories_page.dart
@@ -46,7 +46,7 @@ class _AllMemoriesPageState extends State<AllMemoriesPage>
return Container(
width: double.infinity,
height: double.infinity,
- color: backgroundBaseDark,
+ color: backgroundColorDark,
child: PageView.builder(
controller: pageController,
physics: const BouncingScrollPhysics(),
diff --git a/mobile/apps/photos/lib/ui/map/map_screen.dart b/mobile/apps/photos/lib/ui/map/map_screen.dart
index 9fca49675b..b819f6f2a3 100644
--- a/mobile/apps/photos/lib/ui/map/map_screen.dart
+++ b/mobile/apps/photos/lib/ui/map/map_screen.dart
@@ -234,7 +234,7 @@ class _MapScreenState extends State<MapScreen> {
final colorScheme = getEnteColorScheme(context);
final bottomUnsafeArea = MediaQuery.of(context).padding.bottom;
return Container(
- color: colorScheme.backgroundBase,
+ color: colorScheme.backgroundColour,
child: Theme(
data: Theme.of(context).copyWith(
bottomSheetTheme: const BottomSheetThemeData(
diff --git a/mobile/apps/photos/lib/ui/settings/about/about_us_page.dart b/mobile/apps/photos/lib/ui/settings/about/about_us_page.dart
index 3fe29a78e2..5ad7e82913 100644
--- a/mobile/apps/photos/lib/ui/settings/about/about_us_page.dart
+++ b/mobile/apps/photos/lib/ui/settings/about/about_us_page.dart
@@ -17,13 +17,9 @@ class AboutUsPage extends StatelessWidget {
Widget build(BuildContext context) {
final colorScheme = getEnteColorScheme(context);
final textTheme = getEnteTextTheme(context);
- final isDarkMode = Theme.of(context).brightness == Brightness.dark;
-
- final pageBackgroundColor =
- isDarkMode ? const Color(0xFF161616) : const Color(0xFFFAFAFA);
return Scaffold(
- backgroundColor: pageBackgroundColor,
+ backgroundColor: colorScheme.backgroundColour,
body: SafeArea(
child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 16),
diff --git a/mobile/apps/photos/lib/ui/settings/account/account_settings_page.dart b/mobile/apps/photos/lib/ui/settings/account/account_settings_page.dart
index 869e9dad6f..1303d80989 100644
--- a/mobile/apps/photos/lib/ui/settings/account/account_settings_page.dart
+++ b/mobile/apps/photos/lib/ui/settings/account/account_settings_page.dart
@@ -24,13 +24,9 @@ class AccountSettingsPage extends StatelessWidget {
Widget build(BuildContext context) {
final colorScheme = getEnteColorScheme(context);
final textTheme = getEnteTextTheme(context);
- final isDarkMode = Theme.of(context).brightness == Brightness.dark;
-
- final pageBackgroundColor =
- isDarkMode ? const Color(0xFF161616) : const Color(0xFFFAFAFA);
return Scaffold(
- backgroundColor: pageBackgroundColor,
+ backgroundColor: colorScheme.backgroundColour,
body: SafeArea(
child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 16),
diff --git a/mobile/apps/photos/lib/ui/settings/appearance/appearance_settings_page.dart b/mobile/apps/photos/lib/ui/settings/appearance/appearance_settings_page.dart
index 2bb42e40c6..8a90835454 100644
--- a/mobile/apps/photos/lib/ui/settings/appearance/appearance_settings_page.dart
+++ b/mobile/apps/photos/lib/ui/settings/appearance/appearance_settings_page.dart
@@ -41,11 +41,8 @@ class _AppearanceSettingsPageState extends State<AppearanceSettingsPage> {
final textTheme = getEnteTextTheme(context);
final isDarkMode = Theme.of(context).brightness == Brightness.dark;
- final pageBackgroundColor =
- isDarkMode ? const Color(0xFF161616) : const Color(0xFFFAFAFA);
-
return Scaffold(
- backgroundColor: pageBackgroundColor,
+ backgroundColor: colorScheme.backgroundColour,
body: SafeArea(
child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 16),
diff --git a/mobile/apps/photos/lib/ui/settings/backup/backup_settings_page.dart b/mobile/apps/photos/lib/ui/settings/backup/backup_settings_page.dart
index 0c26068e26..a12846dcc6 100644
--- a/mobile/apps/photos/lib/ui/settings/backup/backup_settings_page.dart
+++ b/mobile/apps/photos/lib/ui/settings/backup/backup_settings_page.dart
@@ -15,13 +15,9 @@ class BackupSettingsPage extends StatelessWidget {
Widget build(BuildContext context) {
final colorScheme = getEnteColorScheme(context);
final textTheme = getEnteTextTheme(context);
- final isDarkMode = Theme.of(context).brightness == Brightness.dark;
-
- final pageBackgroundColor =
- isDarkMode ? const Color(0xFF161616) : const Color(0xFFFAFAFA);
return Scaffold(
- backgroundColor: pageBackgroundColor,
+ backgroundColor: colorScheme.backgroundColour,
body: SafeArea(
child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 16),
diff --git a/mobile/apps/photos/lib/ui/settings/backup/backup_settings_screen.dart b/mobile/apps/photos/lib/ui/settings/backup/backup_settings_screen.dart
index 96e7acc5e9..52c8ec52b7 100644
--- a/mobile/apps/photos/lib/ui/settings/backup/backup_settings_screen.dart
+++ b/mobile/apps/photos/lib/ui/settings/backup/backup_settings_screen.dart
@@ -31,13 +31,9 @@ class BackupSettingsScreen extends StatelessWidget {
Widget build(BuildContext context) {
final colorScheme = getEnteColorScheme(context);
final textTheme = getEnteTextTheme(context);
- final isDarkMode = Theme.of(context).brightness == Brightness.dark;
-
- final pageBackgroundColor =
- isDarkMode ? const Color(0xFF161616) : const Color(0xFFFAFAFA);
return Scaffold(
- backgroundColor: pageBackgroundColor,
+ backgroundColor: colorScheme.backgroundColour,
body: SafeArea(
child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 16),
diff --git a/mobile/apps/photos/lib/ui/settings/backup/free_space_options.dart b/mobile/apps/photos/lib/ui/settings/backup/free_space_options.dart
index e9a963edd9..e74d165173 100644
--- a/mobile/apps/photos/lib/ui/settings/backup/free_space_options.dart
+++ b/mobile/apps/photos/lib/ui/settings/backup/free_space_options.dart
@@ -43,13 +43,9 @@ class _FreeUpSpaceOptionsScreenState extends State<FreeUpSpaceOptionsScreen> {
Widget build(BuildContext context) {
final colorScheme = getEnteColorScheme(context);
final textTheme = getEnteTextTheme(context);
- final isDarkMode = Theme.of(context).brightness == Brightness.dark;
-
- final pageBackgroundColor =
- isDarkMode ? const Color(0xFF161616) : const Color(0xFFFAFAFA);
return Scaffold(
- backgroundColor: pageBackgroundColor,
+ backgroundColor: colorScheme.backgroundColour,
body: SafeArea(
child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 16),
diff --git a/mobile/apps/photos/lib/ui/settings/debug/debug_settings_page.dart b/mobile/apps/photos/lib/ui/settings/debug/debug_settings_page.dart
index d002a4d47a..920bed4c85 100644
--- a/mobile/apps/photos/lib/ui/settings/debug/debug_settings_page.dart
+++ b/mobile/apps/photos/lib/ui/settings/debug/debug_settings_page.dart
@@ -28,13 +28,9 @@ class _DebugSettingsPageState extends State<DebugSettingsPage> {
Widget build(BuildContext context) {
final colorScheme = getEnteColorScheme(context);
final textTheme = getEnteTextTheme(context);
- final isDarkMode = Theme.of(context).brightness == Brightness.dark;
-
- final pageBackgroundColor =
- isDarkMode ? const Color(0xFF161616) : const Color(0xFFFAFAFA);
return Scaffold(
- backgroundColor: pageBackgroundColor,
+ backgroundColor: colorScheme.backgroundColour,
body: SafeArea(
child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 16),
diff --git a/mobile/apps/photos/lib/ui/settings/debug/memories_debug_page.dart b/mobile/apps/photos/lib/ui/settings/debug/memories_debug_page.dart
index 3989b1d635..ceb1ba5484 100644
--- a/mobile/apps/photos/lib/ui/settings/debug/memories_debug_page.dart
+++ b/mobile/apps/photos/lib/ui/settings/debug/memories_debug_page.dart
@@ -62,9 +62,9 @@ class _MemoriesDebugPageState extends State<MemoriesDebugPage> {
final colorScheme = getEnteColorScheme(context);
final textTheme = getEnteTextTheme(context);
return Scaffold(
- backgroundColor: colorScheme.backgroundBase,
+ backgroundColor: colorScheme.backgroundColour,
appBar: AppBar(
- backgroundColor: colorScheme.backgroundBase,
+ backgroundColor: colorScheme.backgroundColour,
surfaceTintColor: Colors.transparent,
elevation: 0,
title: Text(
@@ -679,9 +679,9 @@ class _MemoryGalleryPageState extends State<_MemoryGalleryPage> {
final textTheme = getEnteTextTheme(context);
return GalleryFilesState(
child: Scaffold(
- backgroundColor: colorScheme.backgroundBase,
+ backgroundColor: colorScheme.backgroundColour,
appBar: AppBar(
- backgroundColor: colorScheme.backgroundBase,
+ backgroundColor: colorScheme.backgroundColour,
surfaceTintColor: Colors.transparent,
elevation: 0,
title: Text(widget.title, style: textTheme.largeBold),
diff --git a/mobile/apps/photos/lib/ui/settings/debug/ml_debug_settings_page.dart b/mobile/apps/photos/lib/ui/settings/debug/ml_debug_settings_page.dart
index a5fa6ea1d4..bc04ee9205 100644
--- a/mobile/apps/photos/lib/ui/settings/debug/ml_debug_settings_page.dart
+++ b/mobile/apps/photos/lib/ui/settings/debug/ml_debug_settings_page.dart
@@ -83,13 +83,9 @@ class _MLDebugSettingsPageState extends State<MLDebugSettingsPage> {
Widget build(BuildContext context) {
final colorScheme = getEnteColorScheme(context);
final textTheme = getEnteTextTheme(context);
- final isDarkMode = Theme.of(context).brightness == Brightness.dark;
-
- final pageBackgroundColor =
- isDarkMode ? const Color(0xFF161616) : const Color(0xFFFAFAFA);
return Scaffold(
- backgroundColor: pageBackgroundColor,
+ backgroundColor: colorScheme.backgroundColour,
body: SafeArea(
child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 16),
diff --git a/mobile/apps/photos/lib/ui/settings/debug/social_debug_screen.dart b/mobile/apps/photos/lib/ui/settings/debug/social_debug_screen.dart
index 3520aa1747..fd11bad955 100644
--- a/mobile/apps/photos/lib/ui/settings/debug/social_debug_screen.dart
+++ b/mobile/apps/photos/lib/ui/settings/debug/social_debug_screen.dart
@@ -13,13 +13,9 @@ class SocialDebugScreen extends StatelessWidget {
Widget build(BuildContext context) {
final colorScheme = getEnteColorScheme(context);
final textTheme = getEnteTextTheme(context);
- final isDarkMode = Theme.of(context).brightness == Brightness.dark;
-
- final pageBackgroundColor =
- isDarkMode ? const Color(0xFF161616) : const Color(0xFFFAFAFA);
return Scaffold(
- backgroundColor: pageBackgroundColor,
+ backgroundColor: colorScheme.backgroundColour,
body: SafeArea(
child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 16),
diff --git a/mobile/apps/photos/lib/ui/settings/gallery_settings_screen.dart b/mobile/apps/photos/lib/ui/settings/gallery_settings_screen.dart
index 4561a5bf19..de7d519ea2 100644
--- a/mobile/apps/photos/lib/ui/settings/gallery_settings_screen.dart
+++ b/mobile/apps/photos/lib/ui/settings/gallery_settings_screen.dart
@@ -36,13 +36,9 @@ class _GallerySettingsScreenState extends State<GallerySettingsScreen> {
Widget build(BuildContext context) {
final colorScheme = getEnteColorScheme(context);
final textTheme = getEnteTextTheme(context);
- final isDarkMode = Theme.of(context).brightness == Brightness.dark;
-
- final pageBackgroundColor =
- isDarkMode ? const Color(0xFF161616) : const Color(0xFFFAFAFA);
return Scaffold(
- backgroundColor: pageBackgroundColor,
+ backgroundColor: colorScheme.backgroundColour,
body: SafeArea(
child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 16),
diff --git a/mobile/apps/photos/lib/ui/settings/lock_screen/lock_screen_confirm_password.dart b/mobile/apps/photos/lib/ui/settings/lock_screen/lock_screen_confirm_password.dart
index e3f566ef30..647b299ba5 100644
--- a/mobile/apps/photos/lib/ui/settings/lock_screen/lock_screen_confirm_password.dart
+++ b/mobile/apps/photos/lib/ui/settings/lock_screen/lock_screen_confirm_password.dart
@@ -125,7 +125,7 @@ class _LockScreenConfirmPasswordState extends State<LockScreenConfirmPassword> {
child: Container(
decoration: BoxDecoration(
shape: BoxShape.circle,
- color: colorTheme.backgroundBase,
+ color: colorTheme.backgroundColour,
),
),
),
diff --git a/mobile/apps/photos/lib/ui/settings/lock_screen/lock_screen_confirm_pin.dart b/mobile/apps/photos/lib/ui/settings/lock_screen/lock_screen_confirm_pin.dart
index 7942d7424e..6e104766ea 100644
--- a/mobile/apps/photos/lib/ui/settings/lock_screen/lock_screen_confirm_pin.dart
+++ b/mobile/apps/photos/lib/ui/settings/lock_screen/lock_screen_confirm_pin.dart
@@ -115,7 +115,7 @@ class _LockScreenConfirmPinState extends State<LockScreenConfirmPin> {
child: Container(
decoration: BoxDecoration(
shape: BoxShape.circle,
- color: colorTheme.backgroundBase,
+ color: colorTheme.backgroundColour,
),
),
),
diff --git a/mobile/apps/photos/lib/ui/settings/lock_screen/lock_screen_options.dart b/mobile/apps/photos/lib/ui/settings/lock_screen/lock_screen_options.dart
index 8a27a78e07..16ca8aa596 100644
--- a/mobile/apps/photos/lib/ui/settings/lock_screen/lock_screen_options.dart
+++ b/mobile/apps/photos/lib/ui/settings/lock_screen/lock_screen_options.dart
@@ -157,14 +157,11 @@ class _LockScreenOptionsState extends State<LockScreenOptions> {
Widget build(BuildContext context) {
final colorScheme = getEnteColorScheme(context);
final textTheme = getEnteTextTheme(context);
- final isDarkMode = Theme.of(context).brightness == Brightness.dark;
// Figma colors: Light #FAFAFA, Dark #161616
- final pageBackgroundColor =
- isDarkMode ? const Color(0xFF161616) : const Color(0xFFFAFAFA);
return Scaffold(
- backgroundColor: pageBackgroundColor,
+ backgroundColor: colorScheme.backgroundColour,
body: SafeArea(
child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 16),
diff --git a/mobile/apps/photos/lib/ui/settings/lock_screen/lock_screen_password.dart b/mobile/apps/photos/lib/ui/settings/lock_screen/lock_screen_password.dart
index 39e476770f..dd8ad442f9 100644
--- a/mobile/apps/photos/lib/ui/settings/lock_screen/lock_screen_password.dart
+++ b/mobile/apps/photos/lib/ui/settings/lock_screen/lock_screen_password.dart
@@ -135,7 +135,7 @@ class _LockScreenPasswordState extends State<LockScreenPassword> {
child: Container(
decoration: BoxDecoration(
shape: BoxShape.circle,
- color: colorTheme.backgroundBase,
+ color: colorTheme.backgroundColour,
),
),
),
diff --git a/mobile/apps/photos/lib/ui/settings/lock_screen/lock_screen_pin.dart b/mobile/apps/photos/lib/ui/settings/lock_screen/lock_screen_pin.dart
index c2ca797bdc..ee9f532705 100644
--- a/mobile/apps/photos/lib/ui/settings/lock_screen/lock_screen_pin.dart
+++ b/mobile/apps/photos/lib/ui/settings/lock_screen/lock_screen_pin.dart
@@ -192,7 +192,7 @@ class _LockScreenPinState extends State<LockScreenPin> {
child: Container(
decoration: BoxDecoration(
shape: BoxShape.circle,
- color: colorTheme.backgroundBase,
+ color: colorTheme.backgroundColour,
),
),
),
diff --git a/mobile/apps/photos/lib/ui/settings/memories_settings_screen.dart b/mobile/apps/photos/lib/ui/settings/memories_settings_screen.dart
index 7734589fab..55b46cc51d 100644
--- a/mobile/apps/photos/lib/ui/settings/memories_settings_screen.dart
+++ b/mobile/apps/photos/lib/ui/settings/memories_settings_screen.dart
@@ -24,13 +24,9 @@ class _MemoriesSettingsScreenState extends State<MemoriesSettingsScreen> {
Widget build(BuildContext context) {
final colorScheme = getEnteColorScheme(context);
final textTheme = getEnteTextTheme(context);
- final isDarkMode = Theme.of(context).brightness == Brightness.dark;
-
- final pageBackgroundColor =
- isDarkMode ? const Color(0xFF161616) : const Color(0xFFFAFAFA);
return Scaffold(
- backgroundColor: pageBackgroundColor,
+ backgroundColor: colorScheme.backgroundColour,
body: SafeArea(
child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 16),
diff --git a/mobile/apps/photos/lib/ui/settings/notification_settings_screen.dart b/mobile/apps/photos/lib/ui/settings/notification_settings_screen.dart
index 643585313d..a761d0ed3d 100644
--- a/mobile/apps/photos/lib/ui/settings/notification_settings_screen.dart
+++ b/mobile/apps/photos/lib/ui/settings/notification_settings_screen.dart
@@ -13,14 +13,10 @@ class NotificationSettingsScreen extends StatelessWidget {
Widget build(BuildContext context) {
final colorScheme = getEnteColorScheme(context);
final textTheme = getEnteTextTheme(context);
- final isDarkMode = Theme.of(context).brightness == Brightness.dark;
final showOnlyOnThisDay = isOfflineMode;
- final pageBackgroundColor =
- isDarkMode ? const Color(0xFF161616) : const Color(0xFFFAFAFA);
-
return Scaffold(
- backgroundColor: pageBackgroundColor,
+ backgroundColor: colorScheme.backgroundColour,
body: SafeArea(
child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 16),
diff --git a/mobile/apps/photos/lib/ui/settings/search/settings_search_page.dart b/mobile/apps/photos/lib/ui/settings/search/settings_search_page.dart
index 27845ea906..e9360a45c6 100644
--- a/mobile/apps/photos/lib/ui/settings/search/settings_search_page.dart
+++ b/mobile/apps/photos/lib/ui/settings/search/settings_search_page.dart
@@ -133,12 +133,9 @@ class _SettingsSearchPageState extends State<SettingsSearchPage> {
Widget build(BuildContext context) {
final colorScheme = getEnteColorScheme(context);
final textTheme = getEnteTextTheme(context);
- final isDarkMode = Theme.of(context).brightness == Brightness.dark;
- final pageBackgroundColor =
- isDarkMode ? const Color(0xFF161616) : const Color(0xFFFAFAFA);
return Scaffold(
- backgroundColor: pageBackgroundColor,
+ backgroundColor: colorScheme.backgroundColour,
body: SafeArea(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
diff --git a/mobile/apps/photos/lib/ui/settings/security/security_settings_page.dart b/mobile/apps/photos/lib/ui/settings/security/security_settings_page.dart
index f3b8acf44b..e68d73ec24 100644
--- a/mobile/apps/photos/lib/ui/settings/security/security_settings_page.dart
+++ b/mobile/apps/photos/lib/ui/settings/security/security_settings_page.dart
@@ -62,15 +62,11 @@ class _SecuritySettingsPageState extends State<SecuritySettingsPage> {
Widget build(BuildContext context) {
final colorScheme = getEnteColorScheme(context);
final textTheme = getEnteTextTheme(context);
- final isDarkMode = Theme.of(context).brightness == Brightness.dark;
final showAccountSecurity =
_config.hasConfiguredAccount() && !isOfflineMode;
- final pageBackgroundColor =
- isDarkMode ? const Color(0xFF161616) : const Color(0xFFFAFAFA);
-
return Scaffold(
- backgroundColor: pageBackgroundColor,
+ backgroundColor: colorScheme.backgroundColour,
body: SafeArea(
child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 16),
diff --git a/mobile/apps/photos/lib/ui/settings/streaming/video_streaming_settings_page.dart b/mobile/apps/photos/lib/ui/settings/streaming/video_streaming_settings_page.dart
index 8cc85b0a87..036febaeb8 100644
--- a/mobile/apps/photos/lib/ui/settings/streaming/video_streaming_settings_page.dart
+++ b/mobile/apps/photos/lib/ui/settings/streaming/video_streaming_settings_page.dart
@@ -43,15 +43,11 @@ class _VideoStreamingSettingsPageState
Widget build(BuildContext context) {
final colorScheme = getEnteColorScheme(context);
final textTheme = getEnteTextTheme(context);
- final isDarkMode = Theme.of(context).brightness == Brightness.dark;
-
- final pageBackgroundColor =
- isDarkMode ? const Color(0xFF161616) : const Color(0xFFFAFAFA);
final hasEnabled = VideoPreviewService.instance.isVideoStreamingEnabled;
return Scaffold(
- backgroundColor: pageBackgroundColor,
+ backgroundColor: colorScheme.backgroundColour,
bottomNavigationBar: !hasEnabled
? SafeArea(
child: Padding(
diff --git a/mobile/apps/photos/lib/ui/settings/support/help_support_page.dart b/mobile/apps/photos/lib/ui/settings/support/help_support_page.dart
index 8cc70349b7..a9be536087 100644
--- a/mobile/apps/photos/lib/ui/settings/support/help_support_page.dart
+++ b/mobile/apps/photos/lib/ui/settings/support/help_support_page.dart
@@ -31,13 +31,9 @@ class HelpSupportPage extends StatelessWidget {
final l10n = AppLocalizations.of(context);
final colorScheme = getEnteColorScheme(context);
final textTheme = getEnteTextTheme(context);
- final isDarkMode = Theme.of(context).brightness == Brightness.dark;
-
- final pageBackgroundColor =
- isDarkMode ? const Color(0xFF161616) : const Color(0xFFFAFAFA);
return Scaffold(
- backgroundColor: pageBackgroundColor,
+ backgroundColor: colorScheme.backgroundColour,
body: SafeArea(
child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 16),
diff --git a/mobile/apps/photos/lib/ui/settings/support/report_issue_page.dart b/mobile/apps/photos/lib/ui/settings/support/report_issue_page.dart
index 311246c1ad..2b81beb0b0 100644
--- a/mobile/apps/photos/lib/ui/settings/support/report_issue_page.dart
+++ b/mobile/apps/photos/lib/ui/settings/support/report_issue_page.dart
@@ -36,13 +36,9 @@ class _ReportIssuePageState extends State<ReportIssuePage> {
final l10n = AppLocalizations.of(context);
final colorScheme = getEnteColorScheme(context);
final textTheme = getEnteTextTheme(context);
- final isDarkMode = Theme.of(context).brightness == Brightness.dark;
-
- final pageBackgroundColor =
- isDarkMode ? const Color(0xFF161616) : const Color(0xFFFAFAFA);
return Scaffold(
- backgroundColor: pageBackgroundColor,
+ backgroundColor: colorScheme.backgroundColour,
body: SafeArea(
child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 16),
diff --git a/mobile/apps/photos/lib/ui/settings/widget_settings_screen.dart b/mobile/apps/photos/lib/ui/settings/widget_settings_screen.dart
index dc5d0f08ad..f088607bee 100644
--- a/mobile/apps/photos/lib/ui/settings/widget_settings_screen.dart
+++ b/mobile/apps/photos/lib/ui/settings/widget_settings_screen.dart
@@ -47,13 +47,9 @@ class WidgetSettingsScreen extends StatelessWidget {
Widget build(BuildContext context) {
final colorScheme = getEnteColorScheme(context);
final textTheme = getEnteTextTheme(context);
- final isDarkMode = Theme.of(context).brightness == Brightness.dark;
-
- final pageBackgroundColor =
- isDarkMode ? const Color(0xFF161616) : const Color(0xFFFAFAFA);
return Scaffold(
- backgroundColor: pageBackgroundColor,
+ backgroundColor: colorScheme.backgroundColour,
body: SafeArea(
child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 16),
diff --git a/mobile/apps/photos/lib/ui/settings_page.dart b/mobile/apps/photos/lib/ui/settings_page.dart
index aef62e5b86..0940906378 100644
--- a/mobile/apps/photos/lib/ui/settings_page.dart
+++ b/mobile/apps/photos/lib/ui/settings_page.dart
@@ -68,16 +68,12 @@ class _SettingsBody extends StatelessWidget {
Widget build(BuildContext context) {
final colorScheme = getEnteColorScheme(context);
final textTheme = getEnteTextTheme(context);
- final isDarkMode = Theme.of(context).brightness == Brightness.dark;
final hasLoggedIn = Configuration.instance.isLoggedIn();
final hasConfiguredAccount = Configuration.instance.hasConfiguredAccount();
final showLoginEntry = isOfflineMode && !hasConfiguredAccount;
- final pageBackgroundColor =
- isDarkMode ? const Color(0xFF161616) : const Color(0xFFFAFAFA);
-
return Container(
- color: pageBackgroundColor,
+ color: colorScheme.backgroundColour,
child: SafeArea(
bottom: false,
child: SingleChildScrollView(
diff --git a/mobile/apps/photos/lib/ui/social/comment_likes_bottom_sheet.dart b/mobile/apps/photos/lib/ui/social/comment_likes_bottom_sheet.dart
index 4004d8ccd9..9c6298ab7d 100644
--- a/mobile/apps/photos/lib/ui/social/comment_likes_bottom_sheet.dart
+++ b/mobile/apps/photos/lib/ui/social/comment_likes_bottom_sheet.dart
@@ -113,7 +113,7 @@ class _CommentLikesBottomSheetState extends State<CommentLikesBottomSheet> {
maxHeight: mediaQuery.size.height * _maxHeightFraction,
),
decoration: BoxDecoration(
- color: colorScheme.backgroundBase,
+ color: colorScheme.backgroundColour,
borderRadius: const BorderRadius.vertical(
top: Radius.circular(24),
),
diff --git a/mobile/apps/photos/lib/ui/social/feed_screen.dart b/mobile/apps/photos/lib/ui/social/feed_screen.dart
index 94ab367b44..60f1401549 100644
--- a/mobile/apps/photos/lib/ui/social/feed_screen.dart
+++ b/mobile/apps/photos/lib/ui/social/feed_screen.dart
@@ -514,14 +514,15 @@ 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),
+ backgroundColor: isDark ? null : colorScheme.backgroundColour,
appBar: AppBar(
automaticallyImplyLeading: false,
- backgroundColor: isDark ? null : const Color(0xFFFAFAFA),
+ backgroundColor: isDark ? null : colorScheme.backgroundColour,
elevation: 0,
centerTitle: false,
leading: IconButtonWidget(
diff --git a/mobile/apps/photos/lib/ui/social/like_collection_selector_sheet.dart b/mobile/apps/photos/lib/ui/social/like_collection_selector_sheet.dart
index 06d68c57b3..637f29140f 100644
--- a/mobile/apps/photos/lib/ui/social/like_collection_selector_sheet.dart
+++ b/mobile/apps/photos/lib/ui/social/like_collection_selector_sheet.dart
@@ -241,7 +241,7 @@ class _LikeCollectionSelectorSheetState
),
decoration: BoxDecoration(
color:
- isDarkMode ? const Color(0xFF0E0E0E) : colorScheme.backgroundBase,
+ isDarkMode ? const Color(0xFF0E0E0E) : colorScheme.backgroundColour,
borderRadius: const BorderRadius.vertical(
top: Radius.circular(28),
),
@@ -377,7 +377,7 @@ class _AlbumsHeader extends StatelessWidget {
decoration: BoxDecoration(
color: isDarkMode
? const Color(0xFF0E0E0E)
- : colorScheme.backgroundBase,
+ : colorScheme.backgroundColour,
borderRadius: BorderRadius.circular(14),
),
child: Row(
@@ -501,7 +501,7 @@ class _AlbumListItem extends StatelessWidget {
decoration: BoxDecoration(
color: isDarkTheme
? const Color(0xFF0E0E0E)
- : colorScheme.backgroundBase,
+ : colorScheme.backgroundColour,
borderRadius: BorderRadius.circular(16),
),
child: Row(
diff --git a/mobile/apps/photos/lib/ui/social/widgets/collection_selector_widget.dart b/mobile/apps/photos/lib/ui/social/widgets/collection_selector_widget.dart
index 52761e7701..4e6d6d3e76 100644
--- a/mobile/apps/photos/lib/ui/social/widgets/collection_selector_widget.dart
+++ b/mobile/apps/photos/lib/ui/social/widgets/collection_selector_widget.dart
@@ -201,7 +201,7 @@ class _ThumbnailWithBadge extends StatelessWidget {
child: Container(
padding: const EdgeInsets.symmetric(horizontal: 4, vertical: 1),
decoration: BoxDecoration(
- color: colorScheme.backgroundBase,
+ color: colorScheme.backgroundColour,
borderRadius: const BorderRadius.all(Radius.circular(16)),
),
child: Text(
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 1b94422dc1..ab69c19667 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
@@ -400,7 +400,7 @@ class _StackedAvatars extends StatelessWidget {
decoration: BoxDecoration(
shape: BoxShape.circle,
border: Border.all(
- color: colorScheme.backgroundBase,
+ color: colorScheme.backgroundColour,
width: 1.167,
),
),
@@ -419,7 +419,7 @@ class _StackedAvatars extends StatelessWidget {
decoration: BoxDecoration(
shape: BoxShape.circle,
border: Border.all(
- color: colorScheme.backgroundBase,
+ color: colorScheme.backgroundColour,
width: 1.167,
),
),
@@ -443,7 +443,7 @@ class _StackedAvatars extends StatelessWidget {
decoration: BoxDecoration(
shape: BoxShape.circle,
border: Border.all(
- color: colorScheme.backgroundBase,
+ color: colorScheme.backgroundColour,
width: 1.167,
),
),
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 bec1c7b042..2f7892ba7e 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
@@ -134,7 +134,7 @@ class _PreviewAvatarStack extends StatelessWidget {
shape: BoxShape.circle,
border: showBorder
? Border.all(
- color: colorScheme.backgroundBase,
+ color: colorScheme.backgroundColour,
width: 1.5,
)
: null,
diff --git a/mobile/apps/photos/lib/ui/tabs/home_widget.dart b/mobile/apps/photos/lib/ui/tabs/home_widget.dart
index 27959b9f26..8c6ce62025 100644
--- a/mobile/apps/photos/lib/ui/tabs/home_widget.dart
+++ b/mobile/apps/photos/lib/ui/tabs/home_widget.dart
@@ -857,7 +857,7 @@ class _HomeWidgetState extends State<HomeWidget> {
builder: (context, _) {
final colorScheme = getEnteColorScheme(context);
final resultsBackground = EnteTheme.isDark(context)
- ? const Color.fromRGBO(22, 22, 22, 1)
+ ? colorScheme.backgroundColour
: colorScheme.backgroundElevated2;
final isSearchResults = isOnSearchTab &&
IndexOfStackNotifier().index == 1;
@@ -876,7 +876,7 @@ class _HomeWidgetState extends State<HomeWidget> {
? resultsBackground
: isOnOnlineGrantPermissionScreen
? colorScheme.backgroundColour
- : colorScheme.backgroundBase,
+ : colorScheme.backgroundColour,
);
},
);
diff --git a/mobile/apps/photos/lib/ui/tools/deduplicate_page.dart b/mobile/apps/photos/lib/ui/tools/deduplicate_page.dart
index 99b57f2b71..b0475caf0d 100644
--- a/mobile/apps/photos/lib/ui/tools/deduplicate_page.dart
+++ b/mobile/apps/photos/lib/ui/tools/deduplicate_page.dart
@@ -222,7 +222,7 @@ class _DeduplicatePageState extends State<DeduplicatePage> {
vertical: 8,
),
decoration: BoxDecoration(
- color: getEnteColorScheme(context).backgroundBase,
+ color: getEnteColorScheme(context).backgroundColour,
),
child: Column(
children: [
diff --git a/mobile/apps/photos/lib/ui/tools/editor/image_editor/image_editor_crop_rotate.dart b/mobile/apps/photos/lib/ui/tools/editor/image_editor/image_editor_crop_rotate.dart
index 66dcbfa628..6ba48bf613 100644
--- a/mobile/apps/photos/lib/ui/tools/editor/image_editor/image_editor_crop_rotate.dart
+++ b/mobile/apps/photos/lib/ui/tools/editor/image_editor/image_editor_crop_rotate.dart
@@ -97,7 +97,7 @@ class _ImageEditorCropRotateBarState extends State<ImageEditorCropRotateBar>
Widget _buildFunctions(BoxConstraints constraints) {
return BottomAppBar(
- color: getEnteColorScheme(context).backgroundBase,
+ color: getEnteColorScheme(context).backgroundColour,
padding: EdgeInsets.zero,
height: editorBottomBarHeight,
child: Align(
diff --git a/mobile/apps/photos/lib/ui/tools/editor/image_editor/image_editor_page.dart b/mobile/apps/photos/lib/ui/tools/editor/image_editor/image_editor_page.dart
index ea347ddffb..e59b496633 100644
--- a/mobile/apps/photos/lib/ui/tools/editor/image_editor/image_editor_page.dart
+++ b/mobile/apps/photos/lib/ui/tools/editor/image_editor/image_editor_page.dart
@@ -186,7 +186,7 @@ class _ImageEditorPageState extends State<ImageEditorPage> {
child: Scaffold(
extendBodyBehindAppBar: true,
resizeToAvoidBottomInset: false,
- backgroundColor: colorScheme.backgroundBase,
+ backgroundColor: colorScheme.backgroundColour,
body: ProImageEditor.file(
key: editorKey,
widget.file,
@@ -214,13 +214,13 @@ class _ImageEditorPageState extends State<ImageEditorPage> {
hideToolbarOnInteraction: false,
),
theme: ThemeData(
- scaffoldBackgroundColor: colorScheme.backgroundBase,
+ scaffoldBackgroundColor: colorScheme.backgroundColour,
appBarTheme: AppBarTheme(
titleTextStyle: textTheme.body,
- backgroundColor: colorScheme.backgroundBase,
+ backgroundColor: colorScheme.backgroundColour,
),
bottomAppBarTheme: BottomAppBarTheme(
- color: colorScheme.backgroundBase,
+ color: colorScheme.backgroundColour,
),
brightness: isLightMode ? Brightness.light : Brightness.dark,
),
@@ -235,9 +235,9 @@ class _ImageEditorPageState extends State<ImageEditorPage> {
statusBarIconBrightness:
isLightMode ? Brightness.dark : Brightness.light,
),
- appBarBackground: colorScheme.backgroundBase,
- background: colorScheme.backgroundBase,
- bottomBarBackground: colorScheme.backgroundBase,
+ appBarBackground: colorScheme.backgroundColour,
+ background: colorScheme.backgroundColour,
+ bottomBarBackground: colorScheme.backgroundColour,
),
widgets: MainEditorWidgets(
removeLayerArea: (
@@ -335,7 +335,7 @@ class _ImageEditorPageState extends State<ImageEditorPage> {
enabled: true,
style: PaintEditorStyle(
initialColor: const Color(0xFF00FFFF),
- background: colorScheme.backgroundBase,
+ background: colorScheme.backgroundColour,
),
widgets: PaintEditorWidgets(
appBar: (editor, rebuildStream) {
@@ -432,7 +432,7 @@ class _ImageEditorPageState extends State<ImageEditorPage> {
showRotateButton: true,
enabled: true,
style: CropRotateEditorStyle(
- background: colorScheme.backgroundBase,
+ background: colorScheme.backgroundColour,
cropCornerColor:
Theme.of(context).colorScheme.imageEditorPrimaryColor,
),
@@ -470,7 +470,7 @@ class _ImageEditorPageState extends State<ImageEditorPage> {
fadeInUpStaggerDelayDuration: fadeInDelay,
filterList: filterList,
style: FilterEditorStyle(
- background: colorScheme.backgroundBase,
+ background: colorScheme.backgroundColour,
),
widgets: FilterEditorWidgets(
slider: (
@@ -523,7 +523,7 @@ class _ImageEditorPageState extends State<ImageEditorPage> {
tuneEditor: TuneEditorConfigs(
enabled: true,
style: TuneEditorStyle(
- background: colorScheme.backgroundBase,
+ background: colorScheme.backgroundColour,
),
widgets: TuneEditorWidgets(
appBar: (editor, rebuildStream) {
@@ -566,11 +566,11 @@ class _ImageEditorPageState extends State<ImageEditorPage> {
style: EmojiEditorStyle(
bottomActionBarConfig: BottomActionBarConfig(
showSearchViewButton: true,
- buttonColor: colorScheme.backgroundBase,
+ buttonColor: colorScheme.backgroundColour,
buttonIconColor: colorScheme.tabIcon,
- backgroundColor: colorScheme.backgroundBase,
+ backgroundColor: colorScheme.backgroundColour,
),
- backgroundColor: colorScheme.backgroundBase,
+ backgroundColor: colorScheme.backgroundColour,
),
),
stickerEditor: StickerEditorConfigs(
diff --git a/mobile/apps/photos/lib/ui/tools/editor/video_crop_page.dart b/mobile/apps/photos/lib/ui/tools/editor/video_crop_page.dart
index 66859eca22..aa768caa78 100644
--- a/mobile/apps/photos/lib/ui/tools/editor/video_crop_page.dart
+++ b/mobile/apps/photos/lib/ui/tools/editor/video_crop_page.dart
@@ -65,7 +65,7 @@ class _VideoCropPageState extends State<VideoCropPage> {
Widget build(BuildContext context) {
final colorScheme = getEnteColorScheme(context);
return Scaffold(
- backgroundColor: colorScheme.backgroundBase,
+ backgroundColor: colorScheme.backgroundColour,
appBar: VideoEditorAppBar(
onCancel: () => Navigator.pop(context),
primaryActionLabel: AppLocalizations.of(context).done,
diff --git a/mobile/apps/photos/lib/ui/tools/editor/video_editor/video_editor_app_bar.dart b/mobile/apps/photos/lib/ui/tools/editor/video_editor/video_editor_app_bar.dart
index 172a59eea0..0e4bf65bfc 100644
--- a/mobile/apps/photos/lib/ui/tools/editor/video_editor/video_editor_app_bar.dart
+++ b/mobile/apps/photos/lib/ui/tools/editor/video_editor/video_editor_app_bar.dart
@@ -26,7 +26,7 @@ class VideoEditorAppBar extends StatelessWidget implements PreferredSizeWidget {
final textTheme = getEnteTextTheme(context);
return AppBar(
elevation: 0,
- backgroundColor: colorScheme.backgroundBase,
+ backgroundColor: colorScheme.backgroundColour,
automaticallyImplyLeading: false,
titleSpacing: 0,
title: Row(
diff --git a/mobile/apps/photos/lib/ui/tools/editor/video_editor_page.dart b/mobile/apps/photos/lib/ui/tools/editor/video_editor_page.dart
index 56c9807c5e..60599a7234 100644
--- a/mobile/apps/photos/lib/ui/tools/editor/video_editor_page.dart
+++ b/mobile/apps/photos/lib/ui/tools/editor/video_editor_page.dart
@@ -144,7 +144,7 @@ class _VideoEditorPageState extends State<VideoEditorPage> {
_quarterTurnsForRotationCorrection != null;
return Scaffold(
- backgroundColor: colorScheme.backgroundBase,
+ backgroundColor: colorScheme.backgroundColour,
appBar: VideoEditorAppBar(
onCancel: () {
if (isExporting) return;
diff --git a/mobile/apps/photos/lib/ui/tools/editor/video_rotate_page.dart b/mobile/apps/photos/lib/ui/tools/editor/video_rotate_page.dart
index c11a3eb0ef..b754efb2d3 100644
--- a/mobile/apps/photos/lib/ui/tools/editor/video_rotate_page.dart
+++ b/mobile/apps/photos/lib/ui/tools/editor/video_rotate_page.dart
@@ -20,7 +20,7 @@ class VideoRotatePage extends StatelessWidget {
final rotation = controller.rotation;
final colorScheme = getEnteColorScheme(context);
return Scaffold(
- backgroundColor: colorScheme.backgroundBase,
+ backgroundColor: colorScheme.backgroundColour,
appBar: VideoEditorAppBar(
onCancel: () {
while (controller.rotation != rotation) {
diff --git a/mobile/apps/photos/lib/ui/tools/editor/video_trim_page.dart b/mobile/apps/photos/lib/ui/tools/editor/video_trim_page.dart
index ea199e6dff..2cf76fe3d0 100644
--- a/mobile/apps/photos/lib/ui/tools/editor/video_trim_page.dart
+++ b/mobile/apps/photos/lib/ui/tools/editor/video_trim_page.dart
@@ -27,7 +27,7 @@ class _VideoTrimPageState extends State<VideoTrimPage> {
final colorScheme = getEnteColorScheme(context);
return Scaffold(
- backgroundColor: colorScheme.backgroundBase,
+ backgroundColor: colorScheme.backgroundColour,
appBar: VideoEditorAppBar(
onCancel: () {
widget.controller.updateTrim(minTrim, maxTrim);
diff --git a/mobile/apps/photos/lib/ui/tools/lock_screen.dart b/mobile/apps/photos/lib/ui/tools/lock_screen.dart
index 487a6d9ac8..c72b6f1038 100644
--- a/mobile/apps/photos/lib/ui/tools/lock_screen.dart
+++ b/mobile/apps/photos/lib/ui/tools/lock_screen.dart
@@ -119,7 +119,7 @@ class _LockScreenState extends State<LockScreen>
child: Container(
decoration: BoxDecoration(
shape: BoxShape.circle,
- color: colorTheme.backgroundBase,
+ color: colorTheme.backgroundColour,
),
),
),
diff --git a/mobile/apps/photos/lib/ui/tools/similar_images_page.dart b/mobile/apps/photos/lib/ui/tools/similar_images_page.dart
index af88148e89..a6e63b3d7f 100644
--- a/mobile/apps/photos/lib/ui/tools/similar_images_page.dart
+++ b/mobile/apps/photos/lib/ui/tools/similar_images_page.dart
@@ -537,7 +537,7 @@ class _SimilarImagesPageState extends State<SimilarImagesPage>
vertical: 8,
),
decoration: BoxDecoration(
- color: getEnteColorScheme(context).backgroundBase,
+ color: getEnteColorScheme(context).backgroundColour,
),
child: Column(
children: [
diff --git a/mobile/apps/photos/lib/ui/viewer/file_details/file_info_face_widget.dart b/mobile/apps/photos/lib/ui/viewer/file_details/file_info_face_widget.dart
index 6c94084013..f3edb012b3 100644
--- a/mobile/apps/photos/lib/ui/viewer/file_details/file_info_face_widget.dart
+++ b/mobile/apps/photos/lib/ui/viewer/file_details/file_info_face_widget.dart
@@ -316,14 +316,14 @@ class _FileInfoFaceWidgetState extends State<FileInfoFaceWidget> {
: getEnteColorScheme(context).primary500,
shape: BoxShape.circle,
border: Border.all(
- color: getEnteColorScheme(context).backgroundBase,
+ color: getEnteColorScheme(context).backgroundColour,
width: 2,
),
),
child: Icon(
hasPerson ? Icons.remove : Icons.add,
size: 12,
- color: getEnteColorScheme(context).backgroundBase,
+ color: getEnteColorScheme(context).backgroundColour,
),
),
),
diff --git a/mobile/apps/photos/lib/ui/viewer/file_details/file_info_faces_item_widget.dart b/mobile/apps/photos/lib/ui/viewer/file_details/file_info_faces_item_widget.dart
index 69a6bc1f2f..30db26e716 100644
--- a/mobile/apps/photos/lib/ui/viewer/file_details/file_info_faces_item_widget.dart
+++ b/mobile/apps/photos/lib/ui/viewer/file_details/file_info_faces_item_widget.dart
@@ -746,14 +746,14 @@ class _ManualPersonTag extends StatelessWidget {
color: colorScheme.warning500,
shape: BoxShape.circle,
border: Border.all(
- color: colorScheme.backgroundBase,
+ color: colorScheme.backgroundColour,
width: 2,
),
),
child: Icon(
Icons.remove,
size: 12,
- color: colorScheme.backgroundBase,
+ color: colorScheme.backgroundColour,
),
),
),
diff --git a/mobile/apps/photos/lib/ui/viewer/gallery/gallery.dart b/mobile/apps/photos/lib/ui/viewer/gallery/gallery.dart
index e036edce3b..e235c38ee6 100644
--- a/mobile/apps/photos/lib/ui/viewer/gallery/gallery.dart
+++ b/mobile/apps/photos/lib/ui/viewer/gallery/gallery.dart
@@ -988,7 +988,7 @@ class _PinnedGroupHeaderState extends State<PinnedGroupHeader>
);
},
child: ColoredBox(
- color: getEnteColorScheme(context).backgroundBase,
+ color: getEnteColorScheme(context).backgroundColour,
child: boundaryWidget(
position: BoundaryPosition.top,
child: GroupHeaderWidget(
diff --git a/mobile/apps/photos/lib/ui/viewer/gallery/large_files_page.dart b/mobile/apps/photos/lib/ui/viewer/gallery/large_files_page.dart
index 6c090c7d27..7ee5cb6e84 100644
--- a/mobile/apps/photos/lib/ui/viewer/gallery/large_files_page.dart
+++ b/mobile/apps/photos/lib/ui/viewer/gallery/large_files_page.dart
@@ -243,7 +243,7 @@ class _FilterChip extends StatelessWidget {
icon,
size: 16,
color: isSelected
- ? colorScheme.backgroundBase
+ ? colorScheme.backgroundColour
: colorScheme.textBase,
),
const SizedBox(width: 4),
@@ -252,7 +252,7 @@ class _FilterChip extends StatelessWidget {
label,
style: textTheme.miniBold.copyWith(
color: isSelected
- ? colorScheme.backgroundBase
+ ? colorScheme.backgroundColour
: colorScheme.textBase,
),
),
diff --git a/mobile/apps/photos/lib/ui/viewer/people/memory_lane_page.dart b/mobile/apps/photos/lib/ui/viewer/people/memory_lane_page.dart
index 9a6a5b44a4..40b3653c96 100644
--- a/mobile/apps/photos/lib/ui/viewer/people/memory_lane_page.dart
+++ b/mobile/apps/photos/lib/ui/viewer/people/memory_lane_page.dart
@@ -1274,7 +1274,7 @@ class _MemoryLaneCard extends StatelessWidget {
if (overlayOpacity > 0)
Container(
color:
- colorScheme.backgroundBase.withValues(alpha: overlayOpacity),
+ colorScheme.backgroundColour.withValues(alpha: overlayOpacity),
),
if (frame.image == null)
Center(
@@ -1299,10 +1299,10 @@ class _MemoryLaneCard extends StatelessWidget {
begin: Alignment.bottomCenter,
end: Alignment.topCenter,
colors: [
- colorScheme.backgroundBase.withValues(
+ colorScheme.backgroundColour.withValues(
alpha: gradientAlpha,
),
- colorScheme.backgroundBase.withValues(alpha: 0.0),
+ colorScheme.backgroundColour.withValues(alpha: 0.0),
],
),
),
diff --git a/mobile/apps/photos/lib/ui/viewer/people/person_clusters_page.dart b/mobile/apps/photos/lib/ui/viewer/people/person_clusters_page.dart
index ef2aa87681..a1921e9456 100644
--- a/mobile/apps/photos/lib/ui/viewer/people/person_clusters_page.dart
+++ b/mobile/apps/photos/lib/ui/viewer/people/person_clusters_page.dart
@@ -346,14 +346,14 @@ class __ClusterWrapperForGirdState extends State<_ClusterWrapperForGird> {
color: colorScheme.warning500,
shape: BoxShape.circle,
border: Border.all(
- color: colorScheme.backgroundBase,
+ color: colorScheme.backgroundColour,
width: 2,
),
),
child: Icon(
Icons.remove,
size: 12,
- color: colorScheme.backgroundBase,
+ color: colorScheme.backgroundColour,
),
),
),
diff --git a/mobile/apps/photos/lib/ui/viewer/search/result/contact_photo_adjust_page.dart b/mobile/apps/photos/lib/ui/viewer/search/result/contact_photo_adjust_page.dart
index 2633aaec0c..e2702596b1 100644
--- a/mobile/apps/photos/lib/ui/viewer/search/result/contact_photo_adjust_page.dart
+++ b/mobile/apps/photos/lib/ui/viewer/search/result/contact_photo_adjust_page.dart
@@ -27,18 +27,18 @@ class _ContactPhotoAdjustPageState extends State<ContactPhotoAdjustPage> {
final isLightMode = Theme.of(context).brightness == Brightness.light;
return Scaffold(
- backgroundColor: colorScheme.backgroundBase,
+ backgroundColor: colorScheme.backgroundColour,
body: CropRotateEditor.memory(
widget.imageBytes,
initConfigs: CropRotateEditorInitConfigs(
theme: ThemeData(
- scaffoldBackgroundColor: colorScheme.backgroundBase,
+ scaffoldBackgroundColor: colorScheme.backgroundColour,
appBarTheme: AppBarTheme(
titleTextStyle: textTheme.body,
- backgroundColor: colorScheme.backgroundBase,
+ backgroundColor: colorScheme.backgroundColour,
),
bottomAppBarTheme: BottomAppBarTheme(
- color: colorScheme.backgroundBase,
+ color: colorScheme.backgroundColour,
),
brightness: isLightMode ? Brightness.light : Brightness.dark,
),
@@ -66,7 +66,7 @@ class _ContactPhotoAdjustPageState extends State<ContactPhotoAdjustPage> {
AspectRatioItem(text: "1*1", value: 1.0),
],
style: CropRotateEditorStyle(
- background: colorScheme.backgroundBase,
+ background: colorScheme.backgroundColour,
cropCornerColor:
Theme.of(context).colorScheme.imageEditorPrimaryColor,
),
@@ -76,7 +76,7 @@ class _ContactPhotoAdjustPageState extends State<ContactPhotoAdjustPage> {
builder: (_) => AppBar(
elevation: 0,
automaticallyImplyLeading: false,
- backgroundColor: colorScheme.backgroundBase,
+ backgroundColor: colorScheme.backgroundColour,
titleSpacing: 0,
title: Row(
children: [
diff --git a/mobile/apps/photos/lib/ui/viewer/search/search_suggestions.dart b/mobile/apps/photos/lib/ui/viewer/search/search_suggestions.dart
index 2a15bab51b..c9e4f24216 100644
--- a/mobile/apps/photos/lib/ui/viewer/search/search_suggestions.dart
+++ b/mobile/apps/photos/lib/ui/viewer/search/search_suggestions.dart
@@ -124,7 +124,7 @@ class _SearchSuggestionsWidgetState extends State<SearchSuggestionsWidget> {
final colorScheme = getEnteColorScheme(context);
final textTheme = getEnteTextTheme(context);
final resultsBackground = EnteTheme.isDark(context)
- ? const Color.fromRGBO(22, 22, 22, 1)
+ ? colorScheme.backgroundColour
: colorScheme.backgroundElevated2;
final sectionWidgets = _buildSectionWidgets(context);
if (_resultsCount > 0) {
diff --git a/mobile/apps/photos/lib/ui/viewer/search_tab/search_tab.dart b/mobile/apps/photos/lib/ui/viewer/search_tab/search_tab.dart
index 804814270e..cec4f66fe7 100644
--- a/mobile/apps/photos/lib/ui/viewer/search_tab/search_tab.dart
+++ b/mobile/apps/photos/lib/ui/viewer/search_tab/search_tab.dart
@@ -62,10 +62,10 @@ class _SearchTabState extends State<SearchTab> {
Widget build(BuildContext context) {
final colorScheme = getEnteColorScheme(context);
final resultsBackground = EnteTheme.isDark(context)
- ? const Color.fromRGBO(22, 22, 22, 1)
+ ? colorScheme.backgroundColour
: colorScheme.backgroundElevated2;
final headerColor =
- index == 1 ? resultsBackground : colorScheme.backgroundBase;
+ index == 1 ? resultsBackground : colorScheme.backgroundColour;
return Column(
children: [
ColoredBox(