opt: get theme color

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-04-28 21:32:30 +08:00
parent 451a84e696
commit ca993df0c6
149 changed files with 4415 additions and 4803 deletions

View File

@@ -27,7 +27,6 @@ class FavItem extends StatelessWidget {
(onTap == null
? null
: () => imageSaveDialog(
context: context,
title: favFolderItem.title,
cover: favFolderItem.cover,
)),
@@ -61,6 +60,9 @@ class FavItem extends StatelessWidget {
}
Widget videoContent(context) {
final theme = Theme.of(context);
final fontSize = theme.textTheme.labelMedium!.fontSize;
final color = theme.colorScheme.outline;
return Expanded(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
@@ -76,23 +78,23 @@ class FavItem extends StatelessWidget {
Text(
favFolderItem.intro!,
style: TextStyle(
fontSize: Theme.of(context).textTheme.labelMedium!.fontSize,
color: Theme.of(context).colorScheme.outline,
fontSize: fontSize,
color: color,
),
),
Text(
'${favFolderItem.mediaCount}个内容',
style: TextStyle(
fontSize: Theme.of(context).textTheme.labelMedium!.fontSize,
color: Theme.of(context).colorScheme.outline,
fontSize: fontSize,
color: color,
),
),
const Spacer(),
Text(
Utils.isPublicFavText(favFolderItem.attr ?? 0),
style: TextStyle(
fontSize: Theme.of(context).textTheme.labelMedium!.fontSize,
color: Theme.of(context).colorScheme.outline,
fontSize: fontSize,
color: color,
),
),
],