Skip to content

armgit / ente

Public Imported from GitHub
0

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

Replace hardcoded colors with design system tokens in dotted borders

AmanRajSinghMourya64cc4b7bf170
diff --git a/mobile/apps/locker/lib/ui/components/collection_selection_widget.dart b/mobile/apps/locker/lib/ui/components/collection_selection_widget.dart
index be818b4a2d..c70ff86aed 100644
--- a/mobile/apps/locker/lib/ui/components/collection_selection_widget.dart
+++ b/mobile/apps/locker/lib/ui/components/collection_selection_widget.dart
@@ -194,12 +194,12 @@ class _CollectionSelectionWidgetState extends State<CollectionSelectionWidget> {
await _createNewCollection();
},
child: DottedBorder(
- options: const RoundedRectDottedBorderOptions(
+ options: RoundedRectDottedBorderOptions(
strokeWidth: 1,
padding: EdgeInsets.zero,
- color: Color(0xFF6B6B6B),
- dashPattern: [5, 5],
- radius: Radius.circular(16),
+ color: colorScheme.textFaint,
+ dashPattern: const [5, 5],
+ radius: const Radius.circular(16),
),
child: Container(
constraints: const BoxConstraints(minHeight: 42),
diff --git a/mobile/apps/locker/lib/ui/components/empty_state_widget.dart b/mobile/apps/locker/lib/ui/components/empty_state_widget.dart
index 429c4b4d0f..ce9bba0749 100644
--- a/mobile/apps/locker/lib/ui/components/empty_state_widget.dart
+++ b/mobile/apps/locker/lib/ui/components/empty_state_widget.dart
@@ -75,16 +75,16 @@ class EmptyStateWidget extends StatelessWidget {
),
);
- if (!showBorder) {
- return content;
- }
+ // if (!showBorder) {
+ // return content;
+ // }
return DottedBorder(
- options: const RoundedRectDottedBorderOptions(
+ options: RoundedRectDottedBorderOptions(
strokeWidth: 1,
- color: Color.fromRGBO(82, 82, 82, 0.6),
- dashPattern: [5, 5],
- radius: Radius.circular(24),
+ color: colorScheme.textFaint,
+ dashPattern: const [5, 5],
+ radius: const Radius.circular(24),
),
child: content,
);
diff --git a/mobile/apps/locker/lib/ui/components/home_empty_state_widget.dart b/mobile/apps/locker/lib/ui/components/home_empty_state_widget.dart
index 0ed47fced8..382843faf4 100644
--- a/mobile/apps/locker/lib/ui/components/home_empty_state_widget.dart
+++ b/mobile/apps/locker/lib/ui/components/home_empty_state_widget.dart
@@ -13,11 +13,11 @@ class HomeEmptyStateWidget extends StatelessWidget {
final colorScheme = getEnteColorScheme(context);
final textTheme = getEnteTextTheme(context);
return DottedBorder(
- options: const RoundedRectDottedBorderOptions(
+ options: RoundedRectDottedBorderOptions(
strokeWidth: 1,
- color: Color.fromRGBO(82, 82, 82, 0.6),
- dashPattern: [5, 5],
- radius: Radius.circular(24),
+ color: colorScheme.textFaint,
+ dashPattern: const [5, 5],
+ radius: const Radius.circular(24),
),
child: Container(
width: double.infinity,