fix colors in light theme

This commit is contained in:
NicKoehler 2023-02-22 22:44:06 +01:00
parent 325077435c
commit b5ca85fb9b
No known key found for this signature in database
GPG Key ID: BAE01394EB51AC58

View File

@ -567,7 +567,7 @@ class _FileManagerPageState extends State<FileManagerPage>
decoration: BoxDecoration(
color: Theme.of(context).cardColor,
borderRadius: BorderRadius.all(
Radius.circular(8.0),
Radius.circular(15.0),
),
),
child: Column(
@ -584,7 +584,7 @@ class _FileManagerPageState extends State<FileManagerPage>
.tabBarTheme
.labelColor,
),
),
).paddingOnly(left: 15),
const SizedBox(
width: 16.0,
),
@ -602,29 +602,44 @@ class _FileManagerPageState extends State<FileManagerPage>
item.jobName,
maxLines: 1,
overflow: TextOverflow.ellipsis,
).paddingSymmetric(vertical: 10),
),
Text(
'${translate("Total")} ${readableFileSize(item.totalSize.toDouble())}',
style: TextStyle(
fontSize: 12,
color: MyTheme.darkGray,
),
),
Wrap(
children: [
Text(
'${item.display()} ${max(0, item.fileNum)}/${item.fileCount} '),
Text(
'${translate("files")} ${readableFileSize(item.totalSize.toDouble())} '),
Offstage(
offstage: item.state !=
JobState.inProgress,
offstage:
item.state != JobState.inProgress,
child: Text(
'${"${readableFileSize(item.speed)}/s"} '),
'${translate("Speed")} ${readableFileSize(item.speed)}/s',
style: TextStyle(
fontSize: 12,
color: MyTheme.darkGray,
),
),
),
Offstage(
offstage: item.state !=
JobState.inProgress,
offstage:
item.state == JobState.inProgress,
child: Text(
translate(
item.display(),
),
style: TextStyle(
fontSize: 12,
color: MyTheme.darkGray,
),
),
),
Offstage(
offstage:
item.state != JobState.inProgress,
child: LinearPercentIndicator(
padding: EdgeInsets.all(0),
width: MediaQuery.of(context)
.size
.width *
0.15,
padding: EdgeInsets.only(right: 15),
animateFromLastPercent: true,
center: Text(
'${(item.finishedSize / item.totalSize * 100).toStringAsFixed(0)}%',
@ -634,15 +649,13 @@ class _FileManagerPageState extends State<FileManagerPage>
item.totalSize,
progressColor: MyTheme.accent,
backgroundColor:
Color(0xFF4C4F62),
Theme.of(context).hoverColor,
lineHeight:
kDesktopFileTransferRowHeight,
).paddingSymmetric(vertical: 15),
),
],
),
],
),
),
Row(
mainAxisAlignment: MainAxisAlignment.end,
@ -655,9 +668,7 @@ class _FileManagerPageState extends State<FileManagerPage>
},
child: SvgPicture.asset(
"assets/refresh.svg",
color: Theme.of(context)
.tabBarTheme
.labelColor,
color: Colors.white,
),
color: MyTheme.accent,
hoverColor: MyTheme.accent80,
@ -667,9 +678,7 @@ class _FileManagerPageState extends State<FileManagerPage>
padding: EdgeInsets.only(right: 15),
child: SvgPicture.asset(
"assets/close.svg",
color: Theme.of(context)
.tabBarTheme
.labelColor,
color: Colors.white,
),
onPressed: () {
model.jobTable.removeAt(index);