diff --git a/assets/skins/default_indicator_report_off.png b/assets/skins/default_indicator_report_off.png index 94885fb6c5320d9b8543a3f9c886faa150ad1388..6831d939bff177535dded0081ced9de3d57b2244 100644 Binary files a/assets/skins/default_indicator_report_off.png and b/assets/skins/default_indicator_report_off.png differ diff --git a/assets/skins/default_indicator_report_on.png b/assets/skins/default_indicator_report_on.png index f0327ff57faf55ec85294798dfd6ab2e62cb6b43..24a23cd2a5b9cdeb48d5be3ea88833f5e5ba34e0 100644 Binary files a/assets/skins/default_indicator_report_on.png and b/assets/skins/default_indicator_report_on.png differ diff --git a/assets/skins/default_indicator_walk_off.png b/assets/skins/default_indicator_walk_off.png index 8e04eec45415ae55e6bab1bae53be4b3ef1685a3..9f6ae129467f999e2b7a0a1e04dc4c96c593080c 100644 Binary files a/assets/skins/default_indicator_walk_off.png and b/assets/skins/default_indicator_walk_off.png differ diff --git a/assets/skins/default_indicator_walk_on.png b/assets/skins/default_indicator_walk_on.png index a927a194c2bdff698fd0b45aab1abbff0f7137a7..5709ef9d10010a2318842a3048575b4ad9764344 100644 Binary files a/assets/skins/default_indicator_walk_on.png and b/assets/skins/default_indicator_walk_on.png differ diff --git a/fastlane/metadata/android/en-US/changelogs/48.txt b/fastlane/metadata/android/en-US/changelogs/48.txt new file mode 100644 index 0000000000000000000000000000000000000000..567e2152b8a050ea148ac5c01704d306ec390603 --- /dev/null +++ b/fastlane/metadata/android/en-US/changelogs/48.txt @@ -0,0 +1 @@ +Improve some UI. diff --git a/fastlane/metadata/android/fr-FR/changelogs/48.txt b/fastlane/metadata/android/fr-FR/changelogs/48.txt new file mode 100644 index 0000000000000000000000000000000000000000..517652a7ae85d82f9e589d82d06a5cf495cdd08b --- /dev/null +++ b/fastlane/metadata/android/fr-FR/changelogs/48.txt @@ -0,0 +1 @@ +Améliorations visuelles. diff --git a/lib/ui/widgets/game/mode_indicator_report.dart b/lib/ui/widgets/game/mode_indicator_report.dart index 492e64317b1bd89ea9889c74c88148c9d98e3805..d9744d0578a79bd5b94c55f31b307dc8295b9f44 100644 --- a/lib/ui/widgets/game/mode_indicator_report.dart +++ b/lib/ui/widgets/game/mode_indicator_report.dart @@ -15,8 +15,10 @@ class GameModeIndicatorReport extends StatelessWidget { final String skin = currentActivity.globalSettings.skin; final String reportModeSuffix = currentActivity.reportMode ? 'on' : 'off'; + final Color buttonColor = currentActivity.reportMode ? Colors.amber : Colors.grey; - return TextButton( + return StyledButton( + color: buttonColor, child: Image( image: AssetImage('assets/skins/${skin}_indicator_report_$reportModeSuffix.png'), fit: BoxFit.fill, diff --git a/lib/ui/widgets/game/mode_indicator_walk.dart b/lib/ui/widgets/game/mode_indicator_walk.dart index 6c40f043ae1c30fc1579d21d6745ff1672bf0709..1b966e9b80145f5ce9341dadd21a2a54df52ad56 100644 --- a/lib/ui/widgets/game/mode_indicator_walk.dart +++ b/lib/ui/widgets/game/mode_indicator_walk.dart @@ -15,8 +15,10 @@ class GameModeIndicatorWalk extends StatelessWidget { final String skin = currentActivity.globalSettings.skin; final String reportModeSuffix = currentActivity.reportMode ? 'off' : 'on'; + final Color buttonColor = currentActivity.reportMode ? Colors.grey : Colors.amber; - return TextButton( + return StyledButton( + color: buttonColor, child: Image( image: AssetImage('assets/skins/${skin}_indicator_walk_$reportModeSuffix.png'), fit: BoxFit.fill, diff --git a/lib/ui/widgets/game/mode_toggle.dart b/lib/ui/widgets/game/mode_toggle.dart index 8ea20c75b3b2f4c2b6c5cb0ed86f449b711752a4..1d4003251b4fb1451cc659a3055ced47a2876d4b 100644 --- a/lib/ui/widgets/game/mode_toggle.dart +++ b/lib/ui/widgets/game/mode_toggle.dart @@ -25,6 +25,7 @@ class ToggleGameMode extends StatelessWidget { return Table( defaultColumnWidth: const IntrinsicColumnWidth(), + defaultVerticalAlignment: TableCellVerticalAlignment.middle, children: [ TableRow( children: [ diff --git a/lib/ui/widgets/indicators/indicator_top.dart b/lib/ui/widgets/indicators/indicator_top.dart index 04a14e8b0cbd89c81871634246b397b3f2563f19..1f1bc4f5fed8a1a0e8b5b2172591257ef3deb341 100644 --- a/lib/ui/widgets/indicators/indicator_top.dart +++ b/lib/ui/widgets/indicators/indicator_top.dart @@ -17,7 +17,9 @@ class TopIndicator extends StatelessWidget { final int flaggedCellsCount = currentActivity.countFlaggedCells(); final int minesCount = currentActivity.minesCount; - const double blockSize = 40; + const double blockSize = 30; + + final blockWidth = MediaQuery.of(context).size.width / 4; final Image flagIconBlock = Image( image: AssetImage('assets/skins/${skin}_tile_flag.png'), @@ -48,6 +50,36 @@ class TopIndicator extends StatelessWidget { ), ); + final Widget flagsWidget = StyledContainer( + borderWidth: 8, + child: SizedBox( + width: blockWidth, + child: Row( + mainAxisAlignment: MainAxisAlignment.center, + crossAxisAlignment: CrossAxisAlignment.center, + children: [ + markedMinesCountBlock, + flagIconBlock, + ], + ), + ), + ); + + final Widget minesWidget = StyledContainer( + borderWidth: 8, + child: SizedBox( + width: blockWidth, + child: Row( + mainAxisAlignment: MainAxisAlignment.center, + crossAxisAlignment: CrossAxisAlignment.center, + children: [ + mineIconBlock, + placedMinesCountBlock, + ], + ), + ), + ); + return Column( mainAxisAlignment: MainAxisAlignment.center, crossAxisAlignment: CrossAxisAlignment.center, @@ -56,11 +88,9 @@ class TopIndicator extends StatelessWidget { mainAxisAlignment: MainAxisAlignment.center, crossAxisAlignment: CrossAxisAlignment.center, children: [ - markedMinesCountBlock, - flagIconBlock, + flagsWidget, const SizedBox(width: blockSize * 2), - mineIconBlock, - placedMinesCountBlock, + minesWidget, ], ) ], diff --git a/pubspec.yaml b/pubspec.yaml index b90353766a50d91812ee2c267110310948b6488e..fd987d63882360b2ac205e60baa7484860ba6582 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -3,7 +3,7 @@ description: A minehunter game application. publish_to: "none" -version: 0.5.0+47 +version: 0.5.1+48 environment: sdk: "^3.0.0" diff --git a/resources/ui/skins/default/indicator_report_off.svg b/resources/ui/skins/default/indicator_report_off.svg index 64fa1a12d757ae01dc226d72a95eec026ce5d9be..149e9ff8481e751338e629384ae185cb70ca88bb 100644 --- a/resources/ui/skins/default/indicator_report_off.svg +++ b/resources/ui/skins/default/indicator_report_off.svg @@ -1,2 +1,2 @@ <?xml version="1.0" encoding="UTF-8"?> -<svg enable-background="new 0 0 100 100" version="1.1" viewBox="0 0 93.665 93.676" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"><rect x="-.0013123" y="-.0014381" width="93.668" height="93.679" ry="0" fill="#9f9f9f" stroke="#fff" stroke-width=".24146"/><path d="m63.009 39.288c-4.4337 1.6324-7.8123 2.7951-10.784 6.4707-2.6476 3.2753-6.4707 4.4107-10.784 2.2516v11.768h-2.1568v-29.117c0-0.5961 0.48232-1.0784 1.0784-1.0784s1.0784 0.48232 1.0784 1.0784c2.3949 3.4817 6.5567 4.2526 10.784 4.3136 6.4707 0.09477 10.784 4.3136 10.784 4.3136zm-19.412 14.306v2.1948c2.5444 0.52025 4.3136 1.624 4.3136 2.911 0 1.7861-3.3806 3.2353-7.5489 3.2353s-7.5489-1.4492-7.5489-3.2353c0-1.287 1.7693-2.3907 4.3136-2.911v-2.1947c-3.9177 0.67828-6.4707 2.5781-6.4707 5.1056 0 3.1742 3.9914 5.392 9.7059 5.392s9.7059-2.2179 9.7059-5.392c0-2.5275-2.5528-4.4273-6.4707-5.1056z" fill="#af0303" stroke="#730202" stroke-linejoin="round" stroke-width=".86919"/></svg> +<svg enable-background="new 0 0 100 100" version="1.1" viewBox="0 0 93.665 93.676" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"><path d="m63.009 39.288c-4.4337 1.6324-7.8123 2.7951-10.784 6.4707-2.6476 3.2753-6.4707 4.4107-10.784 2.2516v11.768h-2.1568v-29.117c0-0.5961 0.48232-1.0784 1.0784-1.0784s1.0784 0.48232 1.0784 1.0784c2.3949 3.4817 6.5567 4.2526 10.784 4.3136 6.4707 0.09477 10.784 4.3136 10.784 4.3136zm-19.412 14.306v2.1948c2.5444 0.52025 4.3136 1.624 4.3136 2.911 0 1.7861-3.3806 3.2353-7.5489 3.2353s-7.5489-1.4492-7.5489-3.2353c0-1.287 1.7693-2.3907 4.3136-2.911v-2.1947c-3.9177 0.67828-6.4707 2.5781-6.4707 5.1056 0 3.1742 3.9914 5.392 9.7059 5.392s9.7059-2.2179 9.7059-5.392c0-2.5275-2.5528-4.4273-6.4707-5.1056z" fill="#af0303" stroke="#730202" stroke-linejoin="round" stroke-width=".86919"/></svg> diff --git a/resources/ui/skins/default/indicator_report_on.svg b/resources/ui/skins/default/indicator_report_on.svg index a72968f26b03ac74be2cb95d67612ba5f4c5bb04..732291b7e75c136db02125c324122fdf2150f3f8 100644 --- a/resources/ui/skins/default/indicator_report_on.svg +++ b/resources/ui/skins/default/indicator_report_on.svg @@ -1,2 +1,2 @@ <?xml version="1.0" encoding="UTF-8"?> -<svg enable-background="new 0 0 100 100" version="1.1" viewBox="0 0 93.665 93.676" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"><rect x="-.0013123" y="-.0014381" width="93.668" height="93.679" ry="0" fill="#ea9c1f" stroke="#fff" stroke-width=".24146"/><path d="m78.682 31.974c-8.7296 3.214-15.381 5.5032-21.232 12.74-5.2129 6.4487-12.74 8.6842-21.232 4.4332v23.169h-4.2465v-57.328c0-1.1736 0.94963-2.1232 2.1232-2.1232 1.1735 0 2.1232 0.94963 2.1232 2.1232 4.7153 6.855 12.91 8.3728 21.232 8.4931 12.74 0.18659 21.232 8.4931 21.232 8.4931zm-38.22 28.168v4.3213c5.0096 1.0243 8.4931 3.1974 8.4931 5.7314 0 3.5167-6.656 6.3699-14.863 6.3699s-14.863-2.8532-14.863-6.3699c0-2.534 3.4834-4.707 8.4931-5.7314v-4.3211c-7.7135 1.3355-12.74 5.076-12.74 10.052 0 6.2497 7.8586 10.616 19.11 10.616s19.11-4.3668 19.11-10.616c0-4.9764-5.0262-8.7168-12.74-10.052z" fill="#af0303" stroke="#730202" stroke-linejoin="round" stroke-width="1.7113"/></svg> +<svg enable-background="new 0 0 100 100" version="1.1" viewBox="0 0 93.665 93.676" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"><path d="m78.682 31.974c-8.7296 3.214-15.381 5.5032-21.232 12.74-5.2129 6.4487-12.74 8.6842-21.232 4.4332v23.169h-4.2465v-57.328c0-1.1736 0.94963-2.1232 2.1232-2.1232 1.1735 0 2.1232 0.94963 2.1232 2.1232 4.7153 6.855 12.91 8.3728 21.232 8.4931 12.74 0.18659 21.232 8.4931 21.232 8.4931zm-38.22 28.168v4.3213c5.0096 1.0243 8.4931 3.1974 8.4931 5.7314 0 3.5167-6.656 6.3699-14.863 6.3699s-14.863-2.8532-14.863-6.3699c0-2.534 3.4834-4.707 8.4931-5.7314v-4.3211c-7.7135 1.3355-12.74 5.076-12.74 10.052 0 6.2497 7.8586 10.616 19.11 10.616s19.11-4.3668 19.11-10.616c0-4.9764-5.0262-8.7168-12.74-10.052z" fill="#af0303" stroke="#730202" stroke-linejoin="round" stroke-width="1.7113"/></svg> diff --git a/resources/ui/skins/default/indicator_walk_off.svg b/resources/ui/skins/default/indicator_walk_off.svg index a8e36126bb8f2f798dd72d2826e6791ae71702d1..e28bb14575dbacc888e0d38c4d2498d1b6421f5c 100644 --- a/resources/ui/skins/default/indicator_walk_off.svg +++ b/resources/ui/skins/default/indicator_walk_off.svg @@ -1,2 +1,2 @@ <?xml version="1.0" encoding="UTF-8"?> -<svg enable-background="new 0 0 100 100" version="1.1" viewBox="0 0 93.665 93.676" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"><rect x="-.0013123" y="-.0014381" width="93.668" height="93.679" ry="0" fill="#9e9e9e" stroke="#fff" stroke-width=".24146"/><g transform="matrix(-.1153 0 0 .1153 66.052 27.65)" fill="#5002b1" image-rendering="optimizeQuality" shape-rendering="geometricPrecision" stroke="#1c014e" stroke-width="11.668"><path class="fil0" d="m236 19 67 91-196 140h-55c1-17 9-33 29-40 17-6 27-15 39-29l20 20c7 7 18-4 11-12l-22-21c4-6 6-12 8-19l26 26c7 7 18-4 11-12l-32-32c2-8 2-16 3-25l27 28c8 7 19-4 12-12l-39-38c0-8-1-15-1-23zm-175 265c-18 4-17 13 4 16 19 3 50 3 70 0 21-3 22-11 4-15l3-2 3-3 6-4 30-21 132-96s9-13 7-21c-1-3-4-9-8-15l-197 142-5 1-56 1c1 5 4 13 7 17zm-14-3c-62 7-36 35 53 33 126-2 81-33 70-28 14 4 21 11-11 18-47 10-119 4-137-6-16-10 27-17 25-17zm87 8c16 2 17 3 0 6-19 3-49 3-68 0-16-2-16-3-1-6 2 2 4 4 6 5l58-2z" fill="#5002b1" stroke="#1c014e" stroke-width="11.668"/></g></svg> +<svg enable-background="new 0 0 100 100" version="1.1" viewBox="0 0 93.665 93.676" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"><g transform="matrix(-.1153 0 0 .1153 66.052 27.65)" fill="#5002b1" image-rendering="optimizeQuality" shape-rendering="geometricPrecision" stroke="#1c014e" stroke-width="11.668"><path class="fil0" d="m236 19 67 91-196 140h-55c1-17 9-33 29-40 17-6 27-15 39-29l20 20c7 7 18-4 11-12l-22-21c4-6 6-12 8-19l26 26c7 7 18-4 11-12l-32-32c2-8 2-16 3-25l27 28c8 7 19-4 12-12l-39-38c0-8-1-15-1-23zm-175 265c-18 4-17 13 4 16 19 3 50 3 70 0 21-3 22-11 4-15l3-2 3-3 6-4 30-21 132-96s9-13 7-21c-1-3-4-9-8-15l-197 142-5 1-56 1c1 5 4 13 7 17zm-14-3c-62 7-36 35 53 33 126-2 81-33 70-28 14 4 21 11-11 18-47 10-119 4-137-6-16-10 27-17 25-17zm87 8c16 2 17 3 0 6-19 3-49 3-68 0-16-2-16-3-1-6 2 2 4 4 6 5l58-2z" fill="#5002b1" stroke="#1c014e" stroke-width="11.668"/></g></svg> diff --git a/resources/ui/skins/default/indicator_walk_on.svg b/resources/ui/skins/default/indicator_walk_on.svg index 6d3783342f08e8ccd4389bdc999b5ba0e9b35c3e..27f71d1b9faa464b313b0b81e41e545b439324d0 100644 --- a/resources/ui/skins/default/indicator_walk_on.svg +++ b/resources/ui/skins/default/indicator_walk_on.svg @@ -1,2 +1,2 @@ <?xml version="1.0" encoding="UTF-8"?> -<svg enable-background="new 0 0 100 100" version="1.1" viewBox="0 0 93.665 93.676" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"><rect x="-.0013123" y="-.0014381" width="93.668" height="93.679" ry="0" fill="#ea9c1f" stroke="#fff" stroke-width=".24146"/><g transform="matrix(-.2362 0 0 .2362 86.205 7.6013)" fill="#5002b1" image-rendering="optimizeQuality" shape-rendering="geometricPrecision" stroke="#1c014e" stroke-width="11.668"><path class="fil0" d="m236 19 67 91-196 140h-55c1-17 9-33 29-40 17-6 27-15 39-29l20 20c7 7 18-4 11-12l-22-21c4-6 6-12 8-19l26 26c7 7 18-4 11-12l-32-32c2-8 2-16 3-25l27 28c8 7 19-4 12-12l-39-38c0-8-1-15-1-23zm-175 265c-18 4-17 13 4 16 19 3 50 3 70 0 21-3 22-11 4-15l3-2 3-3 6-4 30-21 132-96s9-13 7-21c-1-3-4-9-8-15l-197 142-5 1-56 1c1 5 4 13 7 17zm-14-3c-62 7-36 35 53 33 126-2 81-33 70-28 14 4 21 11-11 18-47 10-119 4-137-6-16-10 27-17 25-17zm87 8c16 2 17 3 0 6-19 3-49 3-68 0-16-2-16-3-1-6 2 2 4 4 6 5l58-2z" fill="#5002b1" stroke="#1c014e" stroke-width="11.668"/></g></svg> +<svg enable-background="new 0 0 100 100" version="1.1" viewBox="0 0 93.665 93.676" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"><g transform="matrix(-.2362 0 0 .2362 86.205 7.6013)" fill="#5002b1" image-rendering="optimizeQuality" shape-rendering="geometricPrecision" stroke="#1c014e" stroke-width="11.668"><path class="fil0" d="m236 19 67 91-196 140h-55c1-17 9-33 29-40 17-6 27-15 39-29l20 20c7 7 18-4 11-12l-22-21c4-6 6-12 8-19l26 26c7 7 18-4 11-12l-32-32c2-8 2-16 3-25l27 28c8 7 19-4 12-12l-39-38c0-8-1-15-1-23zm-175 265c-18 4-17 13 4 16 19 3 50 3 70 0 21-3 22-11 4-15l3-2 3-3 6-4 30-21 132-96s9-13 7-21c-1-3-4-9-8-15l-197 142-5 1-56 1c1 5 4 13 7 17zm-14-3c-62 7-36 35 53 33 126-2 81-33 70-28 14 4 21 11-11 18-47 10-119 4-137-6-16-10 27-17 25-17zm87 8c16 2 17 3 0 6-19 3-49 3-68 0-16-2-16-3-1-6 2 2 4 4 6 5l58-2z" fill="#5002b1" stroke="#1c014e" stroke-width="11.668"/></g></svg>