chore: brighten igc underlines (#5736)

This commit is contained in:
ggurdin 2026-02-18 09:45:34 -05:00 committed by GitHub
parent ba054a2557
commit af9b9b4e1f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 7 deletions

View file

@ -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;
}
}

View file

@ -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();