Skip to content

Commit

Permalink
theme: Add goldenJade color theme
Browse files Browse the repository at this point in the history
Thanks to @waiot

Change-Id: Ib5f8bbe63d8d7779131ea469c99745f6106d59aa
  • Loading branch information
calcitem committed May 3, 2023
1 parent 42e017e commit 24489f5
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ enum ColorTheme {
current,
light,
dark,
goldenJade,
}

class _ThemeModal extends StatelessWidget {
Expand Down Expand Up @@ -56,6 +57,12 @@ class _ThemeModal extends StatelessWidget {
value: ColorTheme.dark,
onChanged: onChanged,
),
RadioListTile<ColorTheme>(
title: Text(S.of(context).goldenJade),
groupValue: theme,
value: ColorTheme.goldenJade,
onChanged: onChanged,
),
],
),
);
Expand Down
17 changes: 17 additions & 0 deletions src/ui/flutter_app/lib/shared/theme/app_theme.dart
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,23 @@ class AppTheme {
mainToolbarIconColor: UIColors.tahitiGold60,
navigationToolbarBackgroundColor: Colors.black,
navigationToolbarIconColor: UIColors.tahitiGold60,
),
ColorTheme.goldenJade: ColorSettings(
boardBackgroundColor: Color(0xFFC89B42), // golden
darkBackgroundColor: Color(0xFFE9E7D7), // light beige
boardLineColor: Color(0xFF8B6B29), // dark gold
whitePieceColor: Color(0xFFF8F3F6), // off-white
blackPieceColor: Color(0xFF7FE3AF), // jade green
pieceHighlightColor: Color(0xB3C89B42), // semi-transparent golden
messageColor: Color(0x621C352D), // dark maroon
drawerColor: Color(0xFF1C352D), // dark green
drawerTextColor: Color(0xFFFFFFFF), // white
drawerHighlightItemColor:
Color(0x331BFC06), // semi-transparent bright green
mainToolbarBackgroundColor: Color(0xFFE9E7D7), // light beige
mainToolbarIconColor: Color(0xFF8B6B29), // dark gold
navigationToolbarBackgroundColor: Color(0xFFE9E7D7), // light beige
navigationToolbarIconColor: Color(0xFF8B6B29), // dark gold
)
};
}

0 comments on commit 24489f5

Please sign in to comment.