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( Text(
liveItem.title as String, liveItem.title as String,
textAlign: TextAlign.start, textAlign: TextAlign.start,
style: const TextStyle(fontSize: 13, fontWeight: FontWeight.w400), style: const TextStyle(fontSize: 13),
maxLines: 2, maxLines: 2,
overflow: TextOverflow.ellipsis, overflow: TextOverflow.ellipsis,
), ),

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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