Improve backup selection page

This commit is contained in:
Vishnu Mohandas 2021-06-16 20:41:30 +05:30
parent 58b949c205
commit c1c19dab8f
2 changed files with 8 additions and 4 deletions

View file

@ -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,

View file

@ -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,
),