From 7450e1762f76896f0a18583fc7a29895e1a26e38 Mon Sep 17 00:00:00 2001 From: Fransolet Thomas Date: Wed, 14 Sep 2022 18:00:20 +0200 Subject: [PATCH] Update error color --- .../Section/SubSection/Map/listView_card_geoPoint_images.dart | 2 +- .../Configurations/Section/SubSection/Map/map_config.dart | 2 +- .../Section/SubSection/Menu/listView_card_subSection.dart | 4 ++-- .../Configurations/Section/SubSection/Menu/menu_config.dart | 2 +- .../Section/SubSection/Quizz/quizz_answer_list.dart | 2 +- .../Configurations/Section/SubSection/Quizz/quizz_config.dart | 2 +- .../Section/SubSection/Slider/listView_card_image.dart | 2 +- lib/Screens/Configurations/Section/section_detail_screen.dart | 2 +- lib/Screens/Configurations/configuration_detail_screen.dart | 2 +- lib/Screens/Resources/show_resource_popup.dart | 2 +- lib/constants.dart | 2 +- 11 files changed, 12 insertions(+), 12 deletions(-) diff --git a/lib/Screens/Configurations/Section/SubSection/Map/listView_card_geoPoint_images.dart b/lib/Screens/Configurations/Section/SubSection/Map/listView_card_geoPoint_images.dart index 326c3dc..170e155 100644 --- a/lib/Screens/Configurations/Section/SubSection/Map/listView_card_geoPoint_images.dart +++ b/lib/Screens/Configurations/Section/SubSection/Map/listView_card_geoPoint_images.dart @@ -60,7 +60,7 @@ class _ListViewCardGeoPointImagesState extends State padding: const EdgeInsets.all(8.0), child: Icon( Icons.delete, - color: kPrimaryColor, + color: kError, size: 25.0, ), ) diff --git a/lib/Screens/Configurations/Section/SubSection/Map/map_config.dart b/lib/Screens/Configurations/Section/SubSection/Map/map_config.dart index 13aa859..a2b4f8b 100644 --- a/lib/Screens/Configurations/Section/SubSection/Map/map_config.dart +++ b/lib/Screens/Configurations/Section/SubSection/Map/map_config.dart @@ -242,7 +242,7 @@ class _MapConfigState extends State { }, child: Icon( Icons.delete, - color: kPrimaryColor, + color: kError, size: 20.0, ) ), diff --git a/lib/Screens/Configurations/Section/SubSection/Menu/listView_card_subSection.dart b/lib/Screens/Configurations/Section/SubSection/Menu/listView_card_subSection.dart index 29c6590..6091dd4 100644 --- a/lib/Screens/Configurations/Section/SubSection/Menu/listView_card_subSection.dart +++ b/lib/Screens/Configurations/Section/SubSection/Menu/listView_card_subSection.dart @@ -85,7 +85,7 @@ class _ListViewCardSubSection extends State { padding: const EdgeInsets.all(8.0), child: Icon( Icons.delete, - color: kPrimaryColor, + color: kError, size: 25.0, ), ) @@ -149,7 +149,7 @@ class _ListViewCardSubSection extends State { }, child: Icon( Icons.delete, - color: kPrimaryColor, + color: kPrimaryColorOld, size: 20.0, ) ), diff --git a/lib/Screens/Configurations/Section/SubSection/Menu/menu_config.dart b/lib/Screens/Configurations/Section/SubSection/Menu/menu_config.dart index c97ba6f..a30a6a9 100644 --- a/lib/Screens/Configurations/Section/SubSection/Menu/menu_config.dart +++ b/lib/Screens/Configurations/Section/SubSection/Menu/menu_config.dart @@ -200,7 +200,7 @@ class _MenuConfigState extends State { }, child: Icon( Icons.delete, - color: kPrimaryColor, + color: kError, size: 20.0, ) ), diff --git a/lib/Screens/Configurations/Section/SubSection/Quizz/quizz_answer_list.dart b/lib/Screens/Configurations/Section/SubSection/Quizz/quizz_answer_list.dart index f1e0035..acf1099 100644 --- a/lib/Screens/Configurations/Section/SubSection/Quizz/quizz_answer_list.dart +++ b/lib/Screens/Configurations/Section/SubSection/Quizz/quizz_answer_list.dart @@ -211,7 +211,7 @@ class _QuizzResponseListState extends State { padding: const EdgeInsets.all(8.0), child: Icon( Icons.delete, - color: kPrimaryColor, + color: kError, size: 25.0, ), ) diff --git a/lib/Screens/Configurations/Section/SubSection/Quizz/quizz_config.dart b/lib/Screens/Configurations/Section/SubSection/Quizz/quizz_config.dart index 0efcdeb..e83673c 100644 --- a/lib/Screens/Configurations/Section/SubSection/Quizz/quizz_config.dart +++ b/lib/Screens/Configurations/Section/SubSection/Quizz/quizz_config.dart @@ -329,7 +329,7 @@ class _QuizzConfigState extends State { padding: const EdgeInsets.all(8.0), child: Icon( Icons.delete, - color: kPrimaryColorOld, + color: kError, size: 25.0, ), ) diff --git a/lib/Screens/Configurations/Section/SubSection/Slider/listView_card_image.dart b/lib/Screens/Configurations/Section/SubSection/Slider/listView_card_image.dart index 0ec3133..f4b6c88 100644 --- a/lib/Screens/Configurations/Section/SubSection/Slider/listView_card_image.dart +++ b/lib/Screens/Configurations/Section/SubSection/Slider/listView_card_image.dart @@ -105,7 +105,7 @@ class _ListViewCard extends State { padding: const EdgeInsets.all(8.0), child: Icon( Icons.delete, - color: kPrimaryColor, + color: kError, size: 25.0, ), ) diff --git a/lib/Screens/Configurations/Section/section_detail_screen.dart b/lib/Screens/Configurations/Section/section_detail_screen.dart index a06bcce..6d94352 100644 --- a/lib/Screens/Configurations/Section/section_detail_screen.dart +++ b/lib/Screens/Configurations/Section/section_detail_screen.dart @@ -265,7 +265,7 @@ class _SectionDetailScreenState extends State { child: RoundedButton( text: "Supprimer", icon: Icons.delete, - color: kPrimaryColorOld, + color: kError, textColor: Colors.white, fontSize: 15, press: () { diff --git a/lib/Screens/Configurations/configuration_detail_screen.dart b/lib/Screens/Configurations/configuration_detail_screen.dart index 858fe52..e3e941a 100644 --- a/lib/Screens/Configurations/configuration_detail_screen.dart +++ b/lib/Screens/Configurations/configuration_detail_screen.dart @@ -319,7 +319,7 @@ class _ConfigurationDetailScreenState extends State { child: RoundedButton( text: "Supprimer", icon: Icons.delete, - color: kPrimaryColorOld, + color: kError, textColor: Colors.white, fontSize: 15, press: () { diff --git a/lib/Screens/Resources/show_resource_popup.dart b/lib/Screens/Resources/show_resource_popup.dart index 12db1c9..4954d42 100644 --- a/lib/Screens/Resources/show_resource_popup.dart +++ b/lib/Screens/Resources/show_resource_popup.dart @@ -70,7 +70,7 @@ void showResource(ResourceDTO resourceDTO, AppContext appContext, BuildContext c child: RoundedButton( text: "Supprimer", icon: Icons.delete, - color: kPrimaryColorOld, + color: kError, textColor: kWhite, press: () { delete(resourceDTO, appContext, context); diff --git a/lib/constants.dart b/lib/constants.dart index 7f79bf7..b15ddb8 100644 --- a/lib/constants.dart +++ b/lib/constants.dart @@ -7,7 +7,7 @@ const kBodyTextColor = Color(0xFF4B4B4B); // TODO const kBackgroundColor = Color(0xFFf5f5f7); const kPrimaryColor = Color(0xFF308aae); -const kPrimaryColorOld = Color(0xFFCA413F); +const kError = Color(0xFFCA413F); const kTextLightColor = Color(0xFFFCFDFD); const kSecond = Color(0xFFC2C9D6); const kWhite = Color(0xFFFFFFFF);