Skip to content

Commit

Permalink
mod: 字重w500全部上调到w600;横版卡片标题回退为2行
Browse files Browse the repository at this point in the history
  • Loading branch information
orz12 committed Aug 25, 2024
1 parent 4081910 commit df2e577
Show file tree
Hide file tree
Showing 16 changed files with 21 additions and 20 deletions.
2 changes: 1 addition & 1 deletion lib/common/widgets/live_card.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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,
),
Expand Down
12 changes: 6 additions & 6 deletions lib/common/widgets/video_card_h.dart
Original file line number Diff line number Diff line change
Expand Up @@ -183,27 +183,27 @@ 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,
),
),
] else ...[
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!
Expand Down Expand Up @@ -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,
Expand Down
1 change: 1 addition & 0 deletions lib/common/widgets/video_card_v.dart
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,7 @@ class VideoContent extends StatelessWidget {
maxLines: 2,
overflow: TextOverflow.ellipsis,
style: const TextStyle(
fontWeight: FontWeight.w600,
height: 1.38,
)),
),
Expand Down
2 changes: 1 addition & 1 deletion lib/pages/bangumi/introduction/view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion lib/pages/bangumi/introduction/widgets/intro_detail.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
2 changes: 1 addition & 1 deletion lib/pages/bangumi/widgets/bangumi_card_v.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion lib/pages/fav/widgets/item.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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,
),
),
Expand Down
2 changes: 1 addition & 1 deletion lib/pages/fav_detail/widget/fav_video_card.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion lib/pages/history/widgets/item.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion lib/pages/live/widgets/live_item.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion lib/pages/search_panel/widgets/article_panel.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion lib/pages/search_panel/widgets/live_panel.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/pages/subscription/widgets/item.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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,
),
),
Expand Down
2 changes: 1 addition & 1 deletion lib/pages/subscription_detail/widget/sub_video_card.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion lib/pages/video/detail/introduction/view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit df2e577

Please sign in to comment.