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