From 2dd943d2fa549575447cee111b30bcac80f46ae1 Mon Sep 17 00:00:00 2001 From: sihoo Date: Thu, 1 Oct 2026 23:40:15 +0000 Subject: [PATCH] =?UTF-8?q?=EB=B0=B1=ED=92=88=ED=83=80=20=EB=9E=AD?= =?UTF-8?q?=ED=82=B9=20=ED=99=94=EB=A9=B4=20=ED=95=84=ED=84=B0=20=EC=B9=A9?= =?UTF-8?q?/=EB=82=B4=20=EC=88=9C=EC=9C=84=20=EA=B0=95=EC=A1=B0=EC=83=89?= =?UTF-8?q?=EC=9D=84=20=ED=85=8C=EB=A7=88=20=EA=B0=95=EC=A1=B0=EC=83=89?= =?UTF-8?q?=EC=9C=BC=EB=A1=9C=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 학년/기간 필터 칩(ChoiceChip)의 selectedColor와 "내 순위" 행 강조 배경이 AppPalette.ink로 고정돼 있어서 테마를 적용해도 검정으로 남아있었다. globalProfileTheme의 accent를 쓰도록 변경. --- lib/ui/study_ranking_screen.dart | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/lib/ui/study_ranking_screen.dart b/lib/ui/study_ranking_screen.dart index 7e4262e..669a334 100644 --- a/lib/ui/study_ranking_screen.dart +++ b/lib/ui/study_ranking_screen.dart @@ -3,6 +3,7 @@ import 'package:flutter/material.dart'; import '../function/study_ranking_controller.dart'; import '../theme/app_palette.dart'; +import '../theme/theme_sync.dart'; import 'title_pill.dart'; class StudyRankingScreen extends StatefulWidget { @@ -126,6 +127,9 @@ class _StudyRankingScreenState extends State { r['studentId'] == widget.myStudentId; final int rank = (r['rank'] as num).toInt(); final medalColor = _rankColor(rank); + final accentColor = + globalProfileTheme.value?.accent ?? + AppPalette.ink; return Container( margin: const EdgeInsets.only(bottom: 8), @@ -134,14 +138,10 @@ class _StudyRankingScreenState extends State { vertical: 12, ), decoration: BoxDecoration( - color: isMe - ? AppPalette.ink - : AppPalette.paper, + color: isMe ? accentColor : AppPalette.paper, borderRadius: BorderRadius.circular(14), border: Border.all( - color: isMe - ? AppPalette.ink - : AppPalette.sage, + color: isMe ? accentColor : AppPalette.sage, ), ), child: Row( @@ -206,14 +206,15 @@ class _StudyRankingScreenState extends State { Widget _periodChip(String value, String label) { final bool selected = _controller.period == value; + final accentColor = globalProfileTheme.value?.accent ?? AppPalette.ink; return Expanded( child: ChoiceChip( label: Center(child: Text(label)), selected: selected, onSelected: (_) => _controller.setPeriod(value), - selectedColor: AppPalette.ink, + selectedColor: accentColor, labelStyle: TextStyle( - color: selected ? Colors.white : AppPalette.ink, + color: selected ? Colors.white : accentColor, fontWeight: FontWeight.bold, ), ), @@ -222,12 +223,13 @@ class _StudyRankingScreenState extends State { Widget _scopeChip(String value, String label) { final bool selected = _controller.scope == value; + final accentColor = globalProfileTheme.value?.accent ?? AppPalette.ink; return Expanded( child: ChoiceChip( label: Center(child: Text(label, style: const TextStyle(fontSize: 13))), selected: selected, onSelected: (_) => _controller.setScope(value), - selectedColor: AppPalette.ink, + selectedColor: accentColor, backgroundColor: AppPalette.mist, labelStyle: TextStyle( color: selected ? Colors.white : Colors.grey[600],