Преглед на файлове

Improve backup selection page

Vishnu Mohandas преди 4 години
родител
ревизия
c1c19dab8f
променени са 2 файла, в които са добавени 8 реда и са изтрити 4 реда
  1. 4 3
      lib/ui/backup_folder_selection_page.dart
  2. 4 1
      lib/ui/collections_gallery_widget.dart

+ 4 - 3
lib/ui/backup_folder_selection_page.dart

@@ -52,6 +52,7 @@ class _BackupFolderSelectionPageState extends State<BackupFolderSelectionPage> {
                 child: SectionTitle(
                   "preserve memories",
                   alignment: Alignment.center,
+                  opacity: 0.9,
                 ),
               ),
             ),
@@ -85,7 +86,7 @@ class _BackupFolderSelectionPageState extends State<BackupFolderSelectionPage> {
             child: Text(
               "the files within the folders you select will be encrypted and backed up in the background",
               style: TextStyle(
-                color: Colors.white.withOpacity(0.5),
+                color: Colors.white.withOpacity(0.36),
                 fontSize: 14,
                 height: 1.3,
               ),
@@ -137,8 +138,8 @@ class _BackupFolderSelectionPageState extends State<BackupFolderSelectionPage> {
               InkWell(
                 child: Container(
                   color: _backedupFolders.contains(file.deviceFolder)
-                      ? Color.fromRGBO(10, 20, 20, 1.0)
-                      : null,
+                      ? Color.fromRGBO(16, 32, 32, 1)
+                      : Color.fromRGBO(8, 18, 18, 0.4),
                   padding: EdgeInsets.fromLTRB(24, 20, 24, 20),
                   child: Row(
                     mainAxisAlignment: MainAxisAlignment.spaceBetween,

+ 4 - 1
lib/ui/collections_gallery_widget.dart

@@ -335,8 +335,11 @@ class CollectionItem extends StatelessWidget {
 class SectionTitle extends StatelessWidget {
   final String title;
   final Alignment alignment;
+  final double opacity;
+
   const SectionTitle(
     this.title, {
+    this.opacity: 0.8,
     Key key,
     this.alignment = Alignment.centerLeft,
   }) : super(key: key);
@@ -352,7 +355,7 @@ class SectionTitle extends StatelessWidget {
               title,
               style: TextStyle(
                 fontWeight: FontWeight.bold,
-                color: Theme.of(context).buttonColor.withOpacity(0.8),
+                color: Theme.of(context).buttonColor.withOpacity(this.opacity),
                 fontSize: 20,
                 letterSpacing: 1,
               ),