summaryrefslogtreecommitdiff
path: root/src/macos.m
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-09-21 22:17:37 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-09-21 22:17:37 +0300
commit2bf206181e8e3ce6d1b7e899de7c4cc04778a087 (patch)
tree7ab6f85581003b767fe2c94b0fc20902903aceb5 /src/macos.m
parentdac7819e5de1e531a86145257243fde88f924a4e (diff)
LabelWidget: Tuned state colors
Diffstat (limited to 'src/macos.m')
-rw-r--r--src/macos.m12
1 files changed, 3 insertions, 9 deletions
diff --git a/src/macos.m b/src/macos.m
index 24c83aec..53a6da00 100644
--- a/src/macos.m
+++ b/src/macos.m
@@ -529,15 +529,9 @@ enum iColorId removeColorEscapes_String(iString *d) {
529 for (;;) { 529 for (;;) {
530 const char *esc = strchr(cstr_String(d), '\v'); 530 const char *esc = strchr(cstr_String(d), '\v');
531 if (esc) { 531 if (esc) {
532 const char *ptr = esc + 1; 532 const char *endp;
533 color = 0; 533 color = parseEscape_Color(esc, &endp);
534 if (*ptr == '\v') { 534 remove_Block(&d->chars, esc - cstr_String(d), endp - esc);
535 color += asciiExtended_ColorEscape;
536 ptr++;
537 }
538 color += *ptr - asciiBase_ColorEscape;
539 ptr++;
540 remove_Block(&d->chars, esc - cstr_String(d), ptr - esc);
541 } 535 }
542 else break; 536 else break;
543 } 537 }