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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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