Browse Source

Improve backup selection page

Vishnu Mohandas 4 years ago
parent
commit
c1c19dab8f

+ 4 - 3
lib/ui/backup_folder_selection_page.dart

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

+ 4 - 1
lib/ui/collections_gallery_widget.dart

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