From af9b9b4e1f506b676a3bfd90ee8174a2cceaf8b7 Mon Sep 17 00:00:00 2001 From: ggurdin <46800240+ggurdin@users.noreply.github.com> Date: Wed, 18 Feb 2026 09:45:34 -0500 Subject: [PATCH] chore: brighten igc underlines (#5736) --- .../choreographer/igc/replacement_type_enum.dart | 10 +++++----- .../text_editing/pangea_text_controller.dart | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/pangea/choreographer/igc/replacement_type_enum.dart b/lib/pangea/choreographer/igc/replacement_type_enum.dart index 65272ed15..b258ee9b4 100644 --- a/lib/pangea/choreographer/igc/replacement_type_enum.dart +++ b/lib/pangea/choreographer/igc/replacement_type_enum.dart @@ -262,24 +262,24 @@ extension SpanDataTypeEnumExt on ReplacementTypeEnum { Color underlineColor() { // IT start and auto-apply types use primary color if (this == ReplacementTypeEnum.itStart || isAutoApply) { - return AppConfig.primaryColor.withAlpha(180); + return AppConfig.primaryColor; } // Grammar errors use warning/orange if (isGrammarType) { - return AppConfig.warning.withAlpha(180); + return AppConfig.warning; } // Word choice uses blue if (isWordChoiceType) { - return Colors.blue.withAlpha(180); + return Colors.blue; } // Style and fluency use teal switch (this) { case ReplacementTypeEnum.style: case ReplacementTypeEnum.fluency: - return Colors.teal.withAlpha(180); + return Colors.teal; default: // Other/unknown use error color - return AppConfig.error.withAlpha(180); + return AppConfig.error; } } diff --git a/lib/pangea/choreographer/text_editing/pangea_text_controller.dart b/lib/pangea/choreographer/text_editing/pangea_text_controller.dart index 4a8920c74..940b92bd9 100644 --- a/lib/pangea/choreographer/text_editing/pangea_text_controller.dart +++ b/lib/pangea/choreographer/text_editing/pangea_text_controller.dart @@ -35,7 +35,7 @@ class PangeaTextController extends TextEditingController { Color _underlineColor(PangeaMatch match) { // Automatic corrections use primary color if (match.status == PangeaMatchStatusEnum.automatic) { - return AppConfig.primaryColor.withAlpha(180); + return AppConfig.primaryColor; } // Use type-based coloring @@ -49,7 +49,7 @@ class PangeaTextController extends TextEditingController { ) { double opacityFactor = 1.0; if (!isOpenMatch) { - opacityFactor = 0.2; + opacityFactor = 0.4; } final alpha = (255 * opacityFactor).round();