mirror of
https://github.com/moghtech/komodo.git
synced 2026-07-16 15:47:07 -05:00
[PR #1156] [CLOSED] fix: improve ANSI color contrast in dark mode logs #13143
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/moghtech/komodo/pull/1156
Author: @litlmike
Created: 2/6/2026
Status: ❌ Closed
Base:
main← Head:fix-issue-1049📝 Commits (1)
e3c8a20fix: improve ANSI color contrast in dark mode logs📊 Changes
9 files changed (+60 additions, -15 deletions)
View changed files
📝
frontend/src/components/log.tsx(+3 -1)📝
frontend/src/components/resources/action/index.tsx(+3 -1)📝
frontend/src/components/resources/action/info.tsx(+4 -2)📝
frontend/src/components/resources/build/info.tsx(+5 -3)📝
frontend/src/components/resources/procedure/index.tsx(+3 -1)📝
frontend/src/components/resources/resource-sync/info.tsx(+3 -1)📝
frontend/src/components/resources/stack/info.tsx(+3 -1)📝
frontend/src/components/updates/details.tsx(+4 -2)📝
frontend/src/lib/utils.ts(+32 -3)📄 Description
Summary
Fixes #1049 - Dark mode makes colored logs unreadable
Problem
Dark blue ANSI text (#0000AA) was invisible against dark mode backgrounds, making logs with colored output (like Docker build logs, npm logs, etc.) unreadable.
Solution
Added a theme-aware ANSI color palette that automatically adjusts colors based on the current theme:
Key color changes in dark mode:
Changes:
Modified \rontend/src/lib/utils.ts:
Updated all components that display logs:
esource-sync/info.tsx\
Testing
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.