feat: change theme
This commit is contained in:
@@ -107,7 +107,7 @@ class _ChatPanelState extends State<ChatPanel> {
|
||||
isScrollable: true,
|
||||
tabAlignment: TabAlignment.center,
|
||||
indicator: BoxDecoration(
|
||||
color: const Color(0xFF7B0E14),
|
||||
color: AppColors.lapis,
|
||||
borderRadius: BorderRadius.circular(10),
|
||||
border: Border.all(color: AppColors.gold, width: 1.4),
|
||||
),
|
||||
@@ -146,7 +146,7 @@ class _ChatPanelState extends State<ChatPanel> {
|
||||
gradient: const LinearGradient(
|
||||
begin: Alignment.topCenter,
|
||||
end: Alignment.bottomCenter,
|
||||
colors: [Color(0xFF8E0E1B), Color(0xFF5A0A12)],
|
||||
colors: [AppColors.lapisMid, AppColors.lapisLo],
|
||||
),
|
||||
borderRadius: BorderRadius.circular(16),
|
||||
border: Border.all(color: AppColors.gold, width: 2),
|
||||
@@ -171,7 +171,7 @@ class _ChatPanelState extends State<ChatPanel> {
|
||||
),
|
||||
child: const Text('بسته چت',
|
||||
style: TextStyle(
|
||||
color: Color(0xFF3A0A12),
|
||||
color: AppColors.lapisInk,
|
||||
fontSize: 17,
|
||||
fontWeight: FontWeight.bold)),
|
||||
),
|
||||
@@ -184,7 +184,7 @@ class _ChatPanelState extends State<ChatPanel> {
|
||||
onTap: () => Navigator.pop(context),
|
||||
child: const CircleAvatar(
|
||||
radius: 15,
|
||||
backgroundColor: Color(0xFFB81D2A),
|
||||
backgroundColor: AppColors.accent,
|
||||
child: Icon(Icons.close, color: Colors.white, size: 18),
|
||||
),
|
||||
),
|
||||
@@ -211,7 +211,7 @@ class _ChatPanelState extends State<ChatPanel> {
|
||||
padding: const EdgeInsets.all(16),
|
||||
margin: const EdgeInsets.symmetric(horizontal: 24),
|
||||
decoration: BoxDecoration(
|
||||
color: const Color(0xCC2A0710),
|
||||
color: AppColors.lapisLo.withValues(alpha: 0.9),
|
||||
borderRadius: BorderRadius.circular(14),
|
||||
border: Border.all(color: AppColors.gold, width: 1.5),
|
||||
),
|
||||
@@ -270,7 +270,7 @@ class _ChatPanelState extends State<ChatPanel> {
|
||||
gradient: const LinearGradient(
|
||||
begin: Alignment.topCenter,
|
||||
end: Alignment.bottomCenter,
|
||||
colors: [Color(0xFF9A1622), Color(0xFF5E0E16)],
|
||||
colors: [AppColors.lapisHi, AppColors.lapisLo],
|
||||
),
|
||||
borderRadius: BorderRadius.circular(10),
|
||||
border: Border.all(color: AppColors.goldDark, width: 1.2),
|
||||
|
||||
@@ -164,7 +164,7 @@ class _LobbyViewState extends State<_LobbyView> {
|
||||
child: Container(
|
||||
decoration: BoxDecoration(
|
||||
gradient: const RadialGradient(
|
||||
colors: [Color(0xFF1E7E3A), Color(0xFF0C5022)],
|
||||
colors: [AppColors.lapisHi, AppColors.lapisLo],
|
||||
radius: 0.9,
|
||||
),
|
||||
borderRadius: BorderRadius.circular(160),
|
||||
@@ -291,7 +291,7 @@ class _LobbyViewState extends State<_LobbyView> {
|
||||
gradient: const LinearGradient(
|
||||
begin: Alignment.topCenter,
|
||||
end: Alignment.bottomCenter,
|
||||
colors: [Color(0xFF8E1B2A), Color(0xFF5A0E18)],
|
||||
colors: [AppColors.lapisMid, AppColors.lapisLo],
|
||||
),
|
||||
borderRadius: BorderRadius.circular(10),
|
||||
border: Border.all(color: AppColors.gold, width: 1.5),
|
||||
|
||||
@@ -72,7 +72,7 @@ class HokmGame extends FlameGame {
|
||||
HokmGame(this.cubit, {this.skin = 'simple'});
|
||||
|
||||
@override
|
||||
Color backgroundColor() => const Color(0xFF0C3A1B);
|
||||
Color backgroundColor() => AppColors.lapisNight;
|
||||
|
||||
@override
|
||||
Future<void> onLoad() async {
|
||||
|
||||
@@ -18,14 +18,14 @@ class Felt extends PositionComponent with HasGameReference {
|
||||
final w = game.size.x, h = game.size.y;
|
||||
final center = Offset(w / 2, h / 2);
|
||||
|
||||
// ۱) زمینِ سبزِ نمدی (کلِ صفحه) با وینیتِ شعاعی برای عمق.
|
||||
// ۱) زمینِ لاجوردیِ نمدی (کلِ صفحه) با وینیتِ شعاعی برای عمق.
|
||||
canvas.drawRect(
|
||||
Rect.fromLTWH(0, 0, w, h),
|
||||
Paint()
|
||||
..shader = RadialGradient(
|
||||
center: Alignment.center,
|
||||
radius: 1.0,
|
||||
colors: const [Color(0xFF1C7A3E), Color(0xFF0C3A1B)],
|
||||
colors: const [AppColors.lapisHi, AppColors.lapisNight],
|
||||
stops: const [0.5, 1.0],
|
||||
).createShader(Rect.fromLTWH(0, 0, w, h)),
|
||||
);
|
||||
@@ -62,7 +62,7 @@ class Felt extends PositionComponent with HasGameReference {
|
||||
..shader = RadialGradient(
|
||||
center: Alignment.center,
|
||||
radius: 0.9,
|
||||
colors: const [Color(0xFF153A63), Color(0xFF07172E)],
|
||||
colors: const [AppColors.lapisLo, AppColors.lapisInk],
|
||||
stops: const [0.4, 1.0],
|
||||
).createShader(rect),
|
||||
);
|
||||
|
||||
@@ -527,7 +527,7 @@ class _CardSkinArt extends StatelessWidget {
|
||||
decoration: BoxDecoration(
|
||||
borderRadius: BorderRadius.circular(10),
|
||||
gradient: const RadialGradient(
|
||||
colors: [Color(0xFF12508F), Colors.black87],
|
||||
colors: [AppColors.lapis, Colors.black87],
|
||||
radius: 0.95,
|
||||
),
|
||||
border: Border.all(
|
||||
|
||||
@@ -152,7 +152,7 @@ class _TopBar extends StatelessWidget {
|
||||
gradient: const LinearGradient(
|
||||
begin: Alignment.topCenter,
|
||||
end: Alignment.bottomCenter,
|
||||
colors: [AppColors.bg, Color(0xFF1A0106)],
|
||||
colors: [AppColors.bg, AppColors.bgDark],
|
||||
),
|
||||
borderRadius: BorderRadius.circular(16),
|
||||
border: Border.all(color: AppColors.goldDark),
|
||||
|
||||
Reference in New Issue
Block a user