关怀模式

This commit is contained in:
Developer
2026-04-02 22:30:49 +08:00
parent 09fee0694c
commit 7872f2e78a
70 changed files with 4884 additions and 2752 deletions

View File

@@ -74,7 +74,7 @@ class _DiscoverPageState extends State<DiscoverPage>
backgroundColor: isDark ? Colors.grey[900] : Colors.white,
foregroundColor: isDark
? Colors.white
: AppConstants.primaryColor,
: _themeController.currentThemeColor,
leading: controller.categories[_tabController.index] == '热门'
? _buildInfoButton(context, isDark)
: null,
@@ -139,7 +139,7 @@ class _DiscoverPageState extends State<DiscoverPage>
child: Text(
'💡 探索更多精彩内容,发现你感兴趣的诗词世界',
style: TextStyle(
color: AppConstants.primaryColor,
color: _themeController.currentThemeColor,
fontSize: 14,
fontWeight: FontWeight.w400,
),
@@ -213,12 +213,12 @@ class _DiscoverPageState extends State<DiscoverPage>
children: [
CircleAvatar(
radius: 20,
backgroundColor: AppConstants.primaryColor.withValues(
backgroundColor: _themeController.currentThemeColor.withValues(
alpha: 0.1,
),
child: Icon(
Icons.person,
color: AppConstants.primaryColor,
color: _themeController.currentThemeColor,
size: 20,
),
),
@@ -365,7 +365,7 @@ class _DiscoverPageState extends State<DiscoverPage>
return IconButton(
icon: Icon(
Icons.info_outline,
color: isDark ? Colors.white : AppConstants.primaryColor,
color: isDark ? Colors.white : _themeController.currentThemeColor,
),
onPressed: () => _showHotInfoPopup(buttonContext, isDark),
);
@@ -414,7 +414,7 @@ class _DiscoverPageState extends State<DiscoverPage>
children: [
Icon(
Icons.local_fire_department,
color: AppConstants.primaryColor,
color: _themeController.currentThemeColor,
size: 20,
),
const SizedBox(width: 8),