mod: remove w400 fw

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2024-12-26 11:59:17 +08:00
parent 65be638b66
commit 5410a5cecc
25 changed files with 5 additions and 45 deletions

View File

@@ -80,7 +80,7 @@ class LiveCard extends StatelessWidget {
Text(
liveItem.title as String,
textAlign: TextAlign.start,
style: const TextStyle(fontSize: 13, fontWeight: FontWeight.w400),
style: const TextStyle(fontSize: 13),
maxLines: 2,
overflow: TextOverflow.ellipsis,
),

View File

@@ -24,7 +24,6 @@ Widget statDanMu({
Text(
Utils.numFormat(danmu!),
style: TextStyle(
fontWeight: FontWeight.w400,
fontSize: size == 'medium' ? 12 : 11,
color: color,
),

View File

@@ -27,7 +27,6 @@ Widget statView({
Text(
Utils.numFormat(view!),
style: TextStyle(
fontWeight: FontWeight.w400,
fontSize: size == 'medium' ? 12 : 11,
color: color,
),

View File

@@ -159,7 +159,6 @@ class VideoCardH extends StatelessWidget {
videoItem.title as String,
textAlign: TextAlign.start,
style: TextStyle(
fontWeight: FontWeight.w400,
fontSize: Theme.of(context).textTheme.bodyMedium!.fontSize,
height: 1.42,
letterSpacing: 0.3,
@@ -179,7 +178,6 @@ class VideoCardH extends StatelessWidget {
TextSpan(
text: i['text'] as String,
style: TextStyle(
fontWeight: FontWeight.w400,
fontSize: Theme.of(context)
.textTheme
.bodyMedium!
@@ -221,7 +219,6 @@ class VideoCardH extends StatelessWidget {
"$pubdate ${showOwner ? videoItem.owner.name : ''}",
maxLines: 1,
style: TextStyle(
fontWeight: FontWeight.w400,
fontSize: Theme.of(context).textTheme.labelSmall!.fontSize,
height: 1,
color: Theme.of(context).colorScheme.outline,

View File

@@ -150,7 +150,6 @@ class VideoCardHGrpc extends StatelessWidget {
videoItem.smallCoverV5.base.title,
textAlign: TextAlign.start,
style: TextStyle(
fontWeight: FontWeight.w400,
fontSize: Theme.of(context).textTheme.bodyMedium!.fontSize,
height: 1.42,
letterSpacing: 0.3,
@@ -183,7 +182,6 @@ class VideoCardHGrpc extends StatelessWidget {
videoItem.smallCoverV5.rightDesc1,
maxLines: 1,
style: TextStyle(
fontWeight: FontWeight.w400,
fontSize: Theme.of(context).textTheme.labelMedium!.fontSize,
height: 1,
color: Theme.of(context).colorScheme.outline,
@@ -195,7 +193,6 @@ class VideoCardHGrpc extends StatelessWidget {
videoItem.smallCoverV5.rightDesc2,
maxLines: 1,
style: TextStyle(
fontWeight: FontWeight.w400,
fontSize: Theme.of(context).textTheme.labelMedium!.fontSize,
height: 1,
color: Theme.of(context).colorScheme.outline,

View File

@@ -123,9 +123,7 @@ class VideoCardHMemberVideo extends StatelessWidget {
videoItem.title ?? '',
textAlign: TextAlign.start,
style: TextStyle(
fontWeight: videoItem.bvid == bvid
? FontWeight.bold
: FontWeight.w400,
fontWeight: videoItem.bvid == bvid ? FontWeight.bold : null,
fontSize: Theme.of(context).textTheme.bodyMedium!.fontSize,
height: 1.42,
letterSpacing: 0.3,
@@ -144,7 +142,6 @@ class VideoCardHMemberVideo extends StatelessWidget {
: videoItem.publishTimeText ?? '',
maxLines: 1,
style: TextStyle(
fontWeight: FontWeight.w400,
fontSize: Theme.of(context).textTheme.labelMedium!.fontSize,
height: 1,
color: Theme.of(context).colorScheme.outline,

View File

@@ -229,7 +229,6 @@ class VideoCardV extends StatelessWidget {
maxLines: 2,
overflow: TextOverflow.ellipsis,
style: const TextStyle(
fontWeight: FontWeight.w400,
height: 1.38,
)),
),

View File

@@ -214,7 +214,6 @@ Widget videoContent(BuildContext context, Item videoItem) {
maxLines: 2,
overflow: TextOverflow.ellipsis,
style: const TextStyle(
fontWeight: FontWeight.w400,
height: 1.38,
)),
),

View File

@@ -150,7 +150,6 @@ class _MediaListPanelState extends State<MediaListPanel> {
maxLines: 2,
overflow: TextOverflow.ellipsis,
style: TextStyle(
fontWeight: FontWeight.w500,
color: item.bvid == widget.bvid
? Theme.of(context)
.colorScheme

View File

@@ -272,7 +272,6 @@ class _BangumiInfoState extends State<BangumiInfo>
: bangumiItem!.title!,
style: const TextStyle(
fontSize: 16,
fontWeight: FontWeight.w400,
),
maxLines: 1,
overflow: TextOverflow.ellipsis,

View File

@@ -53,7 +53,6 @@ class IntroDetail extends StatelessWidget {
bangumiDetail!.title,
style: const TextStyle(
fontSize: 16,
fontWeight: FontWeight.w400,
),
),
const SizedBox(height: 4),

View File

@@ -149,7 +149,6 @@ class BangumiCardV extends StatelessWidget {
bangumiItem.title,
textAlign: TextAlign.start,
style: const TextStyle(
fontWeight: FontWeight.w400,
letterSpacing: 0.3,
),
maxLines: 1,

View File

@@ -138,7 +138,6 @@ Widget bangumiContent(Item bangumiItem) {
bangumiItem.title ?? '',
textAlign: TextAlign.start,
style: const TextStyle(
fontWeight: FontWeight.w400,
letterSpacing: 0.3,
),
maxLines: 1,

View File

@@ -68,7 +68,6 @@ class FavItem extends StatelessWidget {
favFolderItem.title ?? '',
textAlign: TextAlign.start,
style: const TextStyle(
fontWeight: FontWeight.w400,
letterSpacing: 0.3,
),
),

View File

@@ -150,7 +150,6 @@ class FavVideoCardH extends StatelessWidget {
videoItem.title,
textAlign: TextAlign.start,
style: const TextStyle(
fontWeight: FontWeight.w400,
letterSpacing: 0.3,
),
maxLines: 2,

View File

@@ -317,7 +317,6 @@ class HistoryItem extends StatelessWidget {
videoItem.title,
textAlign: TextAlign.start,
style: const TextStyle(
fontWeight: FontWeight.w400,
letterSpacing: 0.3,
),
maxLines: videoItem.videos > 1 ? 1 : 2,
@@ -330,7 +329,6 @@ class HistoryItem extends StatelessWidget {
textAlign: TextAlign.start,
style: TextStyle(
fontSize: Theme.of(context).textTheme.labelMedium!.fontSize,
fontWeight: FontWeight.w400,
color: Theme.of(context).colorScheme.outline),
maxLines: 1,
overflow: TextOverflow.ellipsis,

View File

@@ -84,7 +84,6 @@ class LiveCardV extends StatelessWidget {
'${liveItem.title}',
textAlign: TextAlign.start,
style: const TextStyle(
fontWeight: FontWeight.w400,
letterSpacing: 0.3,
),
maxLines: 2,

View File

@@ -155,7 +155,6 @@ class UserInfoCard extends StatelessWidget {
// style: TextStyle(
// height: 1,
// fontSize: 12,
// fontWeight: FontWeight.w500,
// color: Theme.of(context).colorScheme.onSecondaryContainer,
// ),
// strutStyle: const StrutStyle(

View File

@@ -471,7 +471,6 @@ class _MemberPageState extends State<MemberPage>
style: TextStyle(
height: 1,
fontSize: 12,
fontWeight: FontWeight.w500,
color: Theme.of(context).colorScheme.onSecondaryContainer,
),
strutStyle: const StrutStyle(

View File

@@ -163,9 +163,6 @@ Widget searchArticlePanel(context, searchPanelCtr, LoadingState loadingState) {
TextSpan(
text: i['text'],
style: TextStyle(
fontWeight:
FontWeight.w400,
letterSpacing: 0.3,
color: i['type'] == 'em'
? Theme.of(context)
.colorScheme

View File

@@ -129,7 +129,6 @@ class LiveContent extends StatelessWidget {
TextSpan(
text: i['text'],
style: TextStyle(
fontWeight: FontWeight.w400,
letterSpacing: 0.3,
color: i['type'] == 'em'
? Theme.of(context).colorScheme.primary

View File

@@ -87,7 +87,6 @@ class SubItem extends StatelessWidget {
subFolderItem.title!,
textAlign: TextAlign.start,
style: const TextStyle(
fontWeight: FontWeight.w400,
letterSpacing: 0.3,
),
),

View File

@@ -116,7 +116,6 @@ class SubVideoCardH extends StatelessWidget {
'${videoItem.title}',
textAlign: TextAlign.start,
style: const TextStyle(
fontWeight: FontWeight.w400,
letterSpacing: 0.3,
),
maxLines: 2,

View File

@@ -444,10 +444,7 @@ class _VideoInfoState extends State<VideoInfo> with TickerProviderStateMixin {
'${widget.videoDetail?.title ?? videoItem['title'] ?? ''}',
maxLines: 2,
overflow: TextOverflow.ellipsis,
style: const TextStyle(
fontSize: 16,
fontWeight: FontWeight.w500,
),
style: const TextStyle(fontSize: 16),
),
),
expanded: GestureDetector(
@@ -458,10 +455,7 @@ class _VideoInfoState extends State<VideoInfo> with TickerProviderStateMixin {
},
child: Text(
widget.videoDetail?.title ?? videoItem['title'] ?? '',
style: const TextStyle(
fontSize: 16,
fontWeight: FontWeight.w500,
),
style: const TextStyle(fontSize: 16),
),
),
theme: const ExpandableThemeData(

View File

@@ -48,10 +48,7 @@ class IntroDetail extends StatelessWidget {
children: [
SelectableText(
videoDetail!.title,
style: const TextStyle(
fontSize: 16,
fontWeight: FontWeight.w500,
),
style: const TextStyle(fontSize: 16),
),
const SizedBox(height: 6),
Row(