전체 UI 색상 통일 - 제각각이던 빨강/주황/파랑 계열을 의미별 토큰 4종으로 정리

danger/warning/success/approved(+각 Bg 버전)를 AppPalette에 추가하고,
화면마다 다르게 쓰이던 Colors.red[400/600/700]/redAccent, orange/amber
계열, blue 계열 리터럴을 전부 해당 토큰으로 교체. NFC 체크인 화면의
홀로 튀던 Colors.blueAccent도 함께 정리.
This commit is contained in:
2026-09-30 06:29:37 +00:00
parent 153c341efc
commit 9fe3e61c1c
17 changed files with 137 additions and 94 deletions
+13 -6
View File
@@ -39,7 +39,10 @@ class _AdminDashboardState extends State<AdminDashboard> {
return AlertDialog(
title: const Text(
'DB 초기화 경고',
style: TextStyle(color: Colors.red, fontWeight: FontWeight.bold),
style: TextStyle(
color: AppPalette.danger,
fontWeight: FontWeight.bold,
),
),
content: const Text(
'모든 학생의 출석 및 휴대폰 제출 데이터가 영구적으로 삭제됩니다.\n\n정말 초기화하시겠습니까?',
@@ -50,7 +53,9 @@ class _AdminDashboardState extends State<AdminDashboard> {
child: const Text('취소', style: TextStyle(color: Colors.grey)),
),
ElevatedButton(
style: ElevatedButton.styleFrom(backgroundColor: Colors.red),
style: ElevatedButton.styleFrom(
backgroundColor: AppPalette.danger,
),
onPressed: () {
Navigator.pop(dialogContext);
_resetDatabase();
@@ -113,16 +118,18 @@ class _AdminDashboardState extends State<AdminDashboard> {
const SizedBox(height: 40),
_controller.isLoading
? const CircularProgressIndicator(color: Colors.red)
? const CircularProgressIndicator(
color: AppPalette.danger,
)
: SizedBox(
width: double.infinity,
height: 60,
child: ElevatedButton.icon(
style: ElevatedButton.styleFrom(
backgroundColor: Colors.red[50],
foregroundColor: Colors.red,
backgroundColor: AppPalette.dangerBg,
foregroundColor: AppPalette.danger,
side: const BorderSide(
color: Colors.red,
color: AppPalette.danger,
width: 2,
),
shape: RoundedRectangleBorder(