From b54565d1c314aa258ac4f14473eb54f5a43d5a27 Mon Sep 17 00:00:00 2001 From: Oliver Date: Sun, 16 Apr 2023 22:07:01 +1000 Subject: [PATCH] Dark mode color fix (#318) * Fix custom colors in API forms * update release notes * update build version --- assets/release_notes.md | 5 +++++ lib/api_form.dart | 4 ++-- lib/app_colors.dart | 1 - pubspec.yaml | 2 +- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/assets/release_notes.md b/assets/release_notes.md index e3018f1b..10b280bc 100644 --- a/assets/release_notes.md +++ b/assets/release_notes.md @@ -1,6 +1,11 @@ ## InvenTree App Release Notes --- +### 0.11.3 - April 2023 +--- + +- Fixes text color in dark mode + ### 0.11.2 - April 2023 --- diff --git a/lib/api_form.dart b/lib/api_form.dart index 341d7406..1b723604 100644 --- a/lib/api_form.dart +++ b/lib/api_form.dart @@ -743,7 +743,7 @@ class APIFormField { fontWeight: FontWeight.bold, fontSize: 18, fontFamily: "arial", - color: hasErrors() ? COLOR_DANGER : COLOR_GRAY, + color: hasErrors() ? COLOR_DANGER : null, fontStyle: FontStyle.normal, ); } @@ -751,7 +751,7 @@ class APIFormField { TextStyle _helperStyle() { return TextStyle( fontStyle: FontStyle.italic, - color: hasErrors() ? COLOR_DANGER : COLOR_GRAY, + color: hasErrors() ? COLOR_DANGER : null, ); } diff --git a/lib/app_colors.dart b/lib/app_colors.dart index 2f0395f6..065a86f1 100644 --- a/lib/app_colors.dart +++ b/lib/app_colors.dart @@ -1,6 +1,5 @@ import "dart:ui"; -const Color COLOR_GRAY = Color.fromRGBO(50, 50, 50, 1); const Color COLOR_GRAY_LIGHT = Color.fromRGBO(150, 150, 150, 1); const Color COLOR_CLICK = Color.fromRGBO(150, 120, 100, 0.9); diff --git a/pubspec.yaml b/pubspec.yaml index 91dc1d80..33a60947 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,7 +1,7 @@ name: inventree description: InvenTree stock management -version: 0.11.2+61 +version: 0.11.3+62 environment: sdk: ">=2.16.0 <3.0.0"