feat: change theme

This commit is contained in:
2026-06-26 17:29:21 +03:30
parent 153b4caa3d
commit 5160deb973
10 changed files with 32 additions and 24 deletions
@@ -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),
);