From 034ca60cada00ed3405a874c73f3ace34df7b606 Mon Sep 17 00:00:00 2001 From: Yasien Mac Mini Date: Thu, 16 Apr 2026 13:43:00 +0200 Subject: [PATCH] Update MIH Red to deeper red --- CHANGELOG.md | 5 ++++- example/lib/main.dart | 21 ++++++++++++--------- example/pubspec.lock | 2 +- lib/src/mih_colors.dart | 2 +- pubspec.yaml | 2 +- 5 files changed, 19 insertions(+), 13 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f58697a..701b6f0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,9 +2,12 @@ All notable changes to this project will be documented in this file. +## 0.0.3 + +* Update Mih Color Red to a deeper red + ## 0.0.2 -### Initial Release Usability and Bug Fixes * Add support for all platforms. * Remove ThemeDate dependancy on mih_package_toolkit widgets. diff --git a/example/lib/main.dart b/example/lib/main.dart index 04eb3bd..3727b55 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -49,7 +49,7 @@ class _ExampleMihPackageState extends State { Widget actionButton() { return MihPackageAction( iconColor: MihColors.secondary(), - icon: Icon(Icons.arrow_back), + icon: Icon(MihIcons.mihLogo), iconSize: 35, onTap: () { Navigator.pop(context); @@ -86,15 +86,18 @@ class _ExampleMihPackageState extends State { return [ MihPackageToolBody( backgroundColor: MihColors.primary(), - bodyItem: Center( - child: Text( - "Tool Body One", - style: TextStyle( - color: MihColors.secondary(), - fontSize: 25, - fontWeight: FontWeight.bold, + bodyItem: Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Text( + "Tool Body One", + style: TextStyle( + color: MihColors.secondary(), + fontSize: 25, + fontWeight: FontWeight.bold, + ), ), - ), + ], ), ), MihPackageToolBody( diff --git a/example/pubspec.lock b/example/pubspec.lock index 3e0a7e9..a830758 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -209,7 +209,7 @@ packages: path: ".." relative: true source: path - version: "0.0.2" + version: "0.0.3" path: dependency: transitive description: diff --git a/lib/src/mih_colors.dart b/lib/src/mih_colors.dart index 06b8595..5ea65e2 100644 --- a/lib/src/mih_colors.dart +++ b/lib/src/mih_colors.dart @@ -80,7 +80,7 @@ class MihColors { /// Semantic red color typically used for error states, warnings, or deletions. static Color red({bool? darkMode}) { if (darkMode == true || darkMode == null) { - return const Color(0xffD87E8B); + return const Color(0xffdb5368); } else { return const Color(0xffbb3d4f); } diff --git a/pubspec.yaml b/pubspec.yaml index 599945a..efbb554 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: mih_package_toolkit description: "A comprehensive UI toolkit and utility library for building consistent MIH Packages within the MIH Project ecosystem." -version: 0.0.2 +version: 0.0.3 homepage: https://git.mzansi-innovation-hub.co.za/yaso_meth/mih_package_toolkit repository: https://git.mzansi-innovation-hub.co.za/yaso_meth/mih_package_toolkit issue_tracker: https://git.mzansi-innovation-hub.co.za/yaso_meth/mih_package_toolkit/issues