Skip to content

Fixed Accept/Decline and Yes/No button colors to respect the IDE Look and Feel theme (dark themes no longer show clashing hardcoded colors - #6

Merged
oleg68 merged 3 commits into
nbplugins:mainfrom
oleg68:bugfix/button-lf
Apr 10, 2026
Merged

oleg68 merged 3 commits into
nbplugins:mainfrom
oleg68:bugfix/button-lf

Conversation

@oleg68

@oleg68 oleg68 commented Apr 10, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

Oleg Samarin and others added 3 commits April 10, 2026 17:04
Extracted shared UiUtils.applyActionStyle() and icon constants
(ICON_CHECK, ICON_CROSS) into ui/common/UiUtils. Accept/Decline and
Yes/No buttons now use FlatLaf semantic keys (Actions.Green/Red) when
available, falling back to luminance-based dark/light color selection.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Added resolveColor(), getPositiveColor(), getNegativeColor(),
getWarningColor(), and toHex() to UiUtils. applyActionStyle() now
uses these methods. ClaudePromptPanel HTML icon colors replaced with
UiUtils.toHex(UiUtils.get*Color()) — single source of truth for all
theme-aware colors across button backgrounds and HTML icon coloring.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@oleg68
oleg68 merged commit f92e30f into nbplugins:main Apr 10, 2026
3 checks passed
@oleg68
oleg68 deleted the bugfix/button-lf branch April 10, 2026 19:38
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