settings: Support menu color settings

This commit is contained in:
Calcitem 2021-07-16 00:38:33 +08:00
parent d64cd1680b
commit a91e2bbfe5
No known key found for this signature in database
GPG Key ID: C596FAD04B1A465B
48 changed files with 575 additions and 5 deletions

View File

@ -66,6 +66,9 @@ class Config {
static int whitePieceColor = AppTheme.whitePieceColor.value;
static int blackPieceColor = AppTheme.blackPieceColor.value;
static int messageColor = AppTheme.messageColor.value;
static int drawerColor = AppTheme.drawerColor.value;
static int drawerBackgroundColor = AppTheme.drawerBackgroundColor.value;
static int drawerTextColor = AppTheme.drawerTextColor.value;
// Rules
static int piecesCount = specialCountryAndRegion == "Iran" ? 12 : 9;
@ -139,6 +142,11 @@ class Config {
settings['BlackPieceColor'] ?? AppTheme.blackPieceColor.value;
Config.messageColor =
settings['MessageColor'] ?? AppTheme.messageColor.value;
Config.drawerColor = settings['DrawerColor'] ?? AppTheme.drawerColor.value;
Config.drawerBackgroundColor = settings['DrawerBackgroundColor'] ??
AppTheme.drawerBackgroundColor.value;
Config.drawerTextColor =
settings['DrawerTextColor'] ?? AppTheme.drawerTextColor.value;
// Rules
rule.piecesCount = Config.piecesCount =
@ -216,6 +224,9 @@ class Config {
settings['WhitePieceColor'] = Config.whitePieceColor;
settings['BlackPieceColor'] = Config.blackPieceColor;
settings['MessageColor'] = Config.messageColor;
settings['DrawerColor'] = Config.drawerColor;
settings['DrawerBackgroundColor'] = Config.drawerBackgroundColor;
settings['DrawerTextColor'] = Config.drawerTextColor;
// Rules
settings['PiecesCount'] = Config.piecesCount;

View File

@ -956,5 +956,17 @@
"mayMoveInPlacingPhase_Detail": "لا توجد مراحل وضع وتحريك مميزة ، أي يمكن للاعبين أن يقرروا في كل حركة ما إذا كانوا يريدون وضع قطعة على اللوحة أو نقل إحدى قطعهم (طالما أن لديهم قطعًا متبقية لوضعها).",
"@mayMoveInPlacingPhase_Detail": {
"description": "There are no distinct placing and moving phases, i.e. the players can decide at every move whether they want to place a piece on the board or move one of their pieces (as long as they have remaining pieces to place)."
},
"drawerColor": "Menu color",
"@drawerColor": {
"description": "Menu color"
},
"drawerTextColor": "Menu text color",
"@drawerTextColor": {
"description": "Menu text color"
},
"drawerBackgroundColor": "Menu background color",
"@drawerBackgroundColor": {
"description": "Menu background color"
}
}

View File

@ -956,5 +956,17 @@
"mayMoveInPlacingPhase_Detail": "Няма отделни фази на поставяне и преместване, т.е. играчите могат да решават при всеки ход дали искат да поставят фигура на дъската или да преместят някоя от своите фигури (стига да имат останали фигури за поставяне).",
"@mayMoveInPlacingPhase_Detail": {
"description": "There are no distinct placing and moving phases, i.e. the players can decide at every move whether they want to place a piece on the board or move one of their pieces (as long as they have remaining pieces to place)."
},
"drawerColor": "Menu color",
"@drawerColor": {
"description": "Menu color"
},
"drawerTextColor": "Menu text color",
"@drawerTextColor": {
"description": "Menu text color"
},
"drawerBackgroundColor": "Menu background color",
"@drawerBackgroundColor": {
"description": "Menu background color"
}
}

View File

@ -956,5 +956,17 @@
"mayMoveInPlacingPhase_Detail": "এখানে কোনও পৃথক স্থাপন এবং চলমান পর্যায় নেই, অর্থাত্ খেলোয়াড়রা প্রতিটি পদক্ষেপে সিদ্ধান্ত নিতে পারেন তারা বোর্ডে কোনও টুকরো রাখতে চান বা তাদের কোনও টুকরা স্থানান্তরিত করতে চান (যতক্ষণ না তাদের কাছে টুকরো টুকরো টুকরো স্থান রয়েছে)।",
"@mayMoveInPlacingPhase_Detail": {
"description": "There are no distinct placing and moving phases, i.e. the players can decide at every move whether they want to place a piece on the board or move one of their pieces (as long as they have remaining pieces to place)."
},
"drawerColor": "Menu color",
"@drawerColor": {
"description": "Menu color"
},
"drawerTextColor": "Menu text color",
"@drawerTextColor": {
"description": "Menu text color"
},
"drawerBackgroundColor": "Menu background color",
"@drawerBackgroundColor": {
"description": "Menu background color"
}
}

View File

@ -956,5 +956,17 @@
"mayMoveInPlacingPhase_Detail": "Fáze umisťování a fáze pohybu nejsou odděleny, tj. hráči se mohou v každém tahu rozhodnout, zda chtějí umístit figurku na hrací plochu, nebo zda chtějí některou ze svých figurek přemístit (pokud jim zbývají figurky k umístění).",
"@mayMoveInPlacingPhase_Detail": {
"description": "There are no distinct placing and moving phases, i.e. the players can decide at every move whether they want to place a piece on the board or move one of their pieces (as long as they have remaining pieces to place)."
},
"drawerColor": "Barva nabídky",
"@drawerColor": {
"description": "Menu color"
},
"drawerTextColor": "Barva textu nabídky",
"@drawerTextColor": {
"description": "Menu text color"
},
"drawerBackgroundColor": "Menu background color",
"@drawerBackgroundColor": {
"description": "Menu background color"
}
}

View File

@ -956,5 +956,17 @@
"mayMoveInPlacingPhase_Detail": "Der er ingen særskilte placerings- og flyttefaser, dvs. spillerne kan ved hvert træk beslutte, om de vil placere en brik på brættet eller flytte en af deres brikker (så længe de har resterende brikker til at placere).",
"@mayMoveInPlacingPhase_Detail": {
"description": "There are no distinct placing and moving phases, i.e. the players can decide at every move whether they want to place a piece on the board or move one of their pieces (as long as they have remaining pieces to place)."
},
"drawerColor": "Menu color",
"@drawerColor": {
"description": "Menu color"
},
"drawerTextColor": "Menu text color",
"@drawerTextColor": {
"description": "Menu text color"
},
"drawerBackgroundColor": "Menu background color",
"@drawerBackgroundColor": {
"description": "Menu background color"
}
}

View File

@ -956,5 +956,17 @@
"mayMoveInPlacingPhase_Detail": "Es gibt keine getrennten Setz- und Zugphasen, d.h. die Spieler können bei jedem Zug entscheiden, ob sie einen Stein auf dem Brett setzen oder einen ihrer Steine bewegen wollen (solange sie noch Steine zum Setzen haben).",
"@mayMoveInPlacingPhase_Detail": {
"description": "There are no distinct placing and moving phases, i.e. the players can decide at every move whether they want to place a piece on the board or move one of their pieces (as long as they have remaining pieces to place)."
},
"drawerColor": "Menüfarbe",
"@drawerColor": {
"description": "Menu color"
},
"drawerTextColor": "Menütextfarbe",
"@drawerTextColor": {
"description": "Menu text color"
},
"drawerBackgroundColor": "Menühintergrundfarbe",
"@drawerBackgroundColor": {
"description": "Menu background color"
}
}

View File

@ -956,5 +956,17 @@
"mayMoveInPlacingPhase_Detail": "Δεν υπάρχουν διακριτές φάσεις τοποθέτησης και μετακίνησης, δηλαδή, οι παίκτες μπορούν να αποφασίζουν σε κάθε κίνηση αν θέλουν να τοποθετήσουν ένα κομμάτι στο ταμπλό ή να μετακινήσουν ένα από τα κομμάτια τους (εφόσον έχουν εναπομείναντα κομμάτια για τοποθέτηση).",
"@mayMoveInPlacingPhase_Detail": {
"description": "There are no distinct placing and moving phases, i.e. the players can decide at every move whether they want to place a piece on the board or move one of their pieces (as long as they have remaining pieces to place)."
},
"drawerColor": "Menu color",
"@drawerColor": {
"description": "Menu color"
},
"drawerTextColor": "Menu text color",
"@drawerTextColor": {
"description": "Menu text color"
},
"drawerBackgroundColor": "Menu background color",
"@drawerBackgroundColor": {
"description": "Menu background color"
}
}

View File

@ -956,5 +956,17 @@
"mayMoveInPlacingPhase_Detail": "There are no distinct placing and moving phases, i.e., the players can decide at every move whether they want to place a piece on the board or move one of their pieces (as long as they have remaining pieces to place).",
"@mayMoveInPlacingPhase_Detail": {
"description": "There are no distinct placing and moving phases, i.e. the players can decide at every move whether they want to place a piece on the board or move one of their pieces (as long as they have remaining pieces to place)."
},
"drawerColor": "Menu color",
"@drawerColor": {
"description": "Menu color"
},
"drawerTextColor": "Menu text color",
"@drawerTextColor": {
"description": "Menu text color"
},
"drawerBackgroundColor": "Menu background color",
"@drawerBackgroundColor": {
"description": "Menu background color"
}
}

View File

@ -956,5 +956,17 @@
"mayMoveInPlacingPhase_Detail": "No hay fases distintas de colocación y movimiento, es decir, los jugadores pueden decidir en cada movimiento si quieren colocar una pieza en el tablero o mover una de sus piezas (siempre que les queden piezas por colocar).",
"@mayMoveInPlacingPhase_Detail": {
"description": "There are no distinct placing and moving phases, i.e. the players can decide at every move whether they want to place a piece on the board or move one of their pieces (as long as they have remaining pieces to place)."
},
"drawerColor": "Color del menú",
"@drawerColor": {
"description": "Menu color"
},
"drawerTextColor": "Color del texto del menú",
"@drawerTextColor": {
"description": "Menu text color"
},
"drawerBackgroundColor": "Color de fondo del menú",
"@drawerBackgroundColor": {
"description": "Menu background color"
}
}

View File

@ -956,5 +956,17 @@
"mayMoveInPlacingPhase_Detail": "Puuduvad eraldi paigutus- ja liikumisfaasid, st mängijad võivad igal käigul otsustada, kas nad soovivad paigutada mängulauale ühe mängukivi või liigutada ühte oma mängukivi (niikaua kui neil on allesjäänud mängukivid, mida paigutada).",
"@mayMoveInPlacingPhase_Detail": {
"description": "There are no distinct placing and moving phases, i.e. the players can decide at every move whether they want to place a piece on the board or move one of their pieces (as long as they have remaining pieces to place)."
},
"drawerColor": "Menu color",
"@drawerColor": {
"description": "Menu color"
},
"drawerTextColor": "Menu text color",
"@drawerTextColor": {
"description": "Menu text color"
},
"drawerBackgroundColor": "Menu background color",
"@drawerBackgroundColor": {
"description": "Menu background color"
}
}

View File

@ -956,5 +956,17 @@
"mayMoveInPlacingPhase_Detail": "هیچ مرحله مشخصی برای قرار دادن و حرکت وجود ندارد ، به عنوان مثال بازیکنان می توانند در هر حرکت تصمیم بگیرند که آیا می خواهند مهره ای را روی صفحه قرار دهند یا یکی از مهره های خود را حرکت دهند (به شرط اینکه مهره هایی برای قرار دادن باقی مانده باشد).",
"@mayMoveInPlacingPhase_Detail": {
"description": "There are no distinct placing and moving phases, i.e. the players can decide at every move whether they want to place a piece on the board or move one of their pieces (as long as they have remaining pieces to place)."
},
"drawerColor": "رنگ منو",
"@drawerColor": {
"description": "Menu color"
},
"drawerTextColor": "رنگ متن منو",
"@drawerTextColor": {
"description": "Menu text color"
},
"drawerBackgroundColor": "رنگ پس زمینه منو",
"@drawerBackgroundColor": {
"description": "Menu background color"
}
}

View File

@ -956,5 +956,17 @@
"mayMoveInPlacingPhase_Detail": "Pelissä ei ole erillisiä sijoitus- ja siirtovaiheita, eli pelaajat voivat jokaisella siirrolla päättää, haluavatko he sijoittaa nappulan pelilaudalle vai siirtää yhden nappulansa (kunhan heillä on jäljellä nappuloita sijoitettavaksi).",
"@mayMoveInPlacingPhase_Detail": {
"description": "There are no distinct placing and moving phases, i.e. the players can decide at every move whether they want to place a piece on the board or move one of their pieces (as long as they have remaining pieces to place)."
},
"drawerColor": "Menu color",
"@drawerColor": {
"description": "Menu color"
},
"drawerTextColor": "Menu text color",
"@drawerTextColor": {
"description": "Menu text color"
},
"drawerBackgroundColor": "Menu background color",
"@drawerBackgroundColor": {
"description": "Menu background color"
}
}

View File

@ -956,5 +956,17 @@
"mayMoveInPlacingPhase_Detail": "Il n'y a pas de phases distinctes de placement et de déplacement, c'est-à-dire que les joueurs peuvent décider à chaque déplacement s'ils veulent placer une pièce sur le plateau ou déplacer une de leurs pièces (tant qu'il leur reste des pièces à placer).",
"@mayMoveInPlacingPhase_Detail": {
"description": "There are no distinct placing and moving phases, i.e. the players can decide at every move whether they want to place a piece on the board or move one of their pieces (as long as they have remaining pieces to place)."
},
"drawerColor": "Couleur des menus",
"@drawerColor": {
"description": "Menu color"
},
"drawerTextColor": "Couleur du texte du menu",
"@drawerTextColor": {
"description": "Menu text color"
},
"drawerBackgroundColor": "Couleur d'arrière-plan du menu",
"@drawerBackgroundColor": {
"description": "Menu background color"
}
}

View File

@ -956,5 +956,17 @@
"mayMoveInPlacingPhase_Detail": "ત્યાં કોઈ વિશિષ્ટ પ્લેસિંગ અને મૂવિંગ તબક્કાઓ નથી, એટલે કે, ખેલાડીઓ દરેક ચાલ પર નિર્ણય લઈ શકે છે કે શું તેઓ બોર્ડ પર કોઈ ભાગ મૂકવા માંગે છે અથવા તેમના ટુકડાઓમાંથી એક ખસેડવા માંગે છે (જ્યાં સુધી તેમની પાસે બાકીના ટુકડાઓ મૂકવા બાકી છે).",
"@mayMoveInPlacingPhase_Detail": {
"description": "There are no distinct placing and moving phases, i.e. the players can decide at every move whether they want to place a piece on the board or move one of their pieces (as long as they have remaining pieces to place)."
},
"drawerColor": "Menu color",
"@drawerColor": {
"description": "Menu color"
},
"drawerTextColor": "Menu text color",
"@drawerTextColor": {
"description": "Menu text color"
},
"drawerBackgroundColor": "Menu background color",
"@drawerBackgroundColor": {
"description": "Menu background color"
}
}

View File

@ -956,5 +956,17 @@
"mayMoveInPlacingPhase_Detail": "कोई अलग प्लेसमेंट और मूविंग चरण नहीं हैं, यानी खिलाड़ी हर कदम पर यह तय कर सकते हैं कि वे बोर्ड पर एक टुकड़ा रखना चाहते हैं या अपने एक टुकड़े को स्थानांतरित करना चाहते हैं (जब तक कि उनके पास शेष टुकड़े हों)।",
"@mayMoveInPlacingPhase_Detail": {
"description": "There are no distinct placing and moving phases, i.e. the players can decide at every move whether they want to place a piece on the board or move one of their pieces (as long as they have remaining pieces to place)."
},
"drawerColor": "Menu color",
"@drawerColor": {
"description": "Menu color"
},
"drawerTextColor": "Menu text color",
"@drawerTextColor": {
"description": "Menu text color"
},
"drawerBackgroundColor": "Menu background color",
"@drawerBackgroundColor": {
"description": "Menu background color"
}
}

View File

@ -956,5 +956,17 @@
"mayMoveInPlacingPhase_Detail": "Ne postoje različite faze postavljanja i pomicanja, tj. Igrači mogu pri svakom potezu odlučiti žele li postaviti komad na ploču ili premjestiti jedan od svojih dijelova (sve dok im preostaju komadi za postavljanje).",
"@mayMoveInPlacingPhase_Detail": {
"description": "There are no distinct placing and moving phases, i.e. the players can decide at every move whether they want to place a piece on the board or move one of their pieces (as long as they have remaining pieces to place)."
},
"drawerColor": "Menu color",
"@drawerColor": {
"description": "Menu color"
},
"drawerTextColor": "Menu text color",
"@drawerTextColor": {
"description": "Menu text color"
},
"drawerBackgroundColor": "Menu background color",
"@drawerBackgroundColor": {
"description": "Menu background color"
}
}

View File

@ -956,5 +956,17 @@
"mayMoveInPlacingPhase_Detail": "Nincs külön elhelyezési és mozgási fázis, azaz a játékosok minden lépésnél eldönthetik, hogy egy bábut akarnak-e elhelyezni a táblán, vagy pedig az egyik bábujukat akarják-e mozgatni (amíg van még elhelyezendő bábujuk).",
"@mayMoveInPlacingPhase_Detail": {
"description": "There are no distinct placing and moving phases, i.e. the players can decide at every move whether they want to place a piece on the board or move one of their pieces (as long as they have remaining pieces to place)."
},
"drawerColor": "A menü színe",
"@drawerColor": {
"description": "Menu color"
},
"drawerTextColor": "A menü szövegének színe",
"@drawerTextColor": {
"description": "Menu text color"
},
"drawerBackgroundColor": "A menü háttérszíne",
"@drawerBackgroundColor": {
"description": "Menu background color"
}
}

View File

@ -956,5 +956,17 @@
"mayMoveInPlacingPhase_Detail": "Tidak ada fase penempatan dan pemindahan yang berbeda, yaitu, para pemain dapat memutuskan pada setiap gerakan apakah mereka ingin menempatkan bidak di papan atau memindahkan salah satu bidak mereka (selama mereka memiliki bidak yang tersisa untuk ditempatkan).",
"@mayMoveInPlacingPhase_Detail": {
"description": "There are no distinct placing and moving phases, i.e. the players can decide at every move whether they want to place a piece on the board or move one of their pieces (as long as they have remaining pieces to place)."
},
"drawerColor": "Menu color",
"@drawerColor": {
"description": "Menu color"
},
"drawerTextColor": "Menu text color",
"@drawerTextColor": {
"description": "Menu text color"
},
"drawerBackgroundColor": "Menu background color",
"@drawerBackgroundColor": {
"description": "Menu background color"
}
}

View File

@ -956,5 +956,17 @@
"mayMoveInPlacingPhase_Detail": "Non ci sono fasi di piazzamento e di spostamento distinte, cioè i giocatori possono decidere ad ogni mossa se vogliono piazzare un pezzo sulla tavola o muovere uno dei loro pezzi (finché hanno pezzi rimanenti da piazzare).",
"@mayMoveInPlacingPhase_Detail": {
"description": "There are no distinct placing and moving phases, i.e. the players can decide at every move whether they want to place a piece on the board or move one of their pieces (as long as they have remaining pieces to place)."
},
"drawerColor": "Menu color",
"@drawerColor": {
"description": "Menu color"
},
"drawerTextColor": "Menu text color",
"@drawerTextColor": {
"description": "Menu text color"
},
"drawerBackgroundColor": "Menu background color",
"@drawerBackgroundColor": {
"description": "Menu background color"
}
}

View File

@ -956,5 +956,17 @@
"mayMoveInPlacingPhase_Detail": "スイング・フェーズとムーブ・フェーズの間に厳密な境界はありません。 つまり、プレイヤーは1手ごとにスイングするか移動するかを決めることができますスイングする駒が残っている限り。",
"@mayMoveInPlacingPhase_Detail": {
"description": "There are no distinct placing and moving phases, i.e. the players can decide at every move whether they want to place a piece on the board or move one of their pieces (as long as they have remaining pieces to place)."
},
"drawerColor": "Menu color",
"@drawerColor": {
"description": "Menu color"
},
"drawerTextColor": "Menu text color",
"@drawerTextColor": {
"description": "Menu text color"
},
"drawerBackgroundColor": "メニューの背景色",
"@drawerBackgroundColor": {
"description": "Menu background color"
}
}

View File

@ -956,5 +956,17 @@
"mayMoveInPlacingPhase_Detail": "ಯಾವುದೇ ವಿಶಿಷ್ಟವಾದ ಇರಿಸುವ ಮತ್ತು ಚಲಿಸುವ ಹಂತಗಳಿಲ್ಲ, ಅಂದರೆ, ಆಟಗಾರರು ಪ್ರತಿ ಚಲನೆಯಲ್ಲೂ ಒಂದು ತುಂಡನ್ನು ಬೋರ್ಡ್‌ನಲ್ಲಿ ಇಡಬೇಕೆ ಅಥವಾ ಅವರ ಒಂದು ತುಣುಕನ್ನು ಚಲಿಸಬೇಕೆ ಎಂದು ನಿರ್ಧರಿಸಬಹುದು (ಅವರು ಉಳಿದಿರುವ ತುಣುಕುಗಳನ್ನು ಇಡುವವರೆಗೆ).",
"@mayMoveInPlacingPhase_Detail": {
"description": "There are no distinct placing and moving phases, i.e. the players can decide at every move whether they want to place a piece on the board or move one of their pieces (as long as they have remaining pieces to place)."
},
"drawerColor": "Menu color",
"@drawerColor": {
"description": "Menu color"
},
"drawerTextColor": "Menu text color",
"@drawerTextColor": {
"description": "Menu text color"
},
"drawerBackgroundColor": "Menu background color",
"@drawerBackgroundColor": {
"description": "Menu background color"
}
}

View File

@ -956,5 +956,17 @@
"mayMoveInPlacingPhase_Detail": "유 각기와 보행기 사이에는 엄격한 경계가 없습니다. 즉, 플레이어는 움직일 때마다 움직일 것인지 움직일 것인지 결정할 수 있습니다 (움직일 수있는 조각이 남아있는 한).",
"@mayMoveInPlacingPhase_Detail": {
"description": "There are no distinct placing and moving phases, i.e. the players can decide at every move whether they want to place a piece on the board or move one of their pieces (as long as they have remaining pieces to place)."
},
"drawerColor": "Menu color",
"@drawerColor": {
"description": "Menu color"
},
"drawerTextColor": "Menu text color",
"@drawerTextColor": {
"description": "Menu text color"
},
"drawerBackgroundColor": "Menu background color",
"@drawerBackgroundColor": {
"description": "Menu background color"
}
}

View File

@ -956,5 +956,17 @@
"mayMoveInPlacingPhase_Detail": "Nėra atskirų dėliojimo ir judėjimo fazių, t. y. kiekvieno ėjimo metu žaidėjai gali nuspręsti, ar jie nori dėti figūrą ant lentos, ar perkelti vieną iš savo figūrų (jei tik turi likusių figūrų, kurias galima dėti).",
"@mayMoveInPlacingPhase_Detail": {
"description": "There are no distinct placing and moving phases, i.e. the players can decide at every move whether they want to place a piece on the board or move one of their pieces (as long as they have remaining pieces to place)."
},
"drawerColor": "Menu color",
"@drawerColor": {
"description": "Menu color"
},
"drawerTextColor": "Menu text color",
"@drawerTextColor": {
"description": "Menu text color"
},
"drawerBackgroundColor": "Menu background color",
"@drawerBackgroundColor": {
"description": "Menu background color"
}
}

View File

@ -956,5 +956,17 @@
"mayMoveInPlacingPhase_Detail": "Nav atšķirīgu novietošanas un pārvietošanas fāžu, t. i., spēlētāji katrā gājienā var izlemt, vai viņi vēlas novietot figūru uz galda vai pārvietot kādu no savām figūrām (ja vien viņiem ir atlikušas figūras, ko novietot).",
"@mayMoveInPlacingPhase_Detail": {
"description": "There are no distinct placing and moving phases, i.e. the players can decide at every move whether they want to place a piece on the board or move one of their pieces (as long as they have remaining pieces to place)."
},
"drawerColor": "Menu color",
"@drawerColor": {
"description": "Menu color"
},
"drawerTextColor": "Menu text color",
"@drawerTextColor": {
"description": "Menu text color"
},
"drawerBackgroundColor": "Menu background color",
"@drawerBackgroundColor": {
"description": "Menu background color"
}
}

View File

@ -956,5 +956,17 @@
"mayMoveInPlacingPhase_Detail": "Нема посебни фази на поставување и движење, т.е. играчите можат да одлучат на секој потег дали сакаат да постават парче на таблата или да поместат некое од нивните парчиња (сè додека ги имаат останатите парчиња за поставување).",
"@mayMoveInPlacingPhase_Detail": {
"description": "There are no distinct placing and moving phases, i.e. the players can decide at every move whether they want to place a piece on the board or move one of their pieces (as long as they have remaining pieces to place)."
},
"drawerColor": "Menu color",
"@drawerColor": {
"description": "Menu color"
},
"drawerTextColor": "Menu text color",
"@drawerTextColor": {
"description": "Menu text color"
},
"drawerBackgroundColor": "Menu background color",
"@drawerBackgroundColor": {
"description": "Menu background color"
}
}

View File

@ -956,5 +956,17 @@
"mayMoveInPlacingPhase_Detail": "Tidak ada fasa penempatan dan pemindahan yang berbeza, iaitu, pemain dapat memutuskan pada setiap gerakan sama ada mereka ingin meletakkan sekeping di papan atau memindahkan salah satu kepingan mereka (selagi mereka mempunyai potongan yang tersisa).",
"@mayMoveInPlacingPhase_Detail": {
"description": "There are no distinct placing and moving phases, i.e. the players can decide at every move whether they want to place a piece on the board or move one of their pieces (as long as they have remaining pieces to place)."
},
"drawerColor": "Menu color",
"@drawerColor": {
"description": "Menu color"
},
"drawerTextColor": "Menu text color",
"@drawerTextColor": {
"description": "Menu text color"
},
"drawerBackgroundColor": "Menu background color",
"@drawerBackgroundColor": {
"description": "Menu background color"
}
}

View File

@ -956,5 +956,17 @@
"mayMoveInPlacingPhase_Detail": "Er zijn geen verschillende plaatsings- en beweegfases, d.w.z. de spelers kunnen bij elke zet beslissen of ze een stuk op het bord willen plaatsen of een van hun stukken willen verplaatsen (zolang ze nog stukken over hebben om te plaatsen).",
"@mayMoveInPlacingPhase_Detail": {
"description": "There are no distinct placing and moving phases, i.e. the players can decide at every move whether they want to place a piece on the board or move one of their pieces (as long as they have remaining pieces to place)."
},
"drawerColor": "Menu color",
"@drawerColor": {
"description": "Menu color"
},
"drawerTextColor": "Menu text color",
"@drawerTextColor": {
"description": "Menu text color"
},
"drawerBackgroundColor": "Menu background color",
"@drawerBackgroundColor": {
"description": "Menu background color"
}
}

View File

@ -956,5 +956,17 @@
"mayMoveInPlacingPhase_Detail": "Det er ingen distinkte plasserings- og flyttingsfaser, dvs. spillerne kan bestemme ved hvert trekk om de vil plassere et stykke på brettet eller flytte et av brikkene sine (så lenge de har gjenværende brikker å plassere).",
"@mayMoveInPlacingPhase_Detail": {
"description": "There are no distinct placing and moving phases, i.e. the players can decide at every move whether they want to place a piece on the board or move one of their pieces (as long as they have remaining pieces to place)."
},
"drawerColor": "Menu color",
"@drawerColor": {
"description": "Menu color"
},
"drawerTextColor": "Menu text color",
"@drawerTextColor": {
"description": "Menu text color"
},
"drawerBackgroundColor": "Menu background color",
"@drawerBackgroundColor": {
"description": "Menu background color"
}
}

View File

@ -956,5 +956,17 @@
"mayMoveInPlacingPhase_Detail": "Nie ma oddzielnych faz umieszczania i poruszania, tzn. gracze mogą w każdym ruchu zdecydować, czy chcą umieścić element na planszy, czy poruszyć jeden ze swoich elementów (tak długo, jak długo mają pozostałe elementy do umieszczenia).",
"@mayMoveInPlacingPhase_Detail": {
"description": "There are no distinct placing and moving phases, i.e. the players can decide at every move whether they want to place a piece on the board or move one of their pieces (as long as they have remaining pieces to place)."
},
"drawerColor": "Menu color",
"@drawerColor": {
"description": "Menu color"
},
"drawerTextColor": "Menu text color",
"@drawerTextColor": {
"description": "Menu text color"
},
"drawerBackgroundColor": "Menu background color",
"@drawerBackgroundColor": {
"description": "Menu background color"
}
}

View File

@ -956,5 +956,17 @@
"mayMoveInPlacingPhase_Detail": "Não há fases distintas de colocação e movimentação, ou seja, os jogadores podem decidir em cada jogada se querem colocar uma peça no tabuleiro ou mover uma das suas peças (desde que tenham peças restantes para colocar).",
"@mayMoveInPlacingPhase_Detail": {
"description": "There are no distinct placing and moving phases, i.e. the players can decide at every move whether they want to place a piece on the board or move one of their pieces (as long as they have remaining pieces to place)."
},
"drawerColor": "Cor do menu",
"@drawerColor": {
"description": "Menu color"
},
"drawerTextColor": "Cor do texto do menu",
"@drawerTextColor": {
"description": "Menu text color"
},
"drawerBackgroundColor": "Cor de fundo do menu",
"@drawerBackgroundColor": {
"description": "Menu background color"
}
}

View File

@ -956,5 +956,17 @@
"mayMoveInPlacingPhase_Detail": "Nu există faze distincte de plasare și de mutare, adică jucătorii pot decide la fiecare mutare dacă doresc să plaseze o piesă pe tablă sau să mute una dintre piesele lor (atâta timp cât mai au piese de plasat).",
"@mayMoveInPlacingPhase_Detail": {
"description": "There are no distinct placing and moving phases, i.e. the players can decide at every move whether they want to place a piece on the board or move one of their pieces (as long as they have remaining pieces to place)."
},
"drawerColor": "Barva textu nabídky",
"@drawerColor": {
"description": "Menu color"
},
"drawerTextColor": "Culoarea textului meniului",
"@drawerTextColor": {
"description": "Menu text color"
},
"drawerBackgroundColor": "Menu background color",
"@drawerBackgroundColor": {
"description": "Menu background color"
}
}

View File

@ -956,5 +956,17 @@
"mayMoveInPlacingPhase_Detail": "Не существует отдельных фаз размещения и перемещения, т.е. игроки могут решать на каждом ходу, хотят ли они разместить фигуру на доске или переместить одну из своих фигур (пока у них есть оставшиеся фигуры для размещения).",
"@mayMoveInPlacingPhase_Detail": {
"description": "There are no distinct placing and moving phases, i.e. the players can decide at every move whether they want to place a piece on the board or move one of their pieces (as long as they have remaining pieces to place)."
},
"drawerColor": "Цвет меню",
"@drawerColor": {
"description": "Menu color"
},
"drawerTextColor": "Цвет текста меню",
"@drawerTextColor": {
"description": "Menu text color"
},
"drawerBackgroundColor": "Цвет фона меню",
"@drawerBackgroundColor": {
"description": "Menu background color"
}
}

View File

@ -956,5 +956,17 @@
"mayMoveInPlacingPhase_Detail": "Neexistujú žiadne odlišné fázy umiestňovania a presunu, t. j. hráči sa môžu pri každom ťahu rozhodnúť, či chcú umiestniť figúrku na hraciu plochu, alebo presunúť jednu zo svojich figúrok (pokiaľ im zostávajú figúrky na umiestnenie).",
"@mayMoveInPlacingPhase_Detail": {
"description": "There are no distinct placing and moving phases, i.e. the players can decide at every move whether they want to place a piece on the board or move one of their pieces (as long as they have remaining pieces to place)."
},
"drawerColor": "Menu color",
"@drawerColor": {
"description": "Menu color"
},
"drawerTextColor": "Menu text color",
"@drawerTextColor": {
"description": "Menu text color"
},
"drawerBackgroundColor": "Menu background color",
"@drawerBackgroundColor": {
"description": "Menu background color"
}
}

View File

@ -956,5 +956,17 @@
"mayMoveInPlacingPhase_Detail": "Ni ločenih faz postavljanja in premikanja, tj. igralci se lahko pri vsaki potezi odločijo, ali želijo postaviti figuro na igralno ploščo ali premakniti eno od svojih figur (če imajo še preostale figure za postavitev).",
"@mayMoveInPlacingPhase_Detail": {
"description": "There are no distinct placing and moving phases, i.e. the players can decide at every move whether they want to place a piece on the board or move one of their pieces (as long as they have remaining pieces to place)."
},
"drawerColor": "Menu color",
"@drawerColor": {
"description": "Menu color"
},
"drawerTextColor": "Menu text color",
"@drawerTextColor": {
"description": "Menu text color"
},
"drawerBackgroundColor": "Menu background color",
"@drawerBackgroundColor": {
"description": "Menu background color"
}
}

View File

@ -956,5 +956,17 @@
"mayMoveInPlacingPhase_Detail": "Nuk ka faza të dallueshme të vendosjes dhe lëvizjes, d.m.th. lojtarët mund të vendosin në çdo lëvizje nëse duan të vendosin një copë në tabelë ose të zhvendosin një nga pjesët e tyre (për sa kohë që kanë pjesët e mbetura për t'u vendosur).",
"@mayMoveInPlacingPhase_Detail": {
"description": "There are no distinct placing and moving phases, i.e. the players can decide at every move whether they want to place a piece on the board or move one of their pieces (as long as they have remaining pieces to place)."
},
"drawerColor": "Menu color",
"@drawerColor": {
"description": "Menu color"
},
"drawerTextColor": "Menu text color",
"@drawerTextColor": {
"description": "Menu text color"
},
"drawerBackgroundColor": "Menu background color",
"@drawerBackgroundColor": {
"description": "Menu background color"
}
}

View File

@ -956,5 +956,17 @@
"mayMoveInPlacingPhase_Detail": "Не постоје различите фазе постављања и померања, тј. Играчи могу при сваком потезу да одлуче да ли желе да поставе комад на плочу или да преместе један од својих делова (уколико имају преостале делове за постављање).",
"@mayMoveInPlacingPhase_Detail": {
"description": "There are no distinct placing and moving phases, i.e. the players can decide at every move whether they want to place a piece on the board or move one of their pieces (as long as they have remaining pieces to place)."
},
"drawerColor": "Menu color",
"@drawerColor": {
"description": "Menu color"
},
"drawerTextColor": "Menu text color",
"@drawerTextColor": {
"description": "Menu text color"
},
"drawerBackgroundColor": "Menu background color",
"@drawerBackgroundColor": {
"description": "Menu background color"
}
}

View File

@ -956,5 +956,17 @@
"mayMoveInPlacingPhase_Detail": "Det finns inga separata placerings- och flyttningsfaser, dvs. spelarna kan vid varje drag bestämma om de vill placera en pjäs på brädet eller flytta en av sina pjäser (så länge de har kvarvarande pjäser att placera).",
"@mayMoveInPlacingPhase_Detail": {
"description": "There are no distinct placing and moving phases, i.e. the players can decide at every move whether they want to place a piece on the board or move one of their pieces (as long as they have remaining pieces to place)."
},
"drawerColor": "Menu color",
"@drawerColor": {
"description": "Menu color"
},
"drawerTextColor": "Menu text color",
"@drawerTextColor": {
"description": "Menu text color"
},
"drawerBackgroundColor": "Menu background color",
"@drawerBackgroundColor": {
"description": "Menu background color"
}
}

View File

@ -956,5 +956,17 @@
"mayMoveInPlacingPhase_Detail": "ప్రత్యేకమైన ఉంచడం మరియు కదిలే దశలు లేవు, అనగా, ఆటగాళ్ళు ప్రతి కదలికలో బోర్డు మీద ఒక భాగాన్ని ఉంచాలనుకుంటున్నారా లేదా వారి ముక్కలలో ఒకదాన్ని తరలించాలా అని నిర్ణయించుకోవచ్చు (వారు ఉంచడానికి మిగిలిన ముక్కలు ఉన్నంత వరకు).",
"@mayMoveInPlacingPhase_Detail": {
"description": "There are no distinct placing and moving phases, i.e. the players can decide at every move whether they want to place a piece on the board or move one of their pieces (as long as they have remaining pieces to place)."
},
"drawerColor": "Menu color",
"@drawerColor": {
"description": "Menu color"
},
"drawerTextColor": "Menu text color",
"@drawerTextColor": {
"description": "Menu text color"
},
"drawerBackgroundColor": "Menu background color",
"@drawerBackgroundColor": {
"description": "Menu background color"
}
}

View File

@ -956,5 +956,17 @@
"mayMoveInPlacingPhase_Detail": "ไม่มีขั้นตอนการวางและการย้ายที่ชัดเจน กล่าวคือ ผู้เล่นสามารถตัดสินใจได้ทุกการเคลื่อนไหวว่าต้องการวางชิ้นส่วนบนกระดานหรือย้ายชิ้นส่วนของตนชิ้นใดชิ้นหนึ่ง (ตราบใดที่ยังมีชิ้นส่วนที่เหลือให้วาง)",
"@mayMoveInPlacingPhase_Detail": {
"description": "There are no distinct placing and moving phases, i.e. the players can decide at every move whether they want to place a piece on the board or move one of their pieces (as long as they have remaining pieces to place)."
},
"drawerColor": "Menu color",
"@drawerColor": {
"description": "Menu color"
},
"drawerTextColor": "Menu text color",
"@drawerTextColor": {
"description": "Menu text color"
},
"drawerBackgroundColor": "Menu background color",
"@drawerBackgroundColor": {
"description": "Menu background color"
}
}

View File

@ -956,5 +956,17 @@
"mayMoveInPlacingPhase_Detail": "Belirgin bir yerleştirme ve taşıma aşamaları yoktur, yani oyuncular her hamlede tahtaya bir taş yerleştirmek mi yoksa taşlarından birini hareket ettirmek mi (yerleştirecekleri kalan taşları olduğu sürece) karar verebilirler.",
"@mayMoveInPlacingPhase_Detail": {
"description": "There are no distinct placing and moving phases, i.e. the players can decide at every move whether they want to place a piece on the board or move one of their pieces (as long as they have remaining pieces to place)."
},
"drawerColor": "Menu color",
"@drawerColor": {
"description": "Menu color"
},
"drawerTextColor": "Menu text color",
"@drawerTextColor": {
"description": "Menu text color"
},
"drawerBackgroundColor": "Menu background color",
"@drawerBackgroundColor": {
"description": "Menu background color"
}
}

View File

@ -956,5 +956,17 @@
"mayMoveInPlacingPhase_Detail": "Alohida joylashtirish va harakatlanish bosqichlari mavjud emas, ya'ni o'yinchilar har bir harakatda taxtaga biror qism qo'yishni xohlaydilarmi yoki ularning qismlaridan birini ko'chirishni xohlaydilarmi (agar ular joylashtiriladigan qoldiqlari bo'lsa).",
"@mayMoveInPlacingPhase_Detail": {
"description": "There are no distinct placing and moving phases, i.e. the players can decide at every move whether they want to place a piece on the board or move one of their pieces (as long as they have remaining pieces to place)."
},
"drawerColor": "Menu color",
"@drawerColor": {
"description": "Menu color"
},
"drawerTextColor": "Menu text color",
"@drawerTextColor": {
"description": "Menu text color"
},
"drawerBackgroundColor": "Menu background color",
"@drawerBackgroundColor": {
"description": "Menu background color"
}
}

View File

@ -956,5 +956,17 @@
"mayMoveInPlacingPhase_Detail": "Không có ranh giới nghiêm ngặt giữa sân khấu xích đu và sân khấu đi bộ. Tức là người chơi có thể quyết định ra quân hay di chuyển trong mỗi nước đi (miễn là còn lại quân cờ để thực hiện một nước đi).",
"@mayMoveInPlacingPhase_Detail": {
"description": "There are no distinct placing and moving phases, i.e. the players can decide at every move whether they want to place a piece on the board or move one of their pieces (as long as they have remaining pieces to place)."
},
"drawerColor": "Menu color",
"@drawerColor": {
"description": "Menu color"
},
"drawerTextColor": "Menu text color",
"@drawerTextColor": {
"description": "Menu text color"
},
"drawerBackgroundColor": "Menu background color",
"@drawerBackgroundColor": {
"description": "Menu background color"
}
}

View File

@ -956,5 +956,17 @@
"mayMoveInPlacingPhase_Detail": "摆子阶段和走子阶段无严格界限。即,玩家可以在每一步棋中决定是要摆子还是走子 (只要还有剩余的棋子可以摆子)。",
"@mayMoveInPlacingPhase_Detail": {
"description": "There are no distinct placing and moving phases, i.e. the players can decide at every move whether they want to place a piece on the board or move one of their pieces (as long as they have remaining pieces to place)."
},
"drawerColor": "菜单颜色",
"@drawerColor": {
"description": "Menu color"
},
"drawerTextColor": "菜单文字颜色",
"@drawerTextColor": {
"description": "Menu text color"
},
"drawerBackgroundColor": "菜单背景颜色",
"@drawerBackgroundColor": {
"description": "Menu background color"
}
}

View File

@ -956,5 +956,17 @@
"mayMoveInPlacingPhase_Detail": "擺子階段和走子階段無嚴格界限。即,玩家可以在每一步棋中決定是要擺子還是走子 (只要還有剩餘的棋子可以擺子)。",
"@mayMoveInPlacingPhase_Detail": {
"description": "There are no distinct placing and moving phases, i.e. the players can decide at every move whether they want to place a piece on the board or move one of their pieces (as long as they have remaining pieces to place)."
},
"drawerColor": "菜单颜色",
"@drawerColor": {
"description": "Menu color"
},
"drawerTextColor": "菜单文字颜色",
"@drawerTextColor": {
"description": "Menu text color"
},
"drawerBackgroundColor": "菜单背景颜色",
"@drawerBackgroundColor": {
"description": "Menu background color"
}
}

View File

@ -17,6 +17,7 @@
*/
import 'package:flutter/material.dart';
import 'package:sanmill/common/config.dart';
import 'package:sanmill/l10n/resources.dart';
import 'package:sanmill/style/app_theme.dart';
import 'package:sanmill/widgets/home_drawer.dart';
@ -216,7 +217,7 @@ class _DrawerUserControllerState extends State<DrawerUserController>
//full-screen Width with widget.screenView
child: Container(
decoration: BoxDecoration(
color: AppTheme.drawerColor,
color: Color(Config.drawerColor),
boxShadow: <BoxShadow>[
BoxShadow(
color: AppTheme.drawerBoxerShadowColor, blurRadius: 24),
@ -229,7 +230,7 @@ class _DrawerUserControllerState extends State<DrawerUserController>
);
return Scaffold(
backgroundColor: AppTheme.drawerColor,
backgroundColor: Color(Config.drawerColor),
body: SingleChildScrollView(
controller: scrollController,
scrollDirection: Axis.horizontal,

View File

@ -226,7 +226,7 @@ class _HomeDrawerState extends State<HomeDrawer> {
*/
var scaffold = Scaffold(
backgroundColor: AppTheme.drawerBackgroundColor,
backgroundColor: Color(Config.drawerBackgroundColor),
body: Column(
crossAxisAlignment: CrossAxisAlignment.stretch,
mainAxisAlignment: MainAxisAlignment.start,
@ -292,7 +292,7 @@ class _HomeDrawerState extends State<HomeDrawer> {
var listItemIcon = Icon(listItem.icon!.icon,
color: widget.screenIndex == listItem.index
? AppTheme.drawerHighlightIconColor
: AppTheme.drawerIconColor);
: Color(Config.drawerTextColor));
var stack = Stack(
children: <Widget>[
@ -318,7 +318,7 @@ class _HomeDrawerState extends State<HomeDrawer> {
fontSize: Config.fontSize,
color: widget.screenIndex == listItem.index
? AppTheme.drawerHighlightTextColor
: AppTheme.drawerTextColor,
: Color(Config.drawerTextColor),
),
),
],

View File

@ -59,6 +59,9 @@ class _PersonalizationSettingsPageState
S.of(context).whitePieceColor: Config.whitePieceColor,
S.of(context).blackPieceColor: Config.blackPieceColor,
S.of(context).messageColor: Config.messageColor,
S.of(context).drawerColor: Config.drawerColor,
S.of(context).drawerBackgroundColor: Config.drawerBackgroundColor,
S.of(context).drawerTextColor: Config.drawerTextColor,
};
AlertDialog alert = AlertDialog(
@ -100,6 +103,12 @@ class _PersonalizationSettingsPageState
Config.blackPieceColor = pickerColor.value;
} else if (colorString == S.of(context).messageColor) {
Config.messageColor = pickerColor.value;
} else if (colorString == S.of(context).drawerColor) {
Config.drawerColor = pickerColor.value;
} else if (colorString == S.of(context).drawerBackgroundColor) {
Config.drawerBackgroundColor = pickerColor.value;
} else if (colorString == S.of(context).drawerTextColor) {
Config.drawerTextColor = pickerColor.value;
}
Config.save();
@ -475,6 +484,27 @@ class _PersonalizationSettingsPageState
trailingColor: Config.messageColor,
onTap: () => showColorDialog(S.of(context).messageColor),
),
ListItemDivider(),
SettingsListTile(
context: context,
titleString: S.of(context).drawerColor,
trailingColor: Config.drawerColor,
onTap: () => showColorDialog(S.of(context).drawerColor),
),
ListItemDivider(),
SettingsListTile(
context: context,
titleString: S.of(context).drawerBackgroundColor,
trailingColor: Config.drawerBackgroundColor,
onTap: () => showColorDialog(S.of(context).drawerBackgroundColor),
),
ListItemDivider(),
SettingsListTile(
context: context,
titleString: S.of(context).drawerTextColor,
trailingColor: Config.drawerTextColor,
onTap: () => showColorDialog(S.of(context).drawerTextColor),
),
],
),
];