mod: 字重w500全部上调到w600;横版卡片标题回退为2行

This commit is contained in:
orz12
2024-08-26 06:55:49 +08:00
parent 40819100c3
commit df2e577ebc
16 changed files with 21 additions and 20 deletions

View File

@@ -92,7 +92,7 @@ class LiveContent 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.w500), style: const TextStyle(fontSize: 13, fontWeight: FontWeight.w600),
maxLines: 2, maxLines: 2,
overflow: TextOverflow.ellipsis, overflow: TextOverflow.ellipsis,
), ),

View File

@@ -183,12 +183,12 @@ class VideoContent extends StatelessWidget {
videoItem.title as String, videoItem.title as String,
textAlign: TextAlign.start, textAlign: TextAlign.start,
style: TextStyle( style: TextStyle(
fontWeight: FontWeight.w500, fontWeight: FontWeight.w600,
fontSize: Theme.of(context).textTheme.bodyMedium!.fontSize, fontSize: Theme.of(context).textTheme.bodyMedium!.fontSize,
height: 1.36, height: 1.42,
letterSpacing: 0.3, letterSpacing: 0.3,
), ),
maxLines: 3, maxLines: 2,
overflow: TextOverflow.ellipsis, overflow: TextOverflow.ellipsis,
), ),
), ),
@@ -196,14 +196,14 @@ class VideoContent extends StatelessWidget {
Expanded( Expanded(
child: RichText( child: RichText(
overflow: TextOverflow.ellipsis, overflow: TextOverflow.ellipsis,
maxLines: 3, maxLines: 2,
text: TextSpan( text: TextSpan(
children: [ children: [
for (final i in videoItem.title) ...[ for (final i in videoItem.title) ...[
TextSpan( TextSpan(
text: i['text'] as String, text: i['text'] as String,
style: TextStyle( style: TextStyle(
fontWeight: FontWeight.w500, fontWeight: FontWeight.w600,
fontSize: Theme.of(context) fontSize: Theme.of(context)
.textTheme .textTheme
.bodyMedium! .bodyMedium!
@@ -242,7 +242,7 @@ class VideoContent extends StatelessWidget {
Expanded( Expanded(
flex: 0, flex: 0,
child: Text( child: Text(
"${pubdate}${showOwner ? videoItem.owner.name : ''}", "${pubdate} ${showOwner ? videoItem.owner.name : ''}",
maxLines: 1, maxLines: 1,
style: TextStyle( style: TextStyle(
fontSize: Theme.of(context).textTheme.labelSmall!.fontSize, fontSize: Theme.of(context).textTheme.labelSmall!.fontSize,

View File

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

View File

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

View File

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

View File

@@ -160,7 +160,7 @@ class BangumiContent extends StatelessWidget {
bangumiItem.title, bangumiItem.title,
textAlign: TextAlign.start, textAlign: TextAlign.start,
style: const TextStyle( style: const TextStyle(
fontWeight: FontWeight.w500, fontWeight: FontWeight.w600,
letterSpacing: 0.3, letterSpacing: 0.3,
), ),
maxLines: 1, maxLines: 1,

View File

@@ -77,7 +77,7 @@ class VideoContent extends StatelessWidget {
favFolderItem.title, favFolderItem.title,
textAlign: TextAlign.start, textAlign: TextAlign.start,
style: const TextStyle( style: const TextStyle(
fontWeight: FontWeight.w500, fontWeight: FontWeight.w600,
letterSpacing: 0.3, letterSpacing: 0.3,
), ),
), ),

View File

@@ -157,7 +157,7 @@ class VideoContent extends StatelessWidget {
videoItem.title, videoItem.title,
textAlign: TextAlign.start, textAlign: TextAlign.start,
style: const TextStyle( style: const TextStyle(
fontWeight: FontWeight.w500, fontWeight: FontWeight.w600,
letterSpacing: 0.3, letterSpacing: 0.3,
), ),
maxLines: 2, maxLines: 2,

View File

@@ -301,7 +301,7 @@ class VideoContent extends StatelessWidget {
videoItem.title, videoItem.title,
textAlign: TextAlign.start, textAlign: TextAlign.start,
style: const TextStyle( style: const TextStyle(
fontWeight: FontWeight.w500, fontWeight: FontWeight.w600,
letterSpacing: 0.3, letterSpacing: 0.3,
), ),
maxLines: videoItem.videos > 1 ? 1 : 2, maxLines: videoItem.videos > 1 ? 1 : 2,

View File

@@ -105,7 +105,7 @@ class LiveContent extends StatelessWidget {
liveItem.title, liveItem.title,
textAlign: TextAlign.start, textAlign: TextAlign.start,
style: const TextStyle( style: const TextStyle(
fontWeight: FontWeight.w500, fontWeight: FontWeight.w600,
letterSpacing: 0.3, letterSpacing: 0.3,
), ),
maxLines: 2, maxLines: 2,

View File

@@ -74,7 +74,7 @@ Widget searchArticlePanel(BuildContext context, ctr, list) {
TextSpan( TextSpan(
text: i['text'], text: i['text'],
style: TextStyle( style: TextStyle(
fontWeight: FontWeight.w500, fontWeight: FontWeight.w600,
letterSpacing: 0.3, letterSpacing: 0.3,
color: i['type'] == 'em' color: i['type'] == 'em'
? Theme.of(context) ? Theme.of(context)

View File

@@ -114,7 +114,7 @@ class LiveContent extends StatelessWidget {
TextSpan( TextSpan(
text: i['text'], text: i['text'],
style: TextStyle( style: TextStyle(
fontWeight: FontWeight.w500, fontWeight: FontWeight.w600,
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

@@ -97,7 +97,7 @@ class VideoContent extends StatelessWidget {
subFolderItem.title!, subFolderItem.title!,
textAlign: TextAlign.start, textAlign: TextAlign.start,
style: const TextStyle( style: const TextStyle(
fontWeight: FontWeight.w500, fontWeight: FontWeight.w600,
letterSpacing: 0.3, letterSpacing: 0.3,
), ),
), ),

View File

@@ -130,7 +130,7 @@ class VideoContent extends StatelessWidget {
videoItem.title, videoItem.title,
textAlign: TextAlign.start, textAlign: TextAlign.start,
style: const TextStyle( style: const TextStyle(
fontWeight: FontWeight.w500, fontWeight: FontWeight.w600,
letterSpacing: 0.3, letterSpacing: 0.3,
), ),
maxLines: 2, maxLines: 2,

View File

@@ -303,7 +303,7 @@ class _VideoInfoState extends State<VideoInfo> with TickerProviderStateMixin {
// : videoItem['title'] ?? "", // : videoItem['title'] ?? "",
style: const TextStyle( style: const TextStyle(
fontSize: 16, fontSize: 16,
fontWeight: FontWeight.w500, fontWeight: FontWeight.w600,
), ),
maxLines: 2, maxLines: 2,
overflow: TextOverflow.ellipsis, overflow: TextOverflow.ellipsis,

View File

@@ -47,7 +47,7 @@ class IntroDetail extends StatelessWidget {
videoDetail!.title, videoDetail!.title,
style: const TextStyle( style: const TextStyle(
fontSize: 16, fontSize: 16,
fontWeight: FontWeight.w500, fontWeight: FontWeight.w600,
), ),
), ),
const SizedBox(height: 6), const SizedBox(height: 6),