feat: change theme
This commit is contained in:
@@ -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),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user