Compare commits
4 Commits
2ed565d94c
...
8d477cdc61
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8d477cdc61 | ||
|
|
e64aac04fb | ||
|
|
94aad1f0fe | ||
|
|
6da0fdbce7 |
227
lib/src/app.dart
227
lib/src/app.dart
@@ -96,71 +96,64 @@ class _AskiiNeverDieAppState extends State<AskiiNeverDieApp> {
|
|||||||
super.dispose();
|
super.dispose();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// 라이트 테마
|
/// 라이트 테마 (Classic Parchment 스타일)
|
||||||
ThemeData get _lightTheme => ThemeData(
|
ThemeData get _lightTheme => ThemeData(
|
||||||
colorScheme: ColorScheme.fromSeed(seedColor: const Color(0xFF234361)),
|
colorScheme: RetroColors.lightColorScheme,
|
||||||
scaffoldBackgroundColor: const Color(0xFFF4F5F7),
|
scaffoldBackgroundColor: const Color(0xFFFAF4ED),
|
||||||
useMaterial3: true,
|
|
||||||
);
|
|
||||||
|
|
||||||
/// 다크 테마 (레트로 RPG 스타일)
|
|
||||||
ThemeData get _darkTheme => ThemeData(
|
|
||||||
colorScheme: RetroColors.colorScheme,
|
|
||||||
scaffoldBackgroundColor: RetroColors.deepBrown,
|
|
||||||
useMaterial3: true,
|
useMaterial3: true,
|
||||||
// 카드/다이얼로그 레트로 배경
|
// 카드/다이얼로그 레트로 배경
|
||||||
cardColor: RetroColors.panelBg,
|
cardColor: const Color(0xFFF2E8DC),
|
||||||
dialogTheme: DialogThemeData(
|
dialogTheme: const DialogThemeData(
|
||||||
backgroundColor: RetroColors.panelBg,
|
backgroundColor: Color(0xFFF2E8DC),
|
||||||
titleTextStyle: const TextStyle(
|
titleTextStyle: TextStyle(
|
||||||
fontFamily: 'PressStart2P',
|
fontFamily: 'PressStart2P',
|
||||||
fontSize: 12,
|
fontSize: 12,
|
||||||
color: RetroColors.gold,
|
color: Color(0xFFB8860B),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
// 앱바 레트로 스타일
|
// 앱바 레트로 스타일
|
||||||
appBarTheme: AppBarTheme(
|
appBarTheme: const AppBarTheme(
|
||||||
backgroundColor: RetroColors.darkBrown,
|
backgroundColor: Color(0xFFF2E8DC),
|
||||||
foregroundColor: RetroColors.textLight,
|
foregroundColor: Color(0xFF1F1F28),
|
||||||
titleTextStyle: const TextStyle(
|
titleTextStyle: TextStyle(
|
||||||
fontFamily: 'PressStart2P',
|
fontFamily: 'PressStart2P',
|
||||||
fontSize: 12,
|
fontSize: 12,
|
||||||
color: RetroColors.gold,
|
color: Color(0xFFB8860B),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
// 버튼 테마 (inherit: false로 애니메이션 lerp 오류 방지)
|
// 버튼 테마
|
||||||
filledButtonTheme: FilledButtonThemeData(
|
filledButtonTheme: FilledButtonThemeData(
|
||||||
style: FilledButton.styleFrom(
|
style: FilledButton.styleFrom(
|
||||||
backgroundColor: RetroColors.buttonPrimary,
|
backgroundColor: const Color(0xFFE8DDD0),
|
||||||
foregroundColor: RetroColors.textLight,
|
foregroundColor: const Color(0xFF1F1F28),
|
||||||
textStyle: const TextStyle(
|
textStyle: const TextStyle(
|
||||||
inherit: false,
|
inherit: false,
|
||||||
fontFamily: 'PressStart2P',
|
fontFamily: 'PressStart2P',
|
||||||
fontSize: 10,
|
fontSize: 10,
|
||||||
color: RetroColors.textLight,
|
color: Color(0xFF1F1F28),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
outlinedButtonTheme: OutlinedButtonThemeData(
|
outlinedButtonTheme: OutlinedButtonThemeData(
|
||||||
style: OutlinedButton.styleFrom(
|
style: OutlinedButton.styleFrom(
|
||||||
foregroundColor: RetroColors.gold,
|
foregroundColor: const Color(0xFFB8860B),
|
||||||
side: const BorderSide(color: RetroColors.gold, width: 2),
|
side: const BorderSide(color: Color(0xFFB8860B), width: 2),
|
||||||
textStyle: const TextStyle(
|
textStyle: const TextStyle(
|
||||||
inherit: false,
|
inherit: false,
|
||||||
fontFamily: 'PressStart2P',
|
fontFamily: 'PressStart2P',
|
||||||
fontSize: 10,
|
fontSize: 10,
|
||||||
color: RetroColors.gold,
|
color: Color(0xFFB8860B),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
textButtonTheme: TextButtonThemeData(
|
textButtonTheme: TextButtonThemeData(
|
||||||
style: TextButton.styleFrom(
|
style: TextButton.styleFrom(
|
||||||
foregroundColor: RetroColors.cream,
|
foregroundColor: const Color(0xFF4A4458),
|
||||||
textStyle: const TextStyle(
|
textStyle: const TextStyle(
|
||||||
inherit: false,
|
inherit: false,
|
||||||
fontFamily: 'PressStart2P',
|
fontFamily: 'PressStart2P',
|
||||||
fontSize: 10,
|
fontSize: 10,
|
||||||
color: RetroColors.cream,
|
color: Color(0xFF4A4458),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -169,71 +162,205 @@ class _AskiiNeverDieAppState extends State<AskiiNeverDieApp> {
|
|||||||
headlineLarge: TextStyle(
|
headlineLarge: TextStyle(
|
||||||
fontFamily: 'PressStart2P',
|
fontFamily: 'PressStart2P',
|
||||||
fontSize: 18,
|
fontSize: 18,
|
||||||
color: RetroColors.gold,
|
color: Color(0xFFB8860B),
|
||||||
),
|
),
|
||||||
headlineMedium: TextStyle(
|
headlineMedium: TextStyle(
|
||||||
fontFamily: 'PressStart2P',
|
fontFamily: 'PressStart2P',
|
||||||
fontSize: 14,
|
fontSize: 14,
|
||||||
color: RetroColors.gold,
|
color: Color(0xFFB8860B),
|
||||||
),
|
),
|
||||||
headlineSmall: TextStyle(
|
headlineSmall: TextStyle(
|
||||||
fontFamily: 'PressStart2P',
|
fontFamily: 'PressStart2P',
|
||||||
fontSize: 12,
|
fontSize: 12,
|
||||||
color: RetroColors.gold,
|
color: Color(0xFFB8860B),
|
||||||
),
|
),
|
||||||
titleLarge: TextStyle(
|
titleLarge: TextStyle(
|
||||||
fontFamily: 'PressStart2P',
|
fontFamily: 'PressStart2P',
|
||||||
fontSize: 12,
|
fontSize: 12,
|
||||||
color: RetroColors.textLight,
|
color: Color(0xFF1F1F28),
|
||||||
),
|
),
|
||||||
titleMedium: TextStyle(
|
titleMedium: TextStyle(
|
||||||
fontFamily: 'PressStart2P',
|
fontFamily: 'PressStart2P',
|
||||||
fontSize: 10,
|
fontSize: 10,
|
||||||
color: RetroColors.textLight,
|
color: Color(0xFF1F1F28),
|
||||||
),
|
),
|
||||||
titleSmall: TextStyle(
|
titleSmall: TextStyle(
|
||||||
fontFamily: 'PressStart2P',
|
fontFamily: 'PressStart2P',
|
||||||
fontSize: 8,
|
fontSize: 8,
|
||||||
color: RetroColors.textLight,
|
color: Color(0xFF1F1F28),
|
||||||
),
|
),
|
||||||
bodyLarge: TextStyle(fontSize: 14, color: RetroColors.textLight),
|
bodyLarge: TextStyle(fontSize: 14, color: Color(0xFF1F1F28)),
|
||||||
bodyMedium: TextStyle(fontSize: 12, color: RetroColors.textLight),
|
bodyMedium: TextStyle(fontSize: 12, color: Color(0xFF1F1F28)),
|
||||||
bodySmall: TextStyle(fontSize: 10, color: RetroColors.textLight),
|
bodySmall: TextStyle(fontSize: 10, color: Color(0xFF1F1F28)),
|
||||||
labelLarge: TextStyle(
|
labelLarge: TextStyle(
|
||||||
fontFamily: 'PressStart2P',
|
fontFamily: 'PressStart2P',
|
||||||
fontSize: 10,
|
fontSize: 10,
|
||||||
color: RetroColors.textLight,
|
color: Color(0xFF1F1F28),
|
||||||
),
|
),
|
||||||
labelMedium: TextStyle(
|
labelMedium: TextStyle(
|
||||||
fontFamily: 'PressStart2P',
|
fontFamily: 'PressStart2P',
|
||||||
fontSize: 8,
|
fontSize: 8,
|
||||||
color: RetroColors.textLight,
|
color: Color(0xFF1F1F28),
|
||||||
),
|
),
|
||||||
labelSmall: TextStyle(
|
labelSmall: TextStyle(
|
||||||
fontFamily: 'PressStart2P',
|
fontFamily: 'PressStart2P',
|
||||||
fontSize: 6,
|
fontSize: 6,
|
||||||
color: RetroColors.textLight,
|
color: Color(0xFF1F1F28),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
// 칩 테마
|
// 칩 테마
|
||||||
chipTheme: ChipThemeData(
|
chipTheme: const ChipThemeData(
|
||||||
backgroundColor: RetroColors.panelBgLight,
|
backgroundColor: Color(0xFFE8DDD0),
|
||||||
labelStyle: const TextStyle(
|
labelStyle: TextStyle(
|
||||||
fontFamily: 'PressStart2P',
|
fontFamily: 'PressStart2P',
|
||||||
fontSize: 8,
|
fontSize: 8,
|
||||||
color: RetroColors.textLight,
|
color: Color(0xFF1F1F28),
|
||||||
),
|
),
|
||||||
side: const BorderSide(color: RetroColors.panelBorderInner),
|
side: BorderSide(color: Color(0xFF8B7355)),
|
||||||
),
|
),
|
||||||
// 리스트 타일 테마
|
// 리스트 타일 테마
|
||||||
listTileTheme: const ListTileThemeData(
|
listTileTheme: const ListTileThemeData(
|
||||||
textColor: RetroColors.textLight,
|
textColor: Color(0xFF1F1F28),
|
||||||
iconColor: RetroColors.gold,
|
iconColor: Color(0xFFB8860B),
|
||||||
),
|
),
|
||||||
// 프로그레스 인디케이터
|
// 프로그레스 인디케이터
|
||||||
progressIndicatorTheme: const ProgressIndicatorThemeData(
|
progressIndicatorTheme: const ProgressIndicatorThemeData(
|
||||||
color: RetroColors.gold,
|
color: Color(0xFFB8860B),
|
||||||
linearTrackColor: RetroColors.panelBorderOuter,
|
linearTrackColor: Color(0xFFD4C4B0),
|
||||||
|
),
|
||||||
|
);
|
||||||
|
|
||||||
|
/// 다크 테마 (Dark Fantasy 스타일)
|
||||||
|
ThemeData get _darkTheme => ThemeData(
|
||||||
|
colorScheme: RetroColors.darkColorScheme,
|
||||||
|
scaffoldBackgroundColor: RetroColors.deepBrown,
|
||||||
|
useMaterial3: true,
|
||||||
|
// 카드/다이얼로그 레트로 배경
|
||||||
|
cardColor: RetroColors.darkBrown,
|
||||||
|
dialogTheme: const DialogThemeData(
|
||||||
|
backgroundColor: Color(0xFF24283B),
|
||||||
|
titleTextStyle: TextStyle(
|
||||||
|
fontFamily: 'PressStart2P',
|
||||||
|
fontSize: 12,
|
||||||
|
color: Color(0xFFE0AF68),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
// 앱바 레트로 스타일
|
||||||
|
appBarTheme: const AppBarTheme(
|
||||||
|
backgroundColor: Color(0xFF24283B),
|
||||||
|
foregroundColor: Color(0xFFC0CAF5),
|
||||||
|
titleTextStyle: TextStyle(
|
||||||
|
fontFamily: 'PressStart2P',
|
||||||
|
fontSize: 12,
|
||||||
|
color: Color(0xFFE0AF68),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
// 버튼 테마 (inherit: false로 애니메이션 lerp 오류 방지)
|
||||||
|
filledButtonTheme: FilledButtonThemeData(
|
||||||
|
style: FilledButton.styleFrom(
|
||||||
|
backgroundColor: const Color(0xFF3D4260),
|
||||||
|
foregroundColor: const Color(0xFFC0CAF5),
|
||||||
|
textStyle: const TextStyle(
|
||||||
|
inherit: false,
|
||||||
|
fontFamily: 'PressStart2P',
|
||||||
|
fontSize: 10,
|
||||||
|
color: Color(0xFFC0CAF5),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
outlinedButtonTheme: OutlinedButtonThemeData(
|
||||||
|
style: OutlinedButton.styleFrom(
|
||||||
|
foregroundColor: const Color(0xFFE0AF68),
|
||||||
|
side: const BorderSide(color: Color(0xFFE0AF68), width: 2),
|
||||||
|
textStyle: const TextStyle(
|
||||||
|
inherit: false,
|
||||||
|
fontFamily: 'PressStart2P',
|
||||||
|
fontSize: 10,
|
||||||
|
color: Color(0xFFE0AF68),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
textButtonTheme: TextButtonThemeData(
|
||||||
|
style: TextButton.styleFrom(
|
||||||
|
foregroundColor: const Color(0xFFC0CAF5),
|
||||||
|
textStyle: const TextStyle(
|
||||||
|
inherit: false,
|
||||||
|
fontFamily: 'PressStart2P',
|
||||||
|
fontSize: 10,
|
||||||
|
color: Color(0xFFC0CAF5),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
// 텍스트 테마
|
||||||
|
textTheme: const TextTheme(
|
||||||
|
headlineLarge: TextStyle(
|
||||||
|
fontFamily: 'PressStart2P',
|
||||||
|
fontSize: 18,
|
||||||
|
color: Color(0xFFE0AF68),
|
||||||
|
),
|
||||||
|
headlineMedium: TextStyle(
|
||||||
|
fontFamily: 'PressStart2P',
|
||||||
|
fontSize: 14,
|
||||||
|
color: Color(0xFFE0AF68),
|
||||||
|
),
|
||||||
|
headlineSmall: TextStyle(
|
||||||
|
fontFamily: 'PressStart2P',
|
||||||
|
fontSize: 12,
|
||||||
|
color: Color(0xFFE0AF68),
|
||||||
|
),
|
||||||
|
titleLarge: TextStyle(
|
||||||
|
fontFamily: 'PressStart2P',
|
||||||
|
fontSize: 12,
|
||||||
|
color: Color(0xFFC0CAF5),
|
||||||
|
),
|
||||||
|
titleMedium: TextStyle(
|
||||||
|
fontFamily: 'PressStart2P',
|
||||||
|
fontSize: 10,
|
||||||
|
color: Color(0xFFC0CAF5),
|
||||||
|
),
|
||||||
|
titleSmall: TextStyle(
|
||||||
|
fontFamily: 'PressStart2P',
|
||||||
|
fontSize: 8,
|
||||||
|
color: Color(0xFFC0CAF5),
|
||||||
|
),
|
||||||
|
bodyLarge: TextStyle(fontSize: 14, color: Color(0xFFC0CAF5)),
|
||||||
|
bodyMedium: TextStyle(fontSize: 12, color: Color(0xFFC0CAF5)),
|
||||||
|
bodySmall: TextStyle(fontSize: 10, color: Color(0xFFC0CAF5)),
|
||||||
|
labelLarge: TextStyle(
|
||||||
|
fontFamily: 'PressStart2P',
|
||||||
|
fontSize: 10,
|
||||||
|
color: Color(0xFFC0CAF5),
|
||||||
|
),
|
||||||
|
labelMedium: TextStyle(
|
||||||
|
fontFamily: 'PressStart2P',
|
||||||
|
fontSize: 8,
|
||||||
|
color: Color(0xFFC0CAF5),
|
||||||
|
),
|
||||||
|
labelSmall: TextStyle(
|
||||||
|
fontFamily: 'PressStart2P',
|
||||||
|
fontSize: 6,
|
||||||
|
color: Color(0xFFC0CAF5),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
// 칩 테마
|
||||||
|
chipTheme: const ChipThemeData(
|
||||||
|
backgroundColor: Color(0xFF2A2E3F),
|
||||||
|
labelStyle: TextStyle(
|
||||||
|
fontFamily: 'PressStart2P',
|
||||||
|
fontSize: 8,
|
||||||
|
color: Color(0xFFC0CAF5),
|
||||||
|
),
|
||||||
|
side: BorderSide(color: Color(0xFF545C7E)),
|
||||||
|
),
|
||||||
|
// 리스트 타일 테마
|
||||||
|
listTileTheme: const ListTileThemeData(
|
||||||
|
textColor: Color(0xFFC0CAF5),
|
||||||
|
iconColor: Color(0xFFE0AF68),
|
||||||
|
),
|
||||||
|
// 프로그레스 인디케이터
|
||||||
|
progressIndicatorTheme: const ProgressIndicatorThemeData(
|
||||||
|
color: Color(0xFFE0AF68),
|
||||||
|
linearTrackColor: Color(0xFF3B4261),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@@ -355,11 +355,14 @@ class _MobileCarouselLayoutState extends State<MobileCarouselLayout> {
|
|||||||
/// 옵션 메뉴 표시
|
/// 옵션 메뉴 표시
|
||||||
void _showOptionsMenu(BuildContext context) {
|
void _showOptionsMenu(BuildContext context) {
|
||||||
final localizations = L10n.of(context);
|
final localizations = L10n.of(context);
|
||||||
|
final panelBg = RetroColors.panelBgOf(context);
|
||||||
|
final gold = RetroColors.goldOf(context);
|
||||||
|
final surface = RetroColors.surfaceOf(context);
|
||||||
|
|
||||||
showModalBottomSheet<void>(
|
showModalBottomSheet<void>(
|
||||||
context: context,
|
context: context,
|
||||||
isScrollControlled: true,
|
isScrollControlled: true,
|
||||||
backgroundColor: RetroColors.panelBg,
|
backgroundColor: panelBg,
|
||||||
constraints: BoxConstraints(
|
constraints: BoxConstraints(
|
||||||
maxHeight: MediaQuery.of(context).size.height * 0.7,
|
maxHeight: MediaQuery.of(context).size.height * 0.7,
|
||||||
),
|
),
|
||||||
@@ -372,18 +375,18 @@ class _MobileCarouselLayoutState extends State<MobileCarouselLayout> {
|
|||||||
Container(
|
Container(
|
||||||
padding: const EdgeInsets.all(16),
|
padding: const EdgeInsets.all(16),
|
||||||
width: double.infinity,
|
width: double.infinity,
|
||||||
decoration: const BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: RetroColors.darkBrown,
|
color: surface,
|
||||||
border: Border(
|
border: Border(
|
||||||
bottom: BorderSide(color: RetroColors.gold, width: 2),
|
bottom: BorderSide(color: gold, width: 2),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
child: const Text(
|
child: Text(
|
||||||
'OPTIONS',
|
'OPTIONS',
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
fontFamily: 'PressStart2P',
|
fontFamily: 'PressStart2P',
|
||||||
fontSize: 12,
|
fontSize: 12,
|
||||||
color: RetroColors.gold,
|
color: gold,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -558,23 +561,26 @@ class _MobileCarouselLayoutState extends State<MobileCarouselLayout> {
|
|||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
final state = widget.state;
|
final state = widget.state;
|
||||||
|
final background = RetroColors.backgroundOf(context);
|
||||||
|
final panelBg = RetroColors.panelBgOf(context);
|
||||||
|
final gold = RetroColors.goldOf(context);
|
||||||
|
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
backgroundColor: RetroColors.deepBrown,
|
backgroundColor: background,
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
backgroundColor: RetroColors.darkBrown,
|
backgroundColor: panelBg,
|
||||||
title: Text(
|
title: Text(
|
||||||
L10n.of(context).progressQuestTitle(state.traits.name),
|
L10n.of(context).progressQuestTitle(state.traits.name),
|
||||||
style: const TextStyle(
|
style: TextStyle(
|
||||||
fontFamily: 'PressStart2P',
|
fontFamily: 'PressStart2P',
|
||||||
fontSize: 10,
|
fontSize: 10,
|
||||||
color: RetroColors.gold,
|
color: gold,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
actions: [
|
actions: [
|
||||||
// 옵션 버튼
|
// 옵션 버튼
|
||||||
IconButton(
|
IconButton(
|
||||||
icon: const Icon(Icons.settings, color: RetroColors.gold),
|
icon: Icon(Icons.settings, color: gold),
|
||||||
onPressed: () => _showOptionsMenu(context),
|
onPressed: () => _showOptionsMenu(context),
|
||||||
tooltip: l10n.menuOptions,
|
tooltip: l10n.menuOptions,
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -30,26 +30,38 @@ class CarouselNavBar extends StatelessWidget {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
|
// 하단 SafeArea 패딩 (Android 제스처 네비게이션 영역)
|
||||||
|
final bottomPadding = MediaQuery.of(context).padding.bottom;
|
||||||
|
final panelBg = RetroColors.panelBgOf(context);
|
||||||
|
final accent = RetroColors.goldOf(context);
|
||||||
|
|
||||||
return Container(
|
return Container(
|
||||||
height: 56,
|
padding: EdgeInsets.only(
|
||||||
padding: const EdgeInsets.symmetric(horizontal: 2, vertical: 4),
|
left: 2,
|
||||||
decoration: const BoxDecoration(
|
right: 2,
|
||||||
color: RetroColors.darkBrown,
|
top: 4,
|
||||||
|
bottom: 4 + bottomPadding,
|
||||||
|
),
|
||||||
|
decoration: BoxDecoration(
|
||||||
|
color: panelBg,
|
||||||
border: Border(
|
border: Border(
|
||||||
top: BorderSide(color: RetroColors.gold, width: 2),
|
top: BorderSide(color: accent, width: 2),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
child: Row(
|
child: SizedBox(
|
||||||
children: CarouselPage.values.map((page) {
|
height: 48,
|
||||||
final isSelected = page.index == currentPage;
|
child: Row(
|
||||||
return Expanded(
|
children: CarouselPage.values.map((page) {
|
||||||
child: _NavButton(
|
final isSelected = page.index == currentPage;
|
||||||
page: page,
|
return Expanded(
|
||||||
isSelected: isSelected,
|
child: _NavButton(
|
||||||
onTap: () => onPageSelected(page.index),
|
page: page,
|
||||||
),
|
isSelected: isSelected,
|
||||||
);
|
onTap: () => onPageSelected(page.index),
|
||||||
}).toList(),
|
),
|
||||||
|
);
|
||||||
|
}).toList(),
|
||||||
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -70,10 +82,12 @@ class _NavButton extends StatelessWidget {
|
|||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
final (icon, label) = _getIconAndLabel(page);
|
final (icon, label) = _getIconAndLabel(page);
|
||||||
final color = isSelected ? RetroColors.gold : RetroColors.textDisabled;
|
final accent = RetroColors.goldOf(context);
|
||||||
final bgColor = isSelected
|
final muted = RetroColors.textMutedOf(context);
|
||||||
? RetroColors.panelBgLight
|
final surface = RetroColors.surfaceOf(context);
|
||||||
: Colors.transparent;
|
|
||||||
|
final color = isSelected ? accent : muted;
|
||||||
|
final bgColor = isSelected ? surface : Colors.transparent;
|
||||||
|
|
||||||
return GestureDetector(
|
return GestureDetector(
|
||||||
onTap: onTap,
|
onTap: onTap,
|
||||||
@@ -82,9 +96,7 @@ class _NavButton extends StatelessWidget {
|
|||||||
padding: const EdgeInsets.symmetric(vertical: 4),
|
padding: const EdgeInsets.symmetric(vertical: 4),
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: bgColor,
|
color: bgColor,
|
||||||
border: isSelected
|
border: isSelected ? Border.all(color: accent, width: 1) : null,
|
||||||
? Border.all(color: RetroColors.gold, width: 1)
|
|
||||||
: null,
|
|
||||||
),
|
),
|
||||||
child: Column(
|
child: Column(
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
|
|||||||
@@ -28,6 +28,12 @@ class DeathOverlay extends StatelessWidget {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
|
// 테마 인식 색상 (Theme-aware colors)
|
||||||
|
final hpColor = RetroColors.hpOf(context);
|
||||||
|
final hpDark = RetroColors.hpDarkOf(context);
|
||||||
|
final panelBg = RetroColors.panelBgOf(context);
|
||||||
|
final borderColor = RetroColors.borderOf(context);
|
||||||
|
|
||||||
return Material(
|
return Material(
|
||||||
color: Colors.black.withValues(alpha: 0.9),
|
color: Colors.black.withValues(alpha: 0.9),
|
||||||
child: Center(
|
child: Center(
|
||||||
@@ -35,16 +41,16 @@ class DeathOverlay extends StatelessWidget {
|
|||||||
constraints: const BoxConstraints(maxWidth: 420),
|
constraints: const BoxConstraints(maxWidth: 420),
|
||||||
margin: const EdgeInsets.all(24),
|
margin: const EdgeInsets.all(24),
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: RetroColors.panelBg,
|
color: panelBg,
|
||||||
border: const Border(
|
border: Border(
|
||||||
top: BorderSide(color: RetroColors.hpRed, width: 4),
|
top: BorderSide(color: hpColor, width: 4),
|
||||||
left: BorderSide(color: RetroColors.hpRed, width: 4),
|
left: BorderSide(color: hpColor, width: 4),
|
||||||
bottom: BorderSide(color: RetroColors.panelBorderOuter, width: 4),
|
bottom: BorderSide(color: borderColor, width: 4),
|
||||||
right: BorderSide(color: RetroColors.panelBorderOuter, width: 4),
|
right: BorderSide(color: borderColor, width: 4),
|
||||||
),
|
),
|
||||||
boxShadow: [
|
boxShadow: [
|
||||||
BoxShadow(
|
BoxShadow(
|
||||||
color: RetroColors.hpRed.withValues(alpha: 0.5),
|
color: hpColor.withValues(alpha: 0.5),
|
||||||
blurRadius: 30,
|
blurRadius: 30,
|
||||||
spreadRadius: 5,
|
spreadRadius: 5,
|
||||||
),
|
),
|
||||||
@@ -58,32 +64,32 @@ class DeathOverlay extends StatelessWidget {
|
|||||||
width: double.infinity,
|
width: double.infinity,
|
||||||
padding: const EdgeInsets.symmetric(horizontal: 12, vertical: 8),
|
padding: const EdgeInsets.symmetric(horizontal: 12, vertical: 8),
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: RetroColors.hpRed.withValues(alpha: 0.3),
|
color: hpColor.withValues(alpha: 0.3),
|
||||||
border: const Border(
|
border: Border(
|
||||||
bottom: BorderSide(color: RetroColors.hpRed, width: 2),
|
bottom: BorderSide(color: hpColor, width: 2),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
child: const Row(
|
child: Row(
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
'☠',
|
'☠',
|
||||||
style: TextStyle(fontSize: 16, color: RetroColors.hpRed),
|
style: TextStyle(fontSize: 16, color: hpColor),
|
||||||
),
|
),
|
||||||
SizedBox(width: 8),
|
const SizedBox(width: 8),
|
||||||
Text(
|
Text(
|
||||||
'GAME OVER',
|
'GAME OVER',
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
fontFamily: 'PressStart2P',
|
fontFamily: 'PressStart2P',
|
||||||
fontSize: 12,
|
fontSize: 12,
|
||||||
color: RetroColors.hpRed,
|
color: hpColor,
|
||||||
letterSpacing: 2,
|
letterSpacing: 2,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
SizedBox(width: 8),
|
const SizedBox(width: 8),
|
||||||
Text(
|
Text(
|
||||||
'☠',
|
'☠',
|
||||||
style: TextStyle(fontSize: 16, color: RetroColors.hpRed),
|
style: TextStyle(fontSize: 16, color: hpColor),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
@@ -107,7 +113,7 @@ class DeathOverlay extends StatelessWidget {
|
|||||||
const SizedBox(height: 20),
|
const SizedBox(height: 20),
|
||||||
|
|
||||||
// 구분선
|
// 구분선
|
||||||
_buildRetroDivider(),
|
_buildRetroDivider(hpColor, hpDark),
|
||||||
const SizedBox(height: 16),
|
const SizedBox(height: 16),
|
||||||
|
|
||||||
// 상실 정보
|
// 상실 정보
|
||||||
@@ -116,7 +122,7 @@ class DeathOverlay extends StatelessWidget {
|
|||||||
// 전투 로그 (있는 경우만 표시)
|
// 전투 로그 (있는 경우만 표시)
|
||||||
if (deathInfo.lastCombatEvents.isNotEmpty) ...[
|
if (deathInfo.lastCombatEvents.isNotEmpty) ...[
|
||||||
const SizedBox(height: 16),
|
const SizedBox(height: 16),
|
||||||
_buildRetroDivider(),
|
_buildRetroDivider(hpColor, hpDark),
|
||||||
const SizedBox(height: 8),
|
const SizedBox(height: 8),
|
||||||
_buildCombatLog(context),
|
_buildCombatLog(context),
|
||||||
],
|
],
|
||||||
@@ -136,16 +142,16 @@ class DeathOverlay extends StatelessWidget {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// 레트로 스타일 구분선
|
/// 레트로 스타일 구분선
|
||||||
Widget _buildRetroDivider() {
|
Widget _buildRetroDivider(Color hpColor, Color hpDark) {
|
||||||
return Container(
|
return Container(
|
||||||
height: 2,
|
height: 2,
|
||||||
decoration: const BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
gradient: LinearGradient(
|
gradient: LinearGradient(
|
||||||
colors: [
|
colors: [
|
||||||
Colors.transparent,
|
Colors.transparent,
|
||||||
RetroColors.hpRedDark,
|
hpDark,
|
||||||
RetroColors.hpRed,
|
hpColor,
|
||||||
RetroColors.hpRedDark,
|
hpDark,
|
||||||
Colors.transparent,
|
Colors.transparent,
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
@@ -154,10 +160,13 @@ class DeathOverlay extends StatelessWidget {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Widget _buildDeathTitle(BuildContext context) {
|
Widget _buildDeathTitle(BuildContext context) {
|
||||||
|
final hpColor = RetroColors.hpOf(context);
|
||||||
|
final hpDark = RetroColors.hpDarkOf(context);
|
||||||
|
|
||||||
return Column(
|
return Column(
|
||||||
children: [
|
children: [
|
||||||
// ASCII 스컬 (더 큰 버전)
|
// ASCII 스컬 (더 큰 버전)
|
||||||
const Text(
|
Text(
|
||||||
' _____ \n'
|
' _____ \n'
|
||||||
' / \\\n'
|
' / \\\n'
|
||||||
' | () () |\n'
|
' | () () |\n'
|
||||||
@@ -166,7 +175,7 @@ class DeathOverlay extends StatelessWidget {
|
|||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
fontFamily: 'JetBrainsMono',
|
fontFamily: 'JetBrainsMono',
|
||||||
fontSize: 12,
|
fontSize: 12,
|
||||||
color: RetroColors.hpRed,
|
color: hpColor,
|
||||||
height: 1.0,
|
height: 1.0,
|
||||||
),
|
),
|
||||||
textAlign: TextAlign.center,
|
textAlign: TextAlign.center,
|
||||||
@@ -174,14 +183,14 @@ class DeathOverlay extends StatelessWidget {
|
|||||||
const SizedBox(height: 12),
|
const SizedBox(height: 12),
|
||||||
Text(
|
Text(
|
||||||
l10n.deathYouDied.toUpperCase(),
|
l10n.deathYouDied.toUpperCase(),
|
||||||
style: const TextStyle(
|
style: TextStyle(
|
||||||
fontFamily: 'PressStart2P',
|
fontFamily: 'PressStart2P',
|
||||||
fontSize: 14,
|
fontSize: 14,
|
||||||
color: RetroColors.hpRed,
|
color: hpColor,
|
||||||
letterSpacing: 2,
|
letterSpacing: 2,
|
||||||
shadows: [
|
shadows: [
|
||||||
Shadow(color: Colors.black, blurRadius: 4),
|
const Shadow(color: Colors.black, blurRadius: 4),
|
||||||
Shadow(color: RetroColors.hpRedDark, blurRadius: 8),
|
Shadow(color: hpDark, blurRadius: 8),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -190,29 +199,34 @@ class DeathOverlay extends StatelessWidget {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Widget _buildCharacterInfo(BuildContext context) {
|
Widget _buildCharacterInfo(BuildContext context) {
|
||||||
|
final surface = RetroColors.surfaceOf(context);
|
||||||
|
final borderLight = RetroColors.borderLightOf(context);
|
||||||
|
final gold = RetroColors.goldOf(context);
|
||||||
|
final textPrimary = RetroColors.textPrimaryOf(context);
|
||||||
|
|
||||||
return Container(
|
return Container(
|
||||||
padding: const EdgeInsets.all(12),
|
padding: const EdgeInsets.all(12),
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: RetroColors.panelBgLight.withValues(alpha: 0.5),
|
color: surface.withValues(alpha: 0.5),
|
||||||
border: Border.all(color: RetroColors.panelBorderInner, width: 1),
|
border: Border.all(color: borderLight, width: 1),
|
||||||
),
|
),
|
||||||
child: Column(
|
child: Column(
|
||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
traits.name,
|
traits.name,
|
||||||
style: const TextStyle(
|
style: TextStyle(
|
||||||
fontFamily: 'PressStart2P',
|
fontFamily: 'PressStart2P',
|
||||||
fontSize: 11,
|
fontSize: 11,
|
||||||
color: RetroColors.gold,
|
color: gold,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
const SizedBox(height: 6),
|
const SizedBox(height: 6),
|
||||||
Text(
|
Text(
|
||||||
'Lv.${deathInfo.levelAtDeath} ${GameDataL10n.getKlassName(context, traits.klass)}',
|
'Lv.${deathInfo.levelAtDeath} ${GameDataL10n.getKlassName(context, traits.klass)}',
|
||||||
style: const TextStyle(
|
style: TextStyle(
|
||||||
fontFamily: 'PressStart2P',
|
fontFamily: 'PressStart2P',
|
||||||
fontSize: 8,
|
fontSize: 8,
|
||||||
color: RetroColors.textLight,
|
color: textPrimary,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
@@ -222,28 +236,30 @@ class DeathOverlay extends StatelessWidget {
|
|||||||
|
|
||||||
Widget _buildDeathCause(BuildContext context) {
|
Widget _buildDeathCause(BuildContext context) {
|
||||||
final causeText = _getDeathCauseText();
|
final causeText = _getDeathCauseText();
|
||||||
|
final hpColor = RetroColors.hpOf(context);
|
||||||
|
final hpDark = RetroColors.hpDarkOf(context);
|
||||||
|
|
||||||
return Container(
|
return Container(
|
||||||
padding: const EdgeInsets.symmetric(horizontal: 12, vertical: 8),
|
padding: const EdgeInsets.symmetric(horizontal: 12, vertical: 8),
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: RetroColors.hpRedDark.withValues(alpha: 0.3),
|
color: hpDark.withValues(alpha: 0.3),
|
||||||
border: Border.all(color: RetroColors.hpRed.withValues(alpha: 0.5)),
|
border: Border.all(color: hpColor.withValues(alpha: 0.5)),
|
||||||
),
|
),
|
||||||
child: Row(
|
child: Row(
|
||||||
mainAxisSize: MainAxisSize.min,
|
mainAxisSize: MainAxisSize.min,
|
||||||
children: [
|
children: [
|
||||||
const Text(
|
Text(
|
||||||
'⚔',
|
'⚔',
|
||||||
style: TextStyle(fontSize: 14, color: RetroColors.hpRed),
|
style: TextStyle(fontSize: 14, color: hpColor),
|
||||||
),
|
),
|
||||||
const SizedBox(width: 8),
|
const SizedBox(width: 8),
|
||||||
Flexible(
|
Flexible(
|
||||||
child: Text(
|
child: Text(
|
||||||
causeText,
|
causeText,
|
||||||
style: const TextStyle(
|
style: TextStyle(
|
||||||
fontFamily: 'PressStart2P',
|
fontFamily: 'PressStart2P',
|
||||||
fontSize: 7,
|
fontSize: 7,
|
||||||
color: RetroColors.hpRed,
|
color: hpColor,
|
||||||
),
|
),
|
||||||
textAlign: TextAlign.center,
|
textAlign: TextAlign.center,
|
||||||
),
|
),
|
||||||
@@ -263,6 +279,11 @@ class DeathOverlay extends StatelessWidget {
|
|||||||
|
|
||||||
Widget _buildLossInfo(BuildContext context) {
|
Widget _buildLossInfo(BuildContext context) {
|
||||||
final hasLostItem = deathInfo.lostItemName != null;
|
final hasLostItem = deathInfo.lostItemName != null;
|
||||||
|
final hpColor = RetroColors.hpOf(context);
|
||||||
|
final hpDark = RetroColors.hpDarkOf(context);
|
||||||
|
final muted = RetroColors.textMutedOf(context);
|
||||||
|
final expColor = RetroColors.expOf(context);
|
||||||
|
final gold = RetroColors.goldOf(context);
|
||||||
|
|
||||||
return Column(
|
return Column(
|
||||||
children: [
|
children: [
|
||||||
@@ -271,9 +292,9 @@ class DeathOverlay extends StatelessWidget {
|
|||||||
Container(
|
Container(
|
||||||
padding: const EdgeInsets.all(10),
|
padding: const EdgeInsets.all(10),
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: RetroColors.hpRedDark.withValues(alpha: 0.2),
|
color: hpDark.withValues(alpha: 0.2),
|
||||||
border: Border.all(
|
border: Border.all(
|
||||||
color: RetroColors.hpRed.withValues(alpha: 0.4),
|
color: hpColor.withValues(alpha: 0.4),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
child: Row(
|
child: Row(
|
||||||
@@ -289,19 +310,19 @@ class DeathOverlay extends StatelessWidget {
|
|||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
l10n.deathSacrificedToResurrect.toUpperCase(),
|
l10n.deathSacrificedToResurrect.toUpperCase(),
|
||||||
style: const TextStyle(
|
style: TextStyle(
|
||||||
fontFamily: 'PressStart2P',
|
fontFamily: 'PressStart2P',
|
||||||
fontSize: 6,
|
fontSize: 6,
|
||||||
color: RetroColors.textDisabled,
|
color: muted,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
const SizedBox(height: 4),
|
const SizedBox(height: 4),
|
||||||
Text(
|
Text(
|
||||||
deathInfo.lostItemName!,
|
deathInfo.lostItemName!,
|
||||||
style: const TextStyle(
|
style: TextStyle(
|
||||||
fontFamily: 'PressStart2P',
|
fontFamily: 'PressStart2P',
|
||||||
fontSize: 7,
|
fontSize: 7,
|
||||||
color: RetroColors.hpRed,
|
color: hpColor,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
@@ -317,7 +338,7 @@ class DeathOverlay extends StatelessWidget {
|
|||||||
asciiIcon: '✓',
|
asciiIcon: '✓',
|
||||||
label: l10n.deathEquipment,
|
label: l10n.deathEquipment,
|
||||||
value: l10n.deathNoSacrificeNeeded,
|
value: l10n.deathNoSacrificeNeeded,
|
||||||
valueColor: RetroColors.expGreen,
|
valueColor: expColor,
|
||||||
),
|
),
|
||||||
const SizedBox(height: 8),
|
const SizedBox(height: 8),
|
||||||
],
|
],
|
||||||
@@ -326,7 +347,7 @@ class DeathOverlay extends StatelessWidget {
|
|||||||
asciiIcon: '💰',
|
asciiIcon: '💰',
|
||||||
label: l10n.deathCoinRemaining,
|
label: l10n.deathCoinRemaining,
|
||||||
value: _formatGold(deathInfo.goldAtDeath),
|
value: _formatGold(deathInfo.goldAtDeath),
|
||||||
valueColor: RetroColors.gold,
|
valueColor: gold,
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
@@ -339,6 +360,8 @@ class DeathOverlay extends StatelessWidget {
|
|||||||
required String value,
|
required String value,
|
||||||
required Color valueColor,
|
required Color valueColor,
|
||||||
}) {
|
}) {
|
||||||
|
final muted = RetroColors.textMutedOf(context);
|
||||||
|
|
||||||
return Row(
|
return Row(
|
||||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||||
children: [
|
children: [
|
||||||
@@ -351,10 +374,10 @@ class DeathOverlay extends StatelessWidget {
|
|||||||
const SizedBox(width: 8),
|
const SizedBox(width: 8),
|
||||||
Text(
|
Text(
|
||||||
label,
|
label,
|
||||||
style: const TextStyle(
|
style: TextStyle(
|
||||||
fontFamily: 'PressStart2P',
|
fontFamily: 'PressStart2P',
|
||||||
fontSize: 6,
|
fontSize: 6,
|
||||||
color: RetroColors.textDisabled,
|
color: muted,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
@@ -381,22 +404,25 @@ class DeathOverlay extends StatelessWidget {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Widget _buildResurrectButton(BuildContext context) {
|
Widget _buildResurrectButton(BuildContext context) {
|
||||||
|
final expColor = RetroColors.expOf(context);
|
||||||
|
final expDark = RetroColors.expDarkOf(context);
|
||||||
|
|
||||||
return GestureDetector(
|
return GestureDetector(
|
||||||
onTap: onResurrect,
|
onTap: onResurrect,
|
||||||
child: Container(
|
child: Container(
|
||||||
width: double.infinity,
|
width: double.infinity,
|
||||||
padding: const EdgeInsets.symmetric(vertical: 12),
|
padding: const EdgeInsets.symmetric(vertical: 12),
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: RetroColors.expGreen.withValues(alpha: 0.2),
|
color: expColor.withValues(alpha: 0.2),
|
||||||
border: Border(
|
border: Border(
|
||||||
top: const BorderSide(color: RetroColors.expGreen, width: 3),
|
top: BorderSide(color: expColor, width: 3),
|
||||||
left: const BorderSide(color: RetroColors.expGreen, width: 3),
|
left: BorderSide(color: expColor, width: 3),
|
||||||
bottom: BorderSide(
|
bottom: BorderSide(
|
||||||
color: RetroColors.expGreenDark.withValues(alpha: 0.8),
|
color: expDark.withValues(alpha: 0.8),
|
||||||
width: 3,
|
width: 3,
|
||||||
),
|
),
|
||||||
right: BorderSide(
|
right: BorderSide(
|
||||||
color: RetroColors.expGreenDark.withValues(alpha: 0.8),
|
color: expDark.withValues(alpha: 0.8),
|
||||||
width: 3,
|
width: 3,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -404,21 +430,21 @@ class DeathOverlay extends StatelessWidget {
|
|||||||
child: Row(
|
child: Row(
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
children: [
|
children: [
|
||||||
const Text(
|
Text(
|
||||||
'↺',
|
'↺',
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
fontSize: 16,
|
fontSize: 16,
|
||||||
color: RetroColors.expGreen,
|
color: expColor,
|
||||||
fontWeight: FontWeight.bold,
|
fontWeight: FontWeight.bold,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
const SizedBox(width: 8),
|
const SizedBox(width: 8),
|
||||||
Text(
|
Text(
|
||||||
l10n.deathResurrect.toUpperCase(),
|
l10n.deathResurrect.toUpperCase(),
|
||||||
style: const TextStyle(
|
style: TextStyle(
|
||||||
fontFamily: 'PressStart2P',
|
fontFamily: 'PressStart2P',
|
||||||
fontSize: 10,
|
fontSize: 10,
|
||||||
color: RetroColors.expGreen,
|
color: expColor,
|
||||||
letterSpacing: 1,
|
letterSpacing: 1,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -431,6 +457,9 @@ class DeathOverlay extends StatelessWidget {
|
|||||||
/// 사망 직전 전투 로그 표시
|
/// 사망 직전 전투 로그 표시
|
||||||
Widget _buildCombatLog(BuildContext context) {
|
Widget _buildCombatLog(BuildContext context) {
|
||||||
final events = deathInfo.lastCombatEvents;
|
final events = deathInfo.lastCombatEvents;
|
||||||
|
final gold = RetroColors.goldOf(context);
|
||||||
|
final background = RetroColors.backgroundOf(context);
|
||||||
|
final borderColor = RetroColors.borderOf(context);
|
||||||
|
|
||||||
return Column(
|
return Column(
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
@@ -444,10 +473,10 @@ class DeathOverlay extends StatelessWidget {
|
|||||||
const SizedBox(width: 6),
|
const SizedBox(width: 6),
|
||||||
Text(
|
Text(
|
||||||
l10n.deathCombatLog.toUpperCase(),
|
l10n.deathCombatLog.toUpperCase(),
|
||||||
style: const TextStyle(
|
style: TextStyle(
|
||||||
fontFamily: 'PressStart2P',
|
fontFamily: 'PressStart2P',
|
||||||
fontSize: 7,
|
fontSize: 7,
|
||||||
color: RetroColors.gold,
|
color: gold,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
@@ -456,8 +485,8 @@ class DeathOverlay extends StatelessWidget {
|
|||||||
Container(
|
Container(
|
||||||
constraints: const BoxConstraints(maxHeight: 100),
|
constraints: const BoxConstraints(maxHeight: 100),
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: RetroColors.deepBrown,
|
color: background,
|
||||||
border: Border.all(color: RetroColors.panelBorderOuter, width: 2),
|
border: Border.all(color: borderColor, width: 2),
|
||||||
),
|
),
|
||||||
child: ListView.builder(
|
child: ListView.builder(
|
||||||
shrinkWrap: true,
|
shrinkWrap: true,
|
||||||
@@ -475,7 +504,7 @@ class DeathOverlay extends StatelessWidget {
|
|||||||
|
|
||||||
/// 개별 전투 이벤트 타일
|
/// 개별 전투 이벤트 타일
|
||||||
Widget _buildCombatEventTile(BuildContext context, CombatEvent event) {
|
Widget _buildCombatEventTile(BuildContext context, CombatEvent event) {
|
||||||
final (asciiIcon, color, message) = _formatCombatEvent(event);
|
final (asciiIcon, color, message) = _formatCombatEvent(context, event);
|
||||||
|
|
||||||
return Padding(
|
return Padding(
|
||||||
padding: const EdgeInsets.symmetric(vertical: 1),
|
padding: const EdgeInsets.symmetric(vertical: 1),
|
||||||
@@ -503,19 +532,27 @@ class DeathOverlay extends StatelessWidget {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// 전투 이벤트를 ASCII 아이콘, 색상, 메시지로 포맷
|
/// 전투 이벤트를 ASCII 아이콘, 색상, 메시지로 포맷
|
||||||
(String, Color, String) _formatCombatEvent(CombatEvent event) {
|
(String, Color, String) _formatCombatEvent(
|
||||||
|
BuildContext context,
|
||||||
|
CombatEvent event,
|
||||||
|
) {
|
||||||
final target = event.targetName ?? '';
|
final target = event.targetName ?? '';
|
||||||
|
final gold = RetroColors.goldOf(context);
|
||||||
|
final exp = RetroColors.expOf(context);
|
||||||
|
final hp = RetroColors.hpOf(context);
|
||||||
|
final mp = RetroColors.mpOf(context);
|
||||||
|
|
||||||
return switch (event.type) {
|
return switch (event.type) {
|
||||||
CombatEventType.playerAttack => (
|
CombatEventType.playerAttack => (
|
||||||
event.isCritical ? '⚡' : '⚔',
|
event.isCritical ? '⚡' : '⚔',
|
||||||
event.isCritical ? RetroColors.gold : RetroColors.expGreen,
|
event.isCritical ? gold : exp,
|
||||||
event.isCritical
|
event.isCritical
|
||||||
? l10n.combatCritical(event.damage, target)
|
? l10n.combatCritical(event.damage, target)
|
||||||
: l10n.combatYouHit(target, event.damage),
|
: l10n.combatYouHit(target, event.damage),
|
||||||
),
|
),
|
||||||
CombatEventType.monsterAttack => (
|
CombatEventType.monsterAttack => (
|
||||||
'💀',
|
'💀',
|
||||||
RetroColors.hpRed,
|
hp,
|
||||||
l10n.combatMonsterHitsYou(target, event.damage),
|
l10n.combatMonsterHitsYou(target, event.damage),
|
||||||
),
|
),
|
||||||
CombatEventType.playerEvade => (
|
CombatEventType.playerEvade => (
|
||||||
@@ -530,7 +567,7 @@ class DeathOverlay extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
CombatEventType.playerBlock => (
|
CombatEventType.playerBlock => (
|
||||||
'🛡',
|
'🛡',
|
||||||
RetroColors.mpBlue,
|
mp,
|
||||||
l10n.combatBlockedAttack(target, event.damage),
|
l10n.combatBlockedAttack(target, event.damage),
|
||||||
),
|
),
|
||||||
CombatEventType.playerParry => (
|
CombatEventType.playerParry => (
|
||||||
@@ -545,12 +582,12 @@ class DeathOverlay extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
CombatEventType.playerHeal => (
|
CombatEventType.playerHeal => (
|
||||||
'♥',
|
'♥',
|
||||||
RetroColors.expGreen,
|
exp,
|
||||||
l10n.combatHealedFor(event.healAmount),
|
l10n.combatHealedFor(event.healAmount),
|
||||||
),
|
),
|
||||||
CombatEventType.playerBuff => (
|
CombatEventType.playerBuff => (
|
||||||
'↑',
|
'↑',
|
||||||
RetroColors.mpBlue,
|
mp,
|
||||||
l10n.combatBuffActivated(event.skillName ?? ''),
|
l10n.combatBuffActivated(event.skillName ?? ''),
|
||||||
),
|
),
|
||||||
CombatEventType.playerDebuff => (
|
CombatEventType.playerDebuff => (
|
||||||
@@ -565,12 +602,12 @@ class DeathOverlay extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
CombatEventType.playerPotion => (
|
CombatEventType.playerPotion => (
|
||||||
'🧪',
|
'🧪',
|
||||||
RetroColors.expGreen,
|
exp,
|
||||||
l10n.combatPotionUsed(event.skillName ?? '', event.healAmount, target),
|
l10n.combatPotionUsed(event.skillName ?? '', event.healAmount, target),
|
||||||
),
|
),
|
||||||
CombatEventType.potionDrop => (
|
CombatEventType.potionDrop => (
|
||||||
'🎁',
|
'🎁',
|
||||||
RetroColors.gold,
|
gold,
|
||||||
l10n.combatPotionDrop(event.skillName ?? ''),
|
l10n.combatPotionDrop(event.skillName ?? ''),
|
||||||
),
|
),
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -55,17 +55,20 @@ class _HelpDialogState extends State<HelpDialog>
|
|||||||
? ['基本', '戦闘', 'スキル', 'UI']
|
? ['基本', '戦闘', 'スキル', 'UI']
|
||||||
: ['Basics', 'Combat', 'Skills', 'UI'];
|
: ['Basics', 'Combat', 'Skills', 'UI'];
|
||||||
|
|
||||||
|
// 도움말은 MP 블루 색상 사용 (테마 인식)
|
||||||
|
final mpColor = RetroColors.mpOf(context);
|
||||||
|
|
||||||
return RetroDialog(
|
return RetroDialog(
|
||||||
title: title,
|
title: title,
|
||||||
titleIcon: '❓',
|
titleIcon: '❓',
|
||||||
accentColor: RetroColors.mpBlue,
|
accentColor: mpColor,
|
||||||
child: Column(
|
child: Column(
|
||||||
children: [
|
children: [
|
||||||
// 탭 바
|
// 탭 바
|
||||||
RetroTabBar(
|
RetroTabBar(
|
||||||
controller: _tabController,
|
controller: _tabController,
|
||||||
tabs: tabs,
|
tabs: tabs,
|
||||||
accentColor: RetroColors.mpBlue,
|
accentColor: mpColor,
|
||||||
),
|
),
|
||||||
// 탭 내용
|
// 탭 내용
|
||||||
Expanded(
|
Expanded(
|
||||||
@@ -465,11 +468,11 @@ class _HelpSection extends StatelessWidget {
|
|||||||
return Column(
|
return Column(
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
children: [
|
children: [
|
||||||
// 섹션 헤더
|
// 섹션 헤더 (MP 블루 테마 인식)
|
||||||
RetroSectionHeader(
|
RetroSectionHeader(
|
||||||
title: title,
|
title: title,
|
||||||
icon: icon,
|
icon: icon,
|
||||||
accentColor: RetroColors.mpBlue,
|
accentColor: RetroColors.mpOf(context),
|
||||||
),
|
),
|
||||||
// 내용
|
// 내용
|
||||||
RetroInfoBox(content: content),
|
RetroInfoBox(content: content),
|
||||||
|
|||||||
@@ -119,18 +119,23 @@ class _NotificationCard extends StatelessWidget {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
final (accentColor, icon, asciiIcon) = _getStyleForType(notification.type);
|
final (accentColor, icon, asciiIcon) = _getStyleForType(context, notification.type);
|
||||||
|
final panelBg = RetroColors.panelBgOf(context);
|
||||||
|
final borderColor = RetroColors.borderOf(context);
|
||||||
|
final surface = RetroColors.surfaceOf(context);
|
||||||
|
final textPrimary = RetroColors.textPrimaryOf(context);
|
||||||
|
final textMuted = RetroColors.textMutedOf(context);
|
||||||
|
|
||||||
return GestureDetector(
|
return GestureDetector(
|
||||||
onTap: onDismiss,
|
onTap: onDismiss,
|
||||||
child: Container(
|
child: Container(
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: RetroColors.panelBg,
|
color: panelBg,
|
||||||
border: Border(
|
border: Border(
|
||||||
top: BorderSide(color: accentColor, width: 3),
|
top: BorderSide(color: accentColor, width: 3),
|
||||||
left: BorderSide(color: accentColor, width: 3),
|
left: BorderSide(color: accentColor, width: 3),
|
||||||
bottom: const BorderSide(color: RetroColors.panelBorderOuter, width: 3),
|
bottom: BorderSide(color: borderColor, width: 3),
|
||||||
right: const BorderSide(color: RetroColors.panelBorderOuter, width: 3),
|
right: BorderSide(color: borderColor, width: 3),
|
||||||
),
|
),
|
||||||
boxShadow: [
|
boxShadow: [
|
||||||
BoxShadow(
|
BoxShadow(
|
||||||
@@ -176,12 +181,12 @@ class _NotificationCard extends StatelessWidget {
|
|||||||
// 닫기 버튼
|
// 닫기 버튼
|
||||||
GestureDetector(
|
GestureDetector(
|
||||||
onTap: onDismiss,
|
onTap: onDismiss,
|
||||||
child: const Text(
|
child: Text(
|
||||||
'[X]',
|
'[X]',
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
fontFamily: 'PressStart2P',
|
fontFamily: 'PressStart2P',
|
||||||
fontSize: 7,
|
fontSize: 7,
|
||||||
color: RetroColors.textDisabled,
|
color: textMuted,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -198,7 +203,7 @@ class _NotificationCard extends StatelessWidget {
|
|||||||
width: 36,
|
width: 36,
|
||||||
height: 36,
|
height: 36,
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: RetroColors.panelBgLight,
|
color: surface,
|
||||||
border: Border.all(color: accentColor, width: 2),
|
border: Border.all(color: accentColor, width: 2),
|
||||||
),
|
),
|
||||||
child: Icon(icon, color: accentColor, size: 20),
|
child: Icon(icon, color: accentColor, size: 20),
|
||||||
@@ -212,20 +217,20 @@ class _NotificationCard extends StatelessWidget {
|
|||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
notification.title,
|
notification.title,
|
||||||
style: const TextStyle(
|
style: TextStyle(
|
||||||
fontFamily: 'PressStart2P',
|
fontFamily: 'PressStart2P',
|
||||||
fontSize: 9,
|
fontSize: 9,
|
||||||
color: RetroColors.textLight,
|
color: textPrimary,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
if (notification.subtitle != null) ...[
|
if (notification.subtitle != null) ...[
|
||||||
const SizedBox(height: 4),
|
const SizedBox(height: 4),
|
||||||
Text(
|
Text(
|
||||||
notification.subtitle!,
|
notification.subtitle!,
|
||||||
style: const TextStyle(
|
style: TextStyle(
|
||||||
fontFamily: 'PressStart2P',
|
fontFamily: 'PressStart2P',
|
||||||
fontSize: 7,
|
fontSize: 7,
|
||||||
color: RetroColors.textDisabled,
|
color: textMuted,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
@@ -242,53 +247,25 @@ class _NotificationCard extends StatelessWidget {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// 알림 타입별 레트로 스타일 (강조 색상, 아이콘, ASCII 아이콘)
|
/// 알림 타입별 레트로 스타일 (강조 색상, 아이콘, ASCII 아이콘)
|
||||||
(Color, IconData, String) _getStyleForType(NotificationType type) {
|
(Color, IconData, String) _getStyleForType(
|
||||||
|
BuildContext context,
|
||||||
|
NotificationType type,
|
||||||
|
) {
|
||||||
|
final gold = RetroColors.goldOf(context);
|
||||||
|
final exp = RetroColors.expOf(context);
|
||||||
|
final mp = RetroColors.mpOf(context);
|
||||||
|
final hp = RetroColors.hpOf(context);
|
||||||
|
|
||||||
return switch (type) {
|
return switch (type) {
|
||||||
NotificationType.levelUp => (
|
NotificationType.levelUp => (gold, Icons.arrow_upward, '★'),
|
||||||
RetroColors.gold,
|
NotificationType.questComplete => (exp, Icons.check, '☑'),
|
||||||
Icons.arrow_upward,
|
NotificationType.actComplete => (mp, Icons.flag, '⚑'),
|
||||||
'★',
|
NotificationType.newSpell => (const Color(0xFF9966FF), Icons.auto_fix_high, '✧'),
|
||||||
),
|
NotificationType.newEquipment => (const Color(0xFFFF9933), Icons.shield, '⚔'),
|
||||||
NotificationType.questComplete => (
|
NotificationType.bossDefeat => (hp, Icons.whatshot, '☠'),
|
||||||
RetroColors.expGreen,
|
NotificationType.gameSaved => (exp, Icons.save, '💾'),
|
||||||
Icons.check,
|
NotificationType.info => (mp, Icons.info_outline, 'ℹ'),
|
||||||
'☑',
|
NotificationType.warning => (const Color(0xFFFFCC00), Icons.warning, '⚠'),
|
||||||
),
|
|
||||||
NotificationType.actComplete => (
|
|
||||||
RetroColors.mpBlue,
|
|
||||||
Icons.flag,
|
|
||||||
'⚑',
|
|
||||||
),
|
|
||||||
NotificationType.newSpell => (
|
|
||||||
const Color(0xFF9966FF),
|
|
||||||
Icons.auto_fix_high,
|
|
||||||
'✧',
|
|
||||||
),
|
|
||||||
NotificationType.newEquipment => (
|
|
||||||
const Color(0xFFFF9933),
|
|
||||||
Icons.shield,
|
|
||||||
'⚔',
|
|
||||||
),
|
|
||||||
NotificationType.bossDefeat => (
|
|
||||||
RetroColors.hpRed,
|
|
||||||
Icons.whatshot,
|
|
||||||
'☠',
|
|
||||||
),
|
|
||||||
NotificationType.gameSaved => (
|
|
||||||
RetroColors.expGreen,
|
|
||||||
Icons.save,
|
|
||||||
'💾',
|
|
||||||
),
|
|
||||||
NotificationType.info => (
|
|
||||||
RetroColors.mpBlue,
|
|
||||||
Icons.info_outline,
|
|
||||||
'ℹ',
|
|
||||||
),
|
|
||||||
NotificationType.warning => (
|
|
||||||
const Color(0xFFFFCC00),
|
|
||||||
Icons.warning,
|
|
||||||
'⚠',
|
|
||||||
),
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
import 'package:askiineverdie/src/core/model/game_statistics.dart';
|
import 'package:askiineverdie/src/core/model/game_statistics.dart';
|
||||||
import 'package:askiineverdie/src/shared/retro_colors.dart';
|
|
||||||
import 'package:askiineverdie/src/shared/widgets/retro_dialog.dart';
|
import 'package:askiineverdie/src/shared/widgets/retro_dialog.dart';
|
||||||
|
|
||||||
/// 게임 통계 다이얼로그 (Statistics Dialog)
|
/// 게임 통계 다이얼로그 (Statistics Dialog)
|
||||||
@@ -75,14 +74,14 @@ class _StatisticsDialogState extends State<StatisticsDialog>
|
|||||||
titleIcon: '📊',
|
titleIcon: '📊',
|
||||||
maxWidth: 420,
|
maxWidth: 420,
|
||||||
maxHeight: 520,
|
maxHeight: 520,
|
||||||
accentColor: RetroColors.gold,
|
// accentColor: 테마에서 자동 결정 (goldOf)
|
||||||
child: Column(
|
child: Column(
|
||||||
children: [
|
children: [
|
||||||
// 탭 바
|
// 탭 바
|
||||||
RetroTabBar(
|
RetroTabBar(
|
||||||
controller: _tabController,
|
controller: _tabController,
|
||||||
tabs: tabs,
|
tabs: tabs,
|
||||||
accentColor: RetroColors.gold,
|
// accentColor: 테마에서 자동 결정 (goldOf)
|
||||||
),
|
),
|
||||||
// 탭 내용
|
// 탭 내용
|
||||||
Expanded(
|
Expanded(
|
||||||
@@ -573,12 +572,8 @@ class _StatSection extends StatelessWidget {
|
|||||||
return Column(
|
return Column(
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
children: [
|
children: [
|
||||||
// 섹션 헤더
|
// 섹션 헤더 (테마에서 자동 결정)
|
||||||
RetroSectionHeader(
|
RetroSectionHeader(title: title, icon: icon),
|
||||||
title: title,
|
|
||||||
icon: icon,
|
|
||||||
accentColor: RetroColors.gold,
|
|
||||||
),
|
|
||||||
// 통계 항목들
|
// 통계 항목들
|
||||||
...items,
|
...items,
|
||||||
],
|
],
|
||||||
@@ -600,12 +595,8 @@ class _StatItem extends StatelessWidget {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return RetroStatRow(
|
// highlightColor: 테마에서 자동 결정 (goldOf)
|
||||||
label: label,
|
return RetroStatRow(label: label, value: value, highlight: highlight);
|
||||||
value: value,
|
|
||||||
highlight: highlight,
|
|
||||||
highlightColor: RetroColors.gold,
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,147 +1,297 @@
|
|||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
/// 레트로 RPG 스타일 색상 팔레트 (8-bit/16-bit 클래식 RPG 느낌)
|
/// 레트로 RPG 스타일 색상 팔레트 (다크/라이트 모드 지원)
|
||||||
|
///
|
||||||
|
/// 다크 모드: Dark Fantasy (도쿄 나이트 영감)
|
||||||
|
/// 라이트 모드: Classic Parchment (양피지/세피아 톤)
|
||||||
class RetroColors {
|
class RetroColors {
|
||||||
RetroColors._();
|
RetroColors._();
|
||||||
|
|
||||||
// ═══════════════════════════════════════════════════════════════════════
|
// ═══════════════════════════════════════════════════════════════════════
|
||||||
// 메인 UI 컬러 (Main UI Colors)
|
// 테마 감지 유틸리티 (Theme Detection)
|
||||||
// ═══════════════════════════════════════════════════════════════════════
|
// ═══════════════════════════════════════════════════════════════════════
|
||||||
|
|
||||||
/// 골드 (테두리, 강조, 타이틀)
|
/// 다크 모드 여부 확인
|
||||||
static const Color gold = Color(0xFFD4A84B);
|
static bool isDarkMode(BuildContext context) =>
|
||||||
|
Theme.of(context).brightness == Brightness.dark;
|
||||||
/// 밝은 골드 (호버, 하이라이트)
|
|
||||||
static const Color goldLight = Color(0xFFE8C97A);
|
|
||||||
|
|
||||||
/// 어두운 골드 (눌림 상태)
|
|
||||||
static const Color goldDark = Color(0xFFB08A3A);
|
|
||||||
|
|
||||||
/// 갈색 (프레임, 테두리)
|
|
||||||
static const Color brown = Color(0xFF8B4513);
|
|
||||||
|
|
||||||
/// 크림색 (텍스트 배경, 밝은 패널)
|
|
||||||
static const Color cream = Color(0xFFF5E6C8);
|
|
||||||
|
|
||||||
/// 다크 브라운 (패널 배경)
|
|
||||||
static const Color darkBrown = Color(0xFF3D2817);
|
|
||||||
|
|
||||||
/// 매우 어두운 브라운 (딥 배경)
|
|
||||||
static const Color deepBrown = Color(0xFF2A1A0F);
|
|
||||||
|
|
||||||
// ═══════════════════════════════════════════════════════════════════════
|
// ═══════════════════════════════════════════════════════════════════════
|
||||||
// 상태 바 컬러 (Status Bar Colors)
|
// 다크 모드 색상 (Dark Fantasy)
|
||||||
// ═══════════════════════════════════════════════════════════════════════
|
// ═══════════════════════════════════════════════════════════════════════
|
||||||
|
|
||||||
/// HP 바 빨간색
|
// 배경 계열 (어두운 블루-그레이 기반)
|
||||||
static const Color hpRed = Color(0xFFCC3333);
|
static const Color _darkBg = Color(0xFF1A1B26);
|
||||||
|
static const Color _darkPanelBg = Color(0xFF24283B);
|
||||||
|
static const Color _darkSurface = Color(0xFF2A2E3F);
|
||||||
|
|
||||||
/// HP 바 빨간색 (어두운)
|
// 테두리/강조
|
||||||
static const Color hpRedDark = Color(0xFF8B2222);
|
static const Color _darkGold = Color(0xFFE0AF68);
|
||||||
|
static const Color _darkGoldLight = Color(0xFFF0C98A);
|
||||||
|
static const Color _darkGoldDark = Color(0xFFC89B50);
|
||||||
|
static const Color _darkBorder = Color(0xFF3B4261);
|
||||||
|
static const Color _darkBorderLight = Color(0xFF545C7E);
|
||||||
|
|
||||||
/// MP 바 파란색
|
// 텍스트 (고대비)
|
||||||
static const Color mpBlue = Color(0xFF3366CC);
|
static const Color _darkTextPrimary = Color(0xFFC0CAF5);
|
||||||
|
static const Color _darkTextSecondary = Color(0xFF9AA5CE);
|
||||||
|
static const Color _darkTextMuted = Color(0xFF565F89);
|
||||||
|
|
||||||
/// MP 바 파란색 (어두운)
|
// 상태 색상
|
||||||
static const Color mpBlueDark = Color(0xFF224488);
|
static const Color _darkHp = Color(0xFFF7768E);
|
||||||
|
static const Color _darkHpDark = Color(0xFFB85A6A);
|
||||||
|
static const Color _darkMp = Color(0xFF7AA2F7);
|
||||||
|
static const Color _darkMpDark = Color(0xFF5A7AB8);
|
||||||
|
static const Color _darkExp = Color(0xFF9ECE6A);
|
||||||
|
static const Color _darkExpDark = Color(0xFF7AA850);
|
||||||
|
static const Color _darkWarning = Color(0xFFFF9E64);
|
||||||
|
|
||||||
/// EXP/성공 초록색
|
// 버튼
|
||||||
static const Color expGreen = Color(0xFF33CC66);
|
static const Color _darkButtonPrimary = Color(0xFF3D4260);
|
||||||
|
static const Color _darkButtonPressed = Color(0xFF2D3250);
|
||||||
/// EXP/성공 초록색 (어두운)
|
|
||||||
static const Color expGreenDark = Color(0xFF228844);
|
|
||||||
|
|
||||||
// ═══════════════════════════════════════════════════════════════════════
|
// ═══════════════════════════════════════════════════════════════════════
|
||||||
// ASCII 애니메이션 컬러 (기존 유지)
|
// 라이트 모드 색상 (Classic Parchment)
|
||||||
|
// ═══════════════════════════════════════════════════════════════════════
|
||||||
|
|
||||||
|
// 배경 계열 (양피지/크림 기반)
|
||||||
|
static const Color _lightBg = Color(0xFFFAF4ED);
|
||||||
|
static const Color _lightPanelBg = Color(0xFFF2E8DC);
|
||||||
|
static const Color _lightSurface = Color(0xFFFFFFFF);
|
||||||
|
|
||||||
|
// 테두리/강조
|
||||||
|
static const Color _lightGold = Color(0xFFB8860B);
|
||||||
|
static const Color _lightGoldLight = Color(0xFFD4A84B);
|
||||||
|
static const Color _lightGoldDark = Color(0xFF8B6914);
|
||||||
|
static const Color _lightBorder = Color(0xFFD4C4B0);
|
||||||
|
static const Color _lightBorderDark = Color(0xFF8B7355);
|
||||||
|
|
||||||
|
// 텍스트 (고대비)
|
||||||
|
static const Color _lightTextPrimary = Color(0xFF1F1F28);
|
||||||
|
static const Color _lightTextSecondary = Color(0xFF4A4458);
|
||||||
|
static const Color _lightTextMuted = Color(0xFF797593);
|
||||||
|
|
||||||
|
// 상태 색상
|
||||||
|
static const Color _lightHp = Color(0xFFD7263D);
|
||||||
|
static const Color _lightHpDark = Color(0xFFA81C30);
|
||||||
|
static const Color _lightMp = Color(0xFF2E5EAA);
|
||||||
|
static const Color _lightMpDark = Color(0xFF234A88);
|
||||||
|
static const Color _lightExp = Color(0xFF2E8B57);
|
||||||
|
static const Color _lightExpDark = Color(0xFF236B44);
|
||||||
|
static const Color _lightWarning = Color(0xFFCD7F32);
|
||||||
|
|
||||||
|
// 버튼
|
||||||
|
static const Color _lightButtonPrimary = Color(0xFFE8DDD0);
|
||||||
|
static const Color _lightButtonPressed = Color(0xFFD8C8B8);
|
||||||
|
|
||||||
|
// ═══════════════════════════════════════════════════════════════════════
|
||||||
|
// ASCII 애니메이션 컬러 (테마 무관, 고정)
|
||||||
// ═══════════════════════════════════════════════════════════════════════
|
// ═══════════════════════════════════════════════════════════════════════
|
||||||
|
|
||||||
/// ASCII 흰색 (캐릭터/몬스터)
|
|
||||||
static const Color asciiWhite = Color(0xFFFFFFFF);
|
static const Color asciiWhite = Color(0xFFFFFFFF);
|
||||||
|
|
||||||
/// ASCII 시안 (긍정 효과)
|
|
||||||
static const Color asciiCyan = Color(0xFF00FFFF);
|
static const Color asciiCyan = Color(0xFF00FFFF);
|
||||||
|
|
||||||
/// ASCII 마젠타 (부정 효과)
|
|
||||||
static const Color asciiMagenta = Color(0xFFFF00FF);
|
static const Color asciiMagenta = Color(0xFFFF00FF);
|
||||||
|
|
||||||
/// ASCII 노란색 (경고, 중요)
|
|
||||||
static const Color asciiYellow = Color(0xFFFFFF00);
|
static const Color asciiYellow = Color(0xFFFFFF00);
|
||||||
|
|
||||||
/// ASCII 초록색 (성공, 회복)
|
|
||||||
static const Color asciiGreen = Color(0xFF00FF00);
|
static const Color asciiGreen = Color(0xFF00FF00);
|
||||||
|
|
||||||
/// ASCII 빨간색 (데미지, 위험)
|
|
||||||
static const Color asciiRed = Color(0xFFFF0000);
|
static const Color asciiRed = Color(0xFFFF0000);
|
||||||
|
|
||||||
// ═══════════════════════════════════════════════════════════════════════
|
// ═══════════════════════════════════════════════════════════════════════
|
||||||
// 텍스트 컬러 (Text Colors)
|
// 동적 색상 Getter (테마에 따라 자동 전환)
|
||||||
|
// 사용법: RetroColors.goldOf(context), RetroColors.textPrimaryOf(context)
|
||||||
// ═══════════════════════════════════════════════════════════════════════
|
// ═══════════════════════════════════════════════════════════════════════
|
||||||
|
|
||||||
/// 기본 텍스트 (밝은 배경용)
|
// === 배경 색상 ===
|
||||||
static const Color textDark = Color(0xFF2A1A0F);
|
static Color backgroundOf(BuildContext context) =>
|
||||||
|
isDarkMode(context) ? _darkBg : _lightBg;
|
||||||
|
|
||||||
/// 기본 텍스트 (어두운 배경용)
|
static Color panelBgOf(BuildContext context) =>
|
||||||
static const Color textLight = Color(0xFFF5E6C8);
|
isDarkMode(context) ? _darkPanelBg : _lightPanelBg;
|
||||||
|
|
||||||
/// 비활성 텍스트
|
static Color surfaceOf(BuildContext context) =>
|
||||||
static const Color textDisabled = Color(0xFF7A6A5A);
|
isDarkMode(context) ? _darkSurface : _lightSurface;
|
||||||
|
|
||||||
|
// === 강조/골드 색상 ===
|
||||||
|
static Color goldOf(BuildContext context) =>
|
||||||
|
isDarkMode(context) ? _darkGold : _lightGold;
|
||||||
|
|
||||||
|
static Color goldLightOf(BuildContext context) =>
|
||||||
|
isDarkMode(context) ? _darkGoldLight : _lightGoldLight;
|
||||||
|
|
||||||
|
static Color goldDarkOf(BuildContext context) =>
|
||||||
|
isDarkMode(context) ? _darkGoldDark : _lightGoldDark;
|
||||||
|
|
||||||
|
// === 테두리 색상 ===
|
||||||
|
static Color borderOf(BuildContext context) =>
|
||||||
|
isDarkMode(context) ? _darkBorder : _lightBorder;
|
||||||
|
|
||||||
|
static Color borderLightOf(BuildContext context) =>
|
||||||
|
isDarkMode(context) ? _darkBorderLight : _lightBorderDark;
|
||||||
|
|
||||||
|
// === 텍스트 색상 ===
|
||||||
|
static Color textPrimaryOf(BuildContext context) =>
|
||||||
|
isDarkMode(context) ? _darkTextPrimary : _lightTextPrimary;
|
||||||
|
|
||||||
|
static Color textSecondaryOf(BuildContext context) =>
|
||||||
|
isDarkMode(context) ? _darkTextSecondary : _lightTextSecondary;
|
||||||
|
|
||||||
|
static Color textMutedOf(BuildContext context) =>
|
||||||
|
isDarkMode(context) ? _darkTextMuted : _lightTextMuted;
|
||||||
|
|
||||||
|
// === 상태 바 색상 ===
|
||||||
|
static Color hpOf(BuildContext context) =>
|
||||||
|
isDarkMode(context) ? _darkHp : _lightHp;
|
||||||
|
|
||||||
|
static Color hpDarkOf(BuildContext context) =>
|
||||||
|
isDarkMode(context) ? _darkHpDark : _lightHpDark;
|
||||||
|
|
||||||
|
static Color mpOf(BuildContext context) =>
|
||||||
|
isDarkMode(context) ? _darkMp : _lightMp;
|
||||||
|
|
||||||
|
static Color mpDarkOf(BuildContext context) =>
|
||||||
|
isDarkMode(context) ? _darkMpDark : _lightMpDark;
|
||||||
|
|
||||||
|
static Color expOf(BuildContext context) =>
|
||||||
|
isDarkMode(context) ? _darkExp : _lightExp;
|
||||||
|
|
||||||
|
static Color expDarkOf(BuildContext context) =>
|
||||||
|
isDarkMode(context) ? _darkExpDark : _lightExpDark;
|
||||||
|
|
||||||
|
static Color warningOf(BuildContext context) =>
|
||||||
|
isDarkMode(context) ? _darkWarning : _lightWarning;
|
||||||
|
|
||||||
|
// === 버튼 색상 ===
|
||||||
|
static Color buttonPrimaryOf(BuildContext context) =>
|
||||||
|
isDarkMode(context) ? _darkButtonPrimary : _lightButtonPrimary;
|
||||||
|
|
||||||
|
static Color buttonPressedOf(BuildContext context) =>
|
||||||
|
isDarkMode(context) ? _darkButtonPressed : _lightButtonPressed;
|
||||||
|
|
||||||
// ═══════════════════════════════════════════════════════════════════════
|
// ═══════════════════════════════════════════════════════════════════════
|
||||||
// 버튼 컬러 (Button Colors)
|
// 레거시 호환 (Static Colors) - 마이그레이션 중 사용
|
||||||
|
// 점진적으로 context 버전으로 교체 예정
|
||||||
// ═══════════════════════════════════════════════════════════════════════
|
// ═══════════════════════════════════════════════════════════════════════
|
||||||
|
|
||||||
/// 주요 버튼 배경
|
/// @deprecated Use goldOf(context) instead
|
||||||
static const Color buttonPrimary = Color(0xFF5A4A3A);
|
static const Color gold = _darkGold;
|
||||||
|
|
||||||
/// 주요 버튼 배경 (눌림)
|
/// @deprecated Use goldLightOf(context) instead
|
||||||
static const Color buttonPrimaryPressed = Color(0xFF3A2A1A);
|
static const Color goldLight = _darkGoldLight;
|
||||||
|
|
||||||
/// 보조 버튼 배경
|
/// @deprecated Use goldDarkOf(context) instead
|
||||||
|
static const Color goldDark = _darkGoldDark;
|
||||||
|
|
||||||
|
/// @deprecated Use textPrimary(context) instead
|
||||||
|
static const Color textLight = _darkTextPrimary;
|
||||||
|
|
||||||
|
/// @deprecated Use textSecondary(context) instead
|
||||||
|
static const Color textDark = _lightTextPrimary;
|
||||||
|
|
||||||
|
/// @deprecated Use textMuted(context) instead
|
||||||
|
static const Color textDisabled = _darkTextMuted;
|
||||||
|
|
||||||
|
/// @deprecated Use panelBgOf(context) instead
|
||||||
|
static const Color panelBg = _darkPanelBg;
|
||||||
|
|
||||||
|
/// @deprecated Use surfaceOf(context) instead
|
||||||
|
static const Color panelBgLight = _darkSurface;
|
||||||
|
|
||||||
|
/// @deprecated Use border(context) instead
|
||||||
|
static const Color panelBorderOuter = _darkBorder;
|
||||||
|
|
||||||
|
/// @deprecated Use borderLight(context) instead
|
||||||
|
static const Color panelBorderInner = _darkBorderLight;
|
||||||
|
|
||||||
|
/// @deprecated Use background(context) instead
|
||||||
|
static const Color deepBrown = _darkBg;
|
||||||
|
|
||||||
|
/// @deprecated 레거시 색상 - 다크 브라운
|
||||||
|
static const Color darkBrown = _darkPanelBg;
|
||||||
|
|
||||||
|
/// @deprecated 레거시 색상 - 브라운
|
||||||
|
static const Color brown = Color(0xFF8B4513);
|
||||||
|
|
||||||
|
/// @deprecated 레거시 색상 - 크림
|
||||||
|
static const Color cream = Color(0xFFF5E6C8);
|
||||||
|
|
||||||
|
/// @deprecated Use hp(context) instead
|
||||||
|
static const Color hpRed = _darkHp;
|
||||||
|
|
||||||
|
/// @deprecated Use hpDark(context) instead
|
||||||
|
static const Color hpRedDark = _darkHpDark;
|
||||||
|
|
||||||
|
/// @deprecated Use mp(context) instead
|
||||||
|
static const Color mpBlue = _darkMp;
|
||||||
|
|
||||||
|
/// @deprecated Use mpDark(context) instead
|
||||||
|
static const Color mpBlueDark = _darkMpDark;
|
||||||
|
|
||||||
|
/// @deprecated Use exp(context) instead
|
||||||
|
static const Color expGreen = _darkExp;
|
||||||
|
|
||||||
|
/// @deprecated Use expDark(context) instead
|
||||||
|
static const Color expGreenDark = _darkExpDark;
|
||||||
|
|
||||||
|
/// @deprecated Use buttonPrimary(context) instead
|
||||||
|
static const Color buttonPrimary = _darkButtonPrimary;
|
||||||
|
|
||||||
|
/// @deprecated Use buttonPressed(context) instead
|
||||||
|
static const Color buttonPrimaryPressed = _darkButtonPressed;
|
||||||
|
|
||||||
|
/// @deprecated 레거시 호환
|
||||||
static const Color buttonSecondary = Color(0xFF4A3A2A);
|
static const Color buttonSecondary = Color(0xFF4A3A2A);
|
||||||
|
|
||||||
/// 보조 버튼 배경 (눌림)
|
/// @deprecated 레거시 호환
|
||||||
static const Color buttonSecondaryPressed = Color(0xFF2A1A0A);
|
static const Color buttonSecondaryPressed = Color(0xFF2A1A0A);
|
||||||
|
|
||||||
// ═══════════════════════════════════════════════════════════════════════
|
// ═══════════════════════════════════════════════════════════════════════
|
||||||
// 패널 컬러 (Panel Colors)
|
// ColorScheme 생성기 (Theme Data용)
|
||||||
// ═══════════════════════════════════════════════════════════════════════
|
// ═══════════════════════════════════════════════════════════════════════
|
||||||
|
|
||||||
/// 패널 배경 (기본)
|
/// 다크 모드 ColorScheme
|
||||||
static const Color panelBg = Color(0xFF3D2817);
|
static ColorScheme get darkColorScheme => ColorScheme.dark(
|
||||||
|
primary: _darkGold,
|
||||||
|
onPrimary: _darkBg,
|
||||||
|
primaryContainer: _darkGoldDark,
|
||||||
|
onPrimaryContainer: _darkTextPrimary,
|
||||||
|
secondary: _darkBorder,
|
||||||
|
onSecondary: _darkTextPrimary,
|
||||||
|
secondaryContainer: _darkPanelBg,
|
||||||
|
onSecondaryContainer: _darkTextPrimary,
|
||||||
|
tertiary: _darkMp,
|
||||||
|
onTertiary: _darkBg,
|
||||||
|
tertiaryContainer: _darkMpDark,
|
||||||
|
onTertiaryContainer: _darkTextPrimary,
|
||||||
|
error: _darkHp,
|
||||||
|
onError: _darkBg,
|
||||||
|
surface: _darkBg,
|
||||||
|
onSurface: _darkTextPrimary,
|
||||||
|
surfaceContainerHighest: _darkPanelBg,
|
||||||
|
outline: _darkBorder,
|
||||||
|
outlineVariant: _darkBorderLight,
|
||||||
|
);
|
||||||
|
|
||||||
/// 패널 배경 (밝은)
|
/// 라이트 모드 ColorScheme
|
||||||
static const Color panelBgLight = Color(0xFF5D4837);
|
static ColorScheme get lightColorScheme => ColorScheme.light(
|
||||||
|
primary: _lightGold,
|
||||||
|
onPrimary: _lightSurface,
|
||||||
|
primaryContainer: _lightGoldLight,
|
||||||
|
onPrimaryContainer: _lightTextPrimary,
|
||||||
|
secondary: _lightBorder,
|
||||||
|
onSecondary: _lightTextPrimary,
|
||||||
|
secondaryContainer: _lightPanelBg,
|
||||||
|
onSecondaryContainer: _lightTextPrimary,
|
||||||
|
tertiary: _lightMp,
|
||||||
|
onTertiary: _lightSurface,
|
||||||
|
tertiaryContainer: _lightMpDark,
|
||||||
|
onTertiaryContainer: _lightSurface,
|
||||||
|
error: _lightHp,
|
||||||
|
onError: _lightSurface,
|
||||||
|
surface: _lightBg,
|
||||||
|
onSurface: _lightTextPrimary,
|
||||||
|
surfaceContainerHighest: _lightPanelBg,
|
||||||
|
outline: _lightBorder,
|
||||||
|
outlineVariant: _lightBorderDark,
|
||||||
|
);
|
||||||
|
|
||||||
/// 패널 테두리 (외곽, 어두운)
|
/// @deprecated Use darkColorScheme or lightColorScheme instead
|
||||||
static const Color panelBorderOuter = Color(0xFF1A0F08);
|
static ColorScheme get colorScheme => darkColorScheme;
|
||||||
|
|
||||||
/// 패널 테두리 (내곽, 밝은)
|
|
||||||
static const Color panelBorderInner = Color(0xFF8B7355);
|
|
||||||
|
|
||||||
// ═══════════════════════════════════════════════════════════════════════
|
|
||||||
// 유틸리티 메서드 (Utility Methods)
|
|
||||||
// ═══════════════════════════════════════════════════════════════════════
|
|
||||||
|
|
||||||
/// 레트로 테마용 ColorScheme 생성
|
|
||||||
static ColorScheme get colorScheme => ColorScheme.dark(
|
|
||||||
primary: gold,
|
|
||||||
onPrimary: textDark,
|
|
||||||
primaryContainer: goldDark,
|
|
||||||
onPrimaryContainer: textLight,
|
|
||||||
secondary: brown,
|
|
||||||
onSecondary: textLight,
|
|
||||||
secondaryContainer: darkBrown,
|
|
||||||
onSecondaryContainer: textLight,
|
|
||||||
tertiary: cream,
|
|
||||||
onTertiary: textDark,
|
|
||||||
tertiaryContainer: panelBgLight,
|
|
||||||
onTertiaryContainer: textLight,
|
|
||||||
error: hpRed,
|
|
||||||
onError: textLight,
|
|
||||||
surface: deepBrown,
|
|
||||||
onSurface: textLight,
|
|
||||||
surfaceContainerHighest: panelBg,
|
|
||||||
outline: panelBorderOuter,
|
|
||||||
outlineVariant: panelBorderInner,
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ import 'package:askiineverdie/src/shared/retro_colors.dart';
|
|||||||
/// 레트로 스타일 다이얼로그 베이스 위젯
|
/// 레트로 스타일 다이얼로그 베이스 위젯
|
||||||
///
|
///
|
||||||
/// 8-bit RPG 스타일의 다이얼로그 프레임
|
/// 8-bit RPG 스타일의 다이얼로그 프레임
|
||||||
|
/// 라이트/다크 모드 자동 지원
|
||||||
class RetroDialog extends StatelessWidget {
|
class RetroDialog extends StatelessWidget {
|
||||||
const RetroDialog({
|
const RetroDialog({
|
||||||
super.key,
|
super.key,
|
||||||
@@ -13,7 +14,7 @@ class RetroDialog extends StatelessWidget {
|
|||||||
this.titleIcon,
|
this.titleIcon,
|
||||||
this.maxWidth = 500,
|
this.maxWidth = 500,
|
||||||
this.maxHeight = 600,
|
this.maxHeight = 600,
|
||||||
this.accentColor = RetroColors.gold,
|
this.accentColor,
|
||||||
});
|
});
|
||||||
|
|
||||||
final String title;
|
final String title;
|
||||||
@@ -21,25 +22,29 @@ class RetroDialog extends StatelessWidget {
|
|||||||
final String? titleIcon;
|
final String? titleIcon;
|
||||||
final double maxWidth;
|
final double maxWidth;
|
||||||
final double maxHeight;
|
final double maxHeight;
|
||||||
final Color accentColor;
|
final Color? accentColor;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
|
final accent = accentColor ?? RetroColors.goldOf(context);
|
||||||
|
final panelBackground = RetroColors.panelBgOf(context);
|
||||||
|
final borderColor = RetroColors.borderOf(context);
|
||||||
|
|
||||||
return Dialog(
|
return Dialog(
|
||||||
backgroundColor: Colors.transparent,
|
backgroundColor: Colors.transparent,
|
||||||
child: Container(
|
child: Container(
|
||||||
constraints: BoxConstraints(maxWidth: maxWidth, maxHeight: maxHeight),
|
constraints: BoxConstraints(maxWidth: maxWidth, maxHeight: maxHeight),
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: RetroColors.panelBg,
|
color: panelBackground,
|
||||||
border: Border(
|
border: Border(
|
||||||
top: BorderSide(color: accentColor, width: 3),
|
top: BorderSide(color: accent, width: 3),
|
||||||
left: BorderSide(color: accentColor, width: 3),
|
left: BorderSide(color: accent, width: 3),
|
||||||
bottom: const BorderSide(color: RetroColors.panelBorderOuter, width: 3),
|
bottom: BorderSide(color: borderColor, width: 3),
|
||||||
right: const BorderSide(color: RetroColors.panelBorderOuter, width: 3),
|
right: BorderSide(color: borderColor, width: 3),
|
||||||
),
|
),
|
||||||
boxShadow: [
|
boxShadow: [
|
||||||
BoxShadow(
|
BoxShadow(
|
||||||
color: accentColor.withValues(alpha: 0.3),
|
color: accent.withValues(alpha: 0.3),
|
||||||
blurRadius: 20,
|
blurRadius: 20,
|
||||||
spreadRadius: 2,
|
spreadRadius: 2,
|
||||||
),
|
),
|
||||||
@@ -49,7 +54,7 @@ class RetroDialog extends StatelessWidget {
|
|||||||
mainAxisSize: MainAxisSize.min,
|
mainAxisSize: MainAxisSize.min,
|
||||||
children: [
|
children: [
|
||||||
// 헤더 바
|
// 헤더 바
|
||||||
_buildHeader(context),
|
_buildHeader(context, accent),
|
||||||
// 본문
|
// 본문
|
||||||
Flexible(child: child),
|
Flexible(child: child),
|
||||||
],
|
],
|
||||||
@@ -58,14 +63,16 @@ class RetroDialog extends StatelessWidget {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
Widget _buildHeader(BuildContext context) {
|
Widget _buildHeader(BuildContext context, Color accent) {
|
||||||
|
final mutedColor = RetroColors.textMutedOf(context);
|
||||||
|
|
||||||
return Container(
|
return Container(
|
||||||
width: double.infinity,
|
width: double.infinity,
|
||||||
padding: const EdgeInsets.symmetric(horizontal: 12, vertical: 10),
|
padding: const EdgeInsets.symmetric(horizontal: 12, vertical: 10),
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: accentColor.withValues(alpha: 0.2),
|
color: accent.withValues(alpha: 0.2),
|
||||||
border: Border(
|
border: Border(
|
||||||
bottom: BorderSide(color: accentColor, width: 2),
|
bottom: BorderSide(color: accent, width: 2),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
child: Row(
|
child: Row(
|
||||||
@@ -73,7 +80,7 @@ class RetroDialog extends StatelessWidget {
|
|||||||
if (titleIcon != null) ...[
|
if (titleIcon != null) ...[
|
||||||
Text(
|
Text(
|
||||||
titleIcon!,
|
titleIcon!,
|
||||||
style: TextStyle(fontSize: 14, color: accentColor),
|
style: TextStyle(fontSize: 14, color: accent),
|
||||||
),
|
),
|
||||||
const SizedBox(width: 8),
|
const SizedBox(width: 8),
|
||||||
],
|
],
|
||||||
@@ -83,7 +90,7 @@ class RetroDialog extends StatelessWidget {
|
|||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
fontFamily: 'PressStart2P',
|
fontFamily: 'PressStart2P',
|
||||||
fontSize: 10,
|
fontSize: 10,
|
||||||
color: accentColor,
|
color: accent,
|
||||||
letterSpacing: 1,
|
letterSpacing: 1,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -93,14 +100,14 @@ class RetroDialog extends StatelessWidget {
|
|||||||
child: Container(
|
child: Container(
|
||||||
padding: const EdgeInsets.all(4),
|
padding: const EdgeInsets.all(4),
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
border: Border.all(color: RetroColors.textDisabled, width: 1),
|
border: Border.all(color: mutedColor, width: 1),
|
||||||
),
|
),
|
||||||
child: const Text(
|
child: Text(
|
||||||
'X',
|
'X',
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
fontFamily: 'PressStart2P',
|
fontFamily: 'PressStart2P',
|
||||||
fontSize: 8,
|
fontSize: 8,
|
||||||
color: RetroColors.textDisabled,
|
color: mutedColor,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -112,37 +119,42 @@ class RetroDialog extends StatelessWidget {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// 레트로 스타일 탭 바
|
/// 레트로 스타일 탭 바
|
||||||
|
/// 라이트/다크 모드 자동 지원
|
||||||
class RetroTabBar extends StatelessWidget {
|
class RetroTabBar extends StatelessWidget {
|
||||||
const RetroTabBar({
|
const RetroTabBar({
|
||||||
super.key,
|
super.key,
|
||||||
required this.controller,
|
required this.controller,
|
||||||
required this.tabs,
|
required this.tabs,
|
||||||
this.accentColor = RetroColors.gold,
|
this.accentColor,
|
||||||
});
|
});
|
||||||
|
|
||||||
final TabController controller;
|
final TabController controller;
|
||||||
final List<String> tabs;
|
final List<String> tabs;
|
||||||
final Color accentColor;
|
final Color? accentColor;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
|
final accent = accentColor ?? RetroColors.goldOf(context);
|
||||||
|
final borderColor = RetroColors.borderOf(context);
|
||||||
|
final mutedColor = RetroColors.textMutedOf(context);
|
||||||
|
|
||||||
return Container(
|
return Container(
|
||||||
decoration: const BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
border: Border(
|
border: Border(
|
||||||
bottom: BorderSide(color: RetroColors.panelBorderOuter, width: 2),
|
bottom: BorderSide(color: borderColor, width: 2),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
child: TabBar(
|
child: TabBar(
|
||||||
controller: controller,
|
controller: controller,
|
||||||
isScrollable: tabs.length > 3,
|
isScrollable: tabs.length > 3,
|
||||||
indicator: BoxDecoration(
|
indicator: BoxDecoration(
|
||||||
color: accentColor.withValues(alpha: 0.3),
|
color: accent.withValues(alpha: 0.3),
|
||||||
border: Border(
|
border: Border(
|
||||||
bottom: BorderSide(color: accentColor, width: 2),
|
bottom: BorderSide(color: accent, width: 2),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
labelColor: accentColor,
|
labelColor: accent,
|
||||||
unselectedLabelColor: RetroColors.textDisabled,
|
unselectedLabelColor: mutedColor,
|
||||||
labelStyle: const TextStyle(
|
labelStyle: const TextStyle(
|
||||||
fontFamily: 'PressStart2P',
|
fontFamily: 'PressStart2P',
|
||||||
fontSize: 7,
|
fontSize: 7,
|
||||||
@@ -159,20 +171,23 @@ class RetroTabBar extends StatelessWidget {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// 레트로 스타일 섹션 헤더
|
/// 레트로 스타일 섹션 헤더
|
||||||
|
/// 라이트/다크 모드 자동 지원
|
||||||
class RetroSectionHeader extends StatelessWidget {
|
class RetroSectionHeader extends StatelessWidget {
|
||||||
const RetroSectionHeader({
|
const RetroSectionHeader({
|
||||||
super.key,
|
super.key,
|
||||||
required this.title,
|
required this.title,
|
||||||
this.icon,
|
this.icon,
|
||||||
this.accentColor = RetroColors.gold,
|
this.accentColor,
|
||||||
});
|
});
|
||||||
|
|
||||||
final String title;
|
final String title;
|
||||||
final String? icon;
|
final String? icon;
|
||||||
final Color accentColor;
|
final Color? accentColor;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
|
final accent = accentColor ?? RetroColors.goldOf(context);
|
||||||
|
|
||||||
return Padding(
|
return Padding(
|
||||||
padding: const EdgeInsets.only(bottom: 8),
|
padding: const EdgeInsets.only(bottom: 8),
|
||||||
child: Row(
|
child: Row(
|
||||||
@@ -180,7 +195,7 @@ class RetroSectionHeader extends StatelessWidget {
|
|||||||
if (icon != null) ...[
|
if (icon != null) ...[
|
||||||
Text(
|
Text(
|
||||||
icon!,
|
icon!,
|
||||||
style: TextStyle(fontSize: 12, color: accentColor),
|
style: TextStyle(fontSize: 12, color: accent),
|
||||||
),
|
),
|
||||||
const SizedBox(width: 6),
|
const SizedBox(width: 6),
|
||||||
],
|
],
|
||||||
@@ -189,7 +204,7 @@ class RetroSectionHeader extends StatelessWidget {
|
|||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
fontFamily: 'PressStart2P',
|
fontFamily: 'PressStart2P',
|
||||||
fontSize: 8,
|
fontSize: 8,
|
||||||
color: accentColor,
|
color: accent,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
const SizedBox(width: 8),
|
const SizedBox(width: 8),
|
||||||
@@ -199,8 +214,8 @@ class RetroSectionHeader extends StatelessWidget {
|
|||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
gradient: LinearGradient(
|
gradient: LinearGradient(
|
||||||
colors: [
|
colors: [
|
||||||
accentColor,
|
accent,
|
||||||
accentColor.withValues(alpha: 0.3),
|
accent.withValues(alpha: 0.3),
|
||||||
Colors.transparent,
|
Colors.transparent,
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
@@ -214,6 +229,7 @@ class RetroSectionHeader extends StatelessWidget {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// 레트로 스타일 정보 박스
|
/// 레트로 스타일 정보 박스
|
||||||
|
/// 라이트/다크 모드 자동 지원
|
||||||
class RetroInfoBox extends StatelessWidget {
|
class RetroInfoBox extends StatelessWidget {
|
||||||
const RetroInfoBox({
|
const RetroInfoBox({
|
||||||
super.key,
|
super.key,
|
||||||
@@ -226,19 +242,23 @@ class RetroInfoBox extends StatelessWidget {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
|
final bgColor = backgroundColor ?? RetroColors.backgroundOf(context);
|
||||||
|
final borderColor = RetroColors.borderOf(context);
|
||||||
|
final textColor = RetroColors.textPrimaryOf(context);
|
||||||
|
|
||||||
return Container(
|
return Container(
|
||||||
width: double.infinity,
|
width: double.infinity,
|
||||||
padding: const EdgeInsets.all(10),
|
padding: const EdgeInsets.all(10),
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: backgroundColor ?? RetroColors.deepBrown,
|
color: bgColor,
|
||||||
border: Border.all(color: RetroColors.panelBorderOuter, width: 1),
|
border: Border.all(color: borderColor, width: 1),
|
||||||
),
|
),
|
||||||
child: Text(
|
child: Text(
|
||||||
content,
|
content,
|
||||||
style: const TextStyle(
|
style: TextStyle(
|
||||||
fontFamily: 'PressStart2P',
|
fontFamily: 'PressStart2P',
|
||||||
fontSize: 7,
|
fontSize: 7,
|
||||||
color: RetroColors.textLight,
|
color: textColor,
|
||||||
height: 1.8,
|
height: 1.8,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -247,22 +267,27 @@ class RetroInfoBox extends StatelessWidget {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// 레트로 스타일 통계 행
|
/// 레트로 스타일 통계 행
|
||||||
|
/// 라이트/다크 모드 자동 지원
|
||||||
class RetroStatRow extends StatelessWidget {
|
class RetroStatRow extends StatelessWidget {
|
||||||
const RetroStatRow({
|
const RetroStatRow({
|
||||||
super.key,
|
super.key,
|
||||||
required this.label,
|
required this.label,
|
||||||
required this.value,
|
required this.value,
|
||||||
this.highlight = false,
|
this.highlight = false,
|
||||||
this.highlightColor = RetroColors.gold,
|
this.highlightColor,
|
||||||
});
|
});
|
||||||
|
|
||||||
final String label;
|
final String label;
|
||||||
final String value;
|
final String value;
|
||||||
final bool highlight;
|
final bool highlight;
|
||||||
final Color highlightColor;
|
final Color? highlightColor;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
|
final accent = highlightColor ?? RetroColors.goldOf(context);
|
||||||
|
final mutedColor = RetroColors.textMutedOf(context);
|
||||||
|
final textColor = RetroColors.textPrimaryOf(context);
|
||||||
|
|
||||||
return Padding(
|
return Padding(
|
||||||
padding: const EdgeInsets.symmetric(vertical: 3),
|
padding: const EdgeInsets.symmetric(vertical: 3),
|
||||||
child: Row(
|
child: Row(
|
||||||
@@ -270,10 +295,10 @@ class RetroStatRow extends StatelessWidget {
|
|||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
label,
|
label,
|
||||||
style: const TextStyle(
|
style: TextStyle(
|
||||||
fontFamily: 'PressStart2P',
|
fontFamily: 'PressStart2P',
|
||||||
fontSize: 6,
|
fontSize: 6,
|
||||||
color: RetroColors.textDisabled,
|
color: mutedColor,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Container(
|
Container(
|
||||||
@@ -282,8 +307,8 @@ class RetroStatRow extends StatelessWidget {
|
|||||||
: null,
|
: null,
|
||||||
decoration: highlight
|
decoration: highlight
|
||||||
? BoxDecoration(
|
? BoxDecoration(
|
||||||
color: highlightColor.withValues(alpha: 0.2),
|
color: accent.withValues(alpha: 0.2),
|
||||||
border: Border.all(color: highlightColor, width: 1),
|
border: Border.all(color: accent, width: 1),
|
||||||
)
|
)
|
||||||
: null,
|
: null,
|
||||||
child: Text(
|
child: Text(
|
||||||
@@ -291,7 +316,7 @@ class RetroStatRow extends StatelessWidget {
|
|||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
fontFamily: 'JetBrainsMono',
|
fontFamily: 'JetBrainsMono',
|
||||||
fontSize: 9,
|
fontSize: 9,
|
||||||
color: highlight ? highlightColor : RetroColors.textLight,
|
color: highlight ? accent : textColor,
|
||||||
fontWeight: FontWeight.bold,
|
fontWeight: FontWeight.bold,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -1,5 +1,10 @@
|
|||||||
PODS:
|
PODS:
|
||||||
|
- audio_session (0.0.1):
|
||||||
|
- FlutterMacOS
|
||||||
- FlutterMacOS (1.0.0)
|
- FlutterMacOS (1.0.0)
|
||||||
|
- just_audio (0.0.1):
|
||||||
|
- Flutter
|
||||||
|
- FlutterMacOS
|
||||||
- path_provider_foundation (0.0.1):
|
- path_provider_foundation (0.0.1):
|
||||||
- Flutter
|
- Flutter
|
||||||
- FlutterMacOS
|
- FlutterMacOS
|
||||||
@@ -8,20 +13,28 @@ PODS:
|
|||||||
- FlutterMacOS
|
- FlutterMacOS
|
||||||
|
|
||||||
DEPENDENCIES:
|
DEPENDENCIES:
|
||||||
|
- audio_session (from `Flutter/ephemeral/.symlinks/plugins/audio_session/macos`)
|
||||||
- FlutterMacOS (from `Flutter/ephemeral`)
|
- FlutterMacOS (from `Flutter/ephemeral`)
|
||||||
|
- just_audio (from `Flutter/ephemeral/.symlinks/plugins/just_audio/darwin`)
|
||||||
- path_provider_foundation (from `Flutter/ephemeral/.symlinks/plugins/path_provider_foundation/darwin`)
|
- path_provider_foundation (from `Flutter/ephemeral/.symlinks/plugins/path_provider_foundation/darwin`)
|
||||||
- shared_preferences_foundation (from `Flutter/ephemeral/.symlinks/plugins/shared_preferences_foundation/darwin`)
|
- shared_preferences_foundation (from `Flutter/ephemeral/.symlinks/plugins/shared_preferences_foundation/darwin`)
|
||||||
|
|
||||||
EXTERNAL SOURCES:
|
EXTERNAL SOURCES:
|
||||||
|
audio_session:
|
||||||
|
:path: Flutter/ephemeral/.symlinks/plugins/audio_session/macos
|
||||||
FlutterMacOS:
|
FlutterMacOS:
|
||||||
:path: Flutter/ephemeral
|
:path: Flutter/ephemeral
|
||||||
|
just_audio:
|
||||||
|
:path: Flutter/ephemeral/.symlinks/plugins/just_audio/darwin
|
||||||
path_provider_foundation:
|
path_provider_foundation:
|
||||||
:path: Flutter/ephemeral/.symlinks/plugins/path_provider_foundation/darwin
|
:path: Flutter/ephemeral/.symlinks/plugins/path_provider_foundation/darwin
|
||||||
shared_preferences_foundation:
|
shared_preferences_foundation:
|
||||||
:path: Flutter/ephemeral/.symlinks/plugins/shared_preferences_foundation/darwin
|
:path: Flutter/ephemeral/.symlinks/plugins/shared_preferences_foundation/darwin
|
||||||
|
|
||||||
SPEC CHECKSUMS:
|
SPEC CHECKSUMS:
|
||||||
|
audio_session: 728ae3823d914f809c485d390274861a24b0904e
|
||||||
FlutterMacOS: d0db08ddef1a9af05a5ec4b724367152bb0500b1
|
FlutterMacOS: d0db08ddef1a9af05a5ec4b724367152bb0500b1
|
||||||
|
just_audio: a42c63806f16995daf5b219ae1d679deb76e6a79
|
||||||
path_provider_foundation: 0b743cbb62d8e47eab856f09262bb8c1ddcfe6ba
|
path_provider_foundation: 0b743cbb62d8e47eab856f09262bb8c1ddcfe6ba
|
||||||
shared_preferences_foundation: 5086985c1d43c5ba4d5e69a4e8083a389e2909e6
|
shared_preferences_foundation: 5086985c1d43c5ba4d5e69a4e8083a389e2909e6
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user