Skip to content

Remove hardcoded label faces, let gfm-mode fontify headers#97

Merged
dnouri merged 1 commit intomasterfrom
remove-hardcoded-label-faces
Feb 6, 2026
Merged

Remove hardcoded label faces, let gfm-mode fontify headers#97
dnouri merged 1 commit intomasterfrom
remove-hardcoded-label-faces

Conversation

@dnouri
Copy link
Owner

@dnouri dnouri commented Feb 6, 2026

All custom faces used hardcoded colors that clash with custom themes. Now everything inherits from standard theme-aware faces.

Removed faces (headers now fontified by gfm-mode as setext H1):

  • pi-coding-agent-separator — underline hidden by markdown-hide-markup
  • pi-coding-agent-user-label — was dodger blue
  • pi-coding-agent-assistant-label — was sea green
  • pi-coding-agent-compaction-label — was medium purple

Simplified tool block faces (replaced hardcoded hex backgrounds):

  • tool-block-pending: #2a2a35/#f0f0f5inherit secondary-selection
  • tool-block-success: #2a352a/#f0f5f0inherit diff-added
  • tool-block-error: #352a2a/#f5f0f0inherit diff-removed

Remove pi-coding-agent-user-label (dodger blue),
pi-coding-agent-assistant-label (sea green),
pi-coding-agent-compaction-label (medium purple), and
pi-coding-agent-separator faces. Drop the face parameter from
pi-coding-agent--make-separator — gfm-mode fontifies setext H1
headings via markdown-header-face-1, which every theme customizes.

Replace hardcoded hex backgrounds in tool block faces:
- tool-block-pending: inherit secondary-selection
- tool-block-success: inherit diff-added
- tool-block-error: inherit diff-removed

All colors now come from the active theme.
@dnouri dnouri force-pushed the remove-hardcoded-label-faces branch from 67034cc to f95a07a Compare February 6, 2026 14:40
@dnouri dnouri merged commit e4766ed into master Feb 6, 2026
6 checks passed
@dnouri dnouri deleted the remove-hardcoded-label-faces branch February 6, 2026 14:54
dnouri added a commit that referenced this pull request Feb 25, 2026
Remove pi-coding-agent-user-label (dodger blue),
pi-coding-agent-assistant-label (sea green),
pi-coding-agent-compaction-label (medium purple), and
pi-coding-agent-separator faces. Drop the face parameter from
pi-coding-agent--make-separator — gfm-mode fontifies setext H1
headings via markdown-header-face-1, which every theme customizes.

Replace hardcoded hex backgrounds in tool block faces:
- tool-block-pending: inherit secondary-selection
- tool-block-success: inherit diff-added
- tool-block-error: inherit diff-removed

All colors now come from the active theme.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant