style(home): 匹配观看全集设计稿配色

This commit is contained in:
Zhou Weidong committed 2026-11-04 13:42:47 +08:00
1 parent f3cfd0d0ec
commit 6acc00394b
4 files changed
+23 -31

No files matched your search

+3
View File
@@ -30,6 +30,9 @@ abstract final class AppColors {
/// 首页及剧集播放页视频信息文案:参考设计图的 65% 半透明白。
static const homeFeedVideoCopy = Color(0xA6FFFFFF);
/// 首页观看全集按钮:参考设计稿的中性深灰表面。
static const watchAllSurface = Color(0xFF333333);
/// 主操作、选中态、播放进度。旧品牌橙已全量映射为品牌红(2026-10 改版)。
static const blue = Color(0xFFF04E4E);
static const primary = blue;
@@ -35,13 +35,8 @@ const _metadataStrutStyle = StrutStyle(
const double _watchAllInset = 12;
const double _watchAllRadius = 6;
const double _watchAllFont = 16;
const _watchAllGradient = LinearGradient(
begin: Alignment.centerLeft,
end: Alignment.centerRight,
colors: [AppColors.mineStatShade, AppColors.brandRed, AppColors.vipButtonEnd],
);
/// 「观看完整剧集」渐变按钮高度,overlay 用它安排底部避让。
/// 「观看完整剧集」按钮高度,overlay 用它安排底部避让。
const double homeFeedWatchAllHeight = _watchAllHeight;
/// 播放量紧凑展示(跟随语言):zh 20万 / en 200K / id 200 rb。
@@ -212,8 +207,8 @@ class HomeFeedWatchAllBar extends StatelessWidget {
return ClipRRect(
borderRadius: BorderRadius.circular(_watchAllRadius),
child: DecoratedBox(
key: const Key('home-feed-full-series-gradient'),
decoration: const BoxDecoration(gradient: _watchAllGradient),
key: const Key('home-feed-full-series-surface'),
decoration: const BoxDecoration(color: AppColors.watchAllSurface),
child: Material(
key: const Key('home-feed-full-series-bg'),
color: AppColors.transparent,