Fix typo backgroundColor

This commit is contained in:
Calcitem 2021-06-20 00:21:09 +08:00
parent c59ae7fe62
commit 91bb1218c3
6 changed files with 14 additions and 14 deletions

View File

@ -572,8 +572,8 @@
"@pieceColor": {
"description": "Piece color"
},
"backgroudColor": "Hintergrundfarbe",
"@backgroudColor": {
"backgroundColor": "Hintergrundfarbe",
"@backgroundColor": {
"description": "Background color"
},
"lineColor": "Linienfarbe",

View File

@ -572,8 +572,8 @@
"@pieceColor": {
"description": "Piece color"
},
"backgroudColor": "Background color",
"@backgroudColor": {
"backgroundColor": "Background color",
"@backgroundColor": {
"description": "Background color"
},
"lineColor": "Board line color",

View File

@ -572,8 +572,8 @@
"@pieceColor": {
"description": "Piece color"
},
"backgroudColor": "رنگ پس زمینه",
"@backgroudColor": {
"backgroundColor": "رنگ پس زمینه",
"@backgroundColor": {
"description": "Background color"
},
"lineColor": "رنگ خط تخته",

View File

@ -572,8 +572,8 @@
"@pieceColor": {
"description": "Piece color"
},
"backgroudColor": "Háttérszín",
"@backgroudColor": {
"backgroundColor": "Háttérszín",
"@backgroundColor": {
"description": "Background color"
},
"lineColor": "Tábla vonalszíne",

View File

@ -143,7 +143,7 @@
"color": "颜色",
"boardColor": "棋盘颜色",
"pieceColor": "棋子颜色",
"backgroudColor": "背景颜色",
"backgroundColor": "背景颜色",
"lineColor": "线条颜色",
"whitePieceColor": "先手方棋子颜色",
"blackPieceColor": "后手方棋子颜色",

View File

@ -52,7 +52,7 @@ class _PersonalizationSettingsPageState
showColorDialog(String colorString) async {
Map<String, int> colorStrToVal = {
S.of(context).boardColor: Config.boardBackgroundColor,
S.of(context).backgroudColor: Config.darkBackgroundColor,
S.of(context).backgroundColor: Config.darkBackgroundColor,
S.of(context).lineColor: Config.boardLineColor,
S.of(context).whitePieceColor: Config.whitePieceColor,
S.of(context).blackPieceColor: Config.blackPieceColor,
@ -88,7 +88,7 @@ class _PersonalizationSettingsPageState
if (colorString == S.of(context).boardColor) {
Config.boardBackgroundColor = pickerColor.value;
} else if (colorString == S.of(context).backgroudColor) {
} else if (colorString == S.of(context).backgroundColor) {
Config.darkBackgroundColor = pickerColor.value;
} else if (colorString == S.of(context).lineColor) {
Config.boardLineColor = pickerColor.value;
@ -415,9 +415,9 @@ class _PersonalizationSettingsPageState
ListItemDivider(),
SettingsListTile(
context: context,
titleString: S.of(context).backgroudColor,
titleString: S.of(context).backgroundColor,
trailingColor: Config.darkBackgroundColor,
onTap: () => showColorDialog(S.of(context).backgroudColor),
onTap: () => showColorDialog(S.of(context).backgroundColor),
),
ListItemDivider(),
SettingsListTile(