From 0956ee58dab91b57023dddf403cb7aa780eead34 Mon Sep 17 00:00:00 2001 From: Yasien Mac Mini Date: Thu, 12 Jun 2025 12:58:16 +0200 Subject: [PATCH] align button color Pat prof --- .../pat_profile/components/claim_statement_window.dart | 2 +- .../pat_profile/package_tools/patient_consultation.dart | 5 ++--- .../pat_profile/package_tools/patient_documents.dart | 2 +- .../patient_profile/pat_profile/patient_add.dart | 2 +- .../patient_profile/pat_profile/patient_edit.dart | 7 +++---- 5 files changed, 8 insertions(+), 10 deletions(-) diff --git a/Frontend/lib/mih_packages/patient_profile/pat_profile/components/claim_statement_window.dart b/Frontend/lib/mih_packages/patient_profile/pat_profile/components/claim_statement_window.dart index 03c2cfab..e5e3b2a7 100644 --- a/Frontend/lib/mih_packages/patient_profile/pat_profile/components/claim_statement_window.dart +++ b/Frontend/lib/mih_packages/patient_profile/pat_profile/components/claim_statement_window.dart @@ -384,7 +384,7 @@ class _ClaimStatementWindowState extends State { } }, buttonColor: - MzanziInnovationHub.of(context)!.theme.secondaryColor(), + MzanziInnovationHub.of(context)!.theme.successColor(), width: 300, child: Text( "Generate", diff --git a/Frontend/lib/mih_packages/patient_profile/pat_profile/package_tools/patient_consultation.dart b/Frontend/lib/mih_packages/patient_profile/pat_profile/package_tools/patient_consultation.dart index 32565f00..991de788 100644 --- a/Frontend/lib/mih_packages/patient_profile/pat_profile/package_tools/patient_consultation.dart +++ b/Frontend/lib/mih_packages/patient_profile/pat_profile/package_tools/patient_consultation.dart @@ -210,9 +210,8 @@ class _PatientConsultationState extends State { MihAlertServices().formNotFilledCompletely(context); } }, - buttonColor: MzanziInnovationHub.of(context)! - .theme - .secondaryColor(), + buttonColor: + MzanziInnovationHub.of(context)!.theme.successColor(), width: 300, child: Text( "Add Note", diff --git a/Frontend/lib/mih_packages/patient_profile/pat_profile/package_tools/patient_documents.dart b/Frontend/lib/mih_packages/patient_profile/pat_profile/package_tools/patient_documents.dart index 6bc85134..45b80bb8 100644 --- a/Frontend/lib/mih_packages/patient_profile/pat_profile/package_tools/patient_documents.dart +++ b/Frontend/lib/mih_packages/patient_profile/pat_profile/package_tools/patient_documents.dart @@ -392,7 +392,7 @@ class _PatientDocumentsState extends State { } }, buttonColor: - MzanziInnovationHub.of(context)!.theme.secondaryColor(), + MzanziInnovationHub.of(context)!.theme.successColor(), width: 300, child: Text( "Generate", diff --git a/Frontend/lib/mih_packages/patient_profile/pat_profile/patient_add.dart b/Frontend/lib/mih_packages/patient_profile/pat_profile/patient_add.dart index b4664261..a35c3a59 100644 --- a/Frontend/lib/mih_packages/patient_profile/pat_profile/patient_add.dart +++ b/Frontend/lib/mih_packages/patient_profile/pat_profile/patient_add.dart @@ -448,7 +448,7 @@ class _AddPatientState extends State { } }, buttonColor: - MzanziInnovationHub.of(context)!.theme.secondaryColor(), + MzanziInnovationHub.of(context)!.theme.successColor(), width: 300, child: Text( "Add", diff --git a/Frontend/lib/mih_packages/patient_profile/pat_profile/patient_edit.dart b/Frontend/lib/mih_packages/patient_profile/pat_profile/patient_edit.dart index e59e5d01..89611c52 100644 --- a/Frontend/lib/mih_packages/patient_profile/pat_profile/patient_edit.dart +++ b/Frontend/lib/mih_packages/patient_profile/pat_profile/patient_edit.dart @@ -280,9 +280,8 @@ class _EditPatientState extends State { ), MihButton( onPressed: deletePatientApiCall, - buttonColor: MzanziInnovationHub.of(context)! - .theme - .secondaryColor(), + buttonColor: + MzanziInnovationHub.of(context)!.theme.errorColor(), width: 300, child: Text( "Delete", @@ -662,7 +661,7 @@ class _EditPatientState extends State { } }, buttonColor: - MzanziInnovationHub.of(context)!.theme.secondaryColor(), + MzanziInnovationHub.of(context)!.theme.successColor(), width: 300, child: Text( "Update",