Skip to content

Commit

Permalink
feat: improve high contrast color schemes
Browse files Browse the repository at this point in the history
  • Loading branch information
adil192 committed May 16, 2024
1 parent 846b591 commit 3506adc
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions lib/main.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import 'dart:async';

import 'package:flame/extensions.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
Expand Down Expand Up @@ -117,17 +118,22 @@ class _MyAppState extends State<MyApp> {
darkTheme: nesThemeFrom(
brightness: Brightness.dark,
colorScheme: ColorScheme.fromSeed(
seedColor: RicochlimePalette.grassColor,
seedColor: RicochlimePalette.grassColorDark,
primary: RicochlimePalette.grassColor.brighten(0.1),
brightness: Brightness.dark,
),
),
highContrastTheme: nesThemeFrom(
brightness: Brightness.light,
colorScheme: const ColorScheme.highContrastLight(),
colorScheme: ColorScheme.highContrastLight(
primary: RicochlimePalette.grassColor.darken(0.5),
),
),
highContrastDarkTheme: nesThemeFrom(
brightness: Brightness.dark,
colorScheme: const ColorScheme.highContrastDark(),
colorScheme: ColorScheme.highContrastDark(
primary: RicochlimePalette.grassColorDark.darken(0.5),
),
),
home: const HomePage(),
);
Expand Down

0 comments on commit 3506adc

Please sign in to comment.