Skip to content

Commit

Permalink
Tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
veloce committed Jan 28, 2025
1 parent ab2e04b commit 3785559
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions lib/src/app.dart
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ class _AppState extends ConsumerState<Application> {
final themeLight = FlexThemeData.light(
colors: flexScheme.light,
surfaceMode: FlexSurfaceMode.highScaffoldLowSurface,
blendLevel: 10,
blendLevel: isIOS ? 10 : 8,
cupertinoOverrideTheme: const CupertinoThemeData(applyThemeToAll: true),
appBarStyle: isIOS ? null : FlexAppBarStyle.scaffoldBackground,
);
Expand All @@ -146,8 +146,8 @@ class _AppState extends ConsumerState<Application> {
generalPrefs.systemColors
? null
: FloatingActionButtonThemeData(
backgroundColor: themeLight.colorScheme.secondaryFixedDim,
foregroundColor: themeLight.colorScheme.onSecondaryFixedVariant,
backgroundColor: themeLight.colorScheme.primaryFixedDim,
foregroundColor: themeLight.colorScheme.onPrimaryFixed,
);

const cupertinoTitleColor = CupertinoDynamicColor.withBrightness(
Expand Down Expand Up @@ -227,7 +227,7 @@ class _AppState extends ConsumerState<Application> {
navigationBarTheme: NavigationBarTheme.of(context).copyWith(
height: remainingHeight < kSmallRemainingHeightLeftBoardThreshold ? 60 : null,
backgroundColor: highBlendThemeLight.colorScheme.surface,
indicatorColor: highBlendThemeLight.colorScheme.secondaryContainer,
indicatorColor: darken(highBlendThemeLight.colorScheme.secondaryContainer, 0.05),
elevation: 3,
),
extensions: [lichessCustomColors.harmonized(themeLight.colorScheme)],
Expand Down
16 changes: 8 additions & 8 deletions lib/src/model/settings/board_preferences.dart
Original file line number Diff line number Diff line change
Expand Up @@ -411,14 +411,14 @@ String dragTargetKindLabel(DragTargetKind kind) => switch (kind) {
enum BoardBackgroundTheme {
/// The background theme is based on the chess board
board(20, 30),
blue(30, 36, FlexScheme.blue, 'Blue'),
indigo(30, 36, FlexScheme.indigo, 'indigo'),
green(30, 36, FlexScheme.jungle, 'Green'),
brown(30, 36, FlexScheme.purpleBrown, 'Brown'),
gold(30, 36, FlexScheme.gold, 'Gold'),
red(36, 36, FlexScheme.redWine, 'Red'),
purple(30, 36, FlexScheme.purpleM3, 'Purple'),
sepia(28, 36, FlexScheme.sepia, 'Sepia'),
blue(30, 34, FlexScheme.blue, 'Blue'),
indigo(30, 34, FlexScheme.indigo, 'indigo'),
green(30, 34, FlexScheme.jungle, 'Green'),
brown(30, 34, FlexScheme.purpleBrown, 'Brown'),
gold(30, 34, FlexScheme.gold, 'Gold'),
red(34, 34, FlexScheme.redWine, 'Red'),
purple(30, 34, FlexScheme.purpleM3, 'Purple'),
sepia(28, 34, FlexScheme.sepia, 'Sepia'),

dimRed(16, 20, FlexScheme.redWine, 'Dim Red'),
dimPurple(16, 20, FlexScheme.purpleM3, 'Dim Purple'),
Expand Down

0 comments on commit 3785559

Please sign in to comment.