From a7b42775369fdd114f1f5f2b9d1247cf037bda2a Mon Sep 17 00:00:00 2001 From: Zhou Weidong <502333560@qq.com> Date: Wed, 4 Nov 2026 14:24:21 +0800 Subject: [PATCH] =?UTF-8?q?style(home):=20=E8=A7=82=E7=9C=8B=E5=85=A8?= =?UTF-8?q?=E9=9B=86=E6=8C=89=E9=92=AE=E6=94=B9=E7=94=A8=E6=9A=96=E6=B7=B1?= =?UTF-8?q?=E7=82=AD=E7=81=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/core/theme/app_colors.dart | 4 ++-- test/home/feed_watch_all_gradient_test.dart | 17 +++++++++++++---- 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/lib/core/theme/app_colors.dart b/lib/core/theme/app_colors.dart index 086d4d7..20f1d3b 100644 --- a/lib/core/theme/app_colors.dart +++ b/lib/core/theme/app_colors.dart @@ -30,8 +30,8 @@ abstract final class AppColors { /// 首页及剧集播放页视频信息文案:参考设计图的 65% 半透明白。 static const homeFeedVideoCopy = Color(0xA6FFFFFF); - /// 首页观看全集按钮:参考设计稿的中性深灰表面。 - static const watchAllSurface = Color(0xFF333333); + /// 首页观看全集按钮:参考设计稿的按钮灰,并叠入品牌红暖调。 + static const watchAllSurface = Color(0xFF3B3434); /// 主操作、选中态、播放进度。旧品牌橙已全量映射为品牌红(2026-10 改版)。 static const blue = Color(0xFFF04E4E); diff --git a/test/home/feed_watch_all_gradient_test.dart b/test/home/feed_watch_all_gradient_test.dart index 8965365..4e03593 100644 --- a/test/home/feed_watch_all_gradient_test.dart +++ b/test/home/feed_watch_all_gradient_test.dart @@ -7,6 +7,7 @@ import 'package:flutter/material.dart'; import 'package:flutter/rendering.dart'; import 'package:flutter_test/flutter_test.dart'; import 'package:fruitshorts/core/data/models/drama.dart'; +import 'package:fruitshorts/core/theme/app_colors.dart'; import 'package:fruitshorts/l10n/app_localizations.dart'; import 'package:fruitshorts/pages/player/widgets/home_feed_recommend_panel.dart'; @@ -15,7 +16,6 @@ const _width = 280.0; const _sampleInset = 16; const _sampleY = 4; const _rgbaChannels = 4; -const _surfaceChannel = 0.2; const _surfaceTolerance = 0.01; const _drama = Drama( id: 'surface', @@ -71,9 +71,18 @@ void main() { image.dispose(); for (final sample in [left, middle, right]) { expect(sample.a, 1); - expect(sample.r, closeTo(_surfaceChannel, _surfaceTolerance)); - expect(sample.g, closeTo(_surfaceChannel, _surfaceTolerance)); - expect(sample.b, closeTo(_surfaceChannel, _surfaceTolerance)); + expect( + sample.r, + closeTo(AppColors.watchAllSurface.r, _surfaceTolerance), + ); + expect( + sample.g, + closeTo(AppColors.watchAllSurface.g, _surfaceTolerance), + ); + expect( + sample.b, + closeTo(AppColors.watchAllSurface.b, _surfaceTolerance), + ); } }); });