-
Notifications
You must be signed in to change notification settings - Fork 0
Fix IDE plugin UI: dark mode support and markdown rendering #28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Co-authored-by: Mte90 <403283+Mte90@users.noreply.github.com>
Co-authored-by: Mte90 <403283+Mte90@users.noreply.github.com>
|
@copilot in the chat window the font size is very big for the various messages, also the appear the horizontal scrollbar because the chat messages box are very big |
Co-authored-by: Mte90 <403283+Mte90@users.noreply.github.com>
Fixed in commit 61fd6a1:
|
|
@copilot the problem for the scrollbar is horizontal non vertical, so the box width should be the same of the window otherwise is truncated |
Co-authored-by: Mte90 <403283+Mte90@users.noreply.github.com>
Fixed in commit 5a4a4a6:
|
|
@copilot the problem is the scrollbar horizontally because the content is more long
ideally it should be wrapped and go to the other line to be more readable in the chat ui of the plugin
|
Co-authored-by: Mte90 <403283+Mte90@users.noreply.github.com>
Fixed in commit 4da3559:
|
|
It still not resize the chat messages, I think that the problem is the size of the chat messages that is not a fixed size internally. |
…el max width Co-authored-by: Mte90 <403283+Mte90@users.noreply.github.com>
Fixed in commit be3e58b: The issue was with how
These changes ensure the editor pane uses the actual available viewport width from the scroll pane, rather than trying to guess from parent container. |

Fix UI issues in IDE plugin - COMPLETED ✅
Summary of Changes
1. Dark Mode Support ✅
Replaced all hard-coded
java.awt.Colorvalues with IntelliJ Platform's theme-awareJBColor:JBColor.namedColor("EditorPane.inactiveBackground", JBColor(0xE6F0FF, 0x2D3239))JBColor.namedColor("EditorPane.background", JBColor.background())JBColor.namedColor("Panel.background", JBColor(0xFAFAFA, 0x3C3F41))JBColor.BLUEandJBColor.GRAY(both theme-aware)rgba(127, 127, 127, 0.1)with transparency for universal theme compatibility2. Markdown Rendering ✅
Implemented full markdown-to-HTML conversion with proper rendering:
markdownToHtml()function (76 lines)JBTextArea→JEditorPanewithHTMLEditorKit3. Bug Fix ✅
Fixed string interpolation in message header:
"[$msg.sender]"→ displayed literally asChatMessage(sender=...)"[${msg.sender}]"→ correctly displays[You],[PicoCode], etc.4. UI Refinements ✅
Based on user feedback:
HORIZONTAL_SCROLLBAR_NEVERWrappingEditorPaneclass:getScrollableTracksViewportWidth()to returntruegetPreferredSize()to properly calculate height based on viewport widthgetMaximumSize()override to allow full width expansionJViewportand uses its width for sizing calculationsmessagePanel.maximumSizetoInteger.MAX_VALUEfor width to work properly withBoxLayoutword-wrap: break-word; overflow-wrap: break-word;white-space: pre-wrap; word-wrap: break-word; overflow-wrap: break-word;word-wrap: break-word; overflow-wrap: break-word;overflow-x: autofrom code blocks to prevent horizontal scrollingTechnical Details
ide-plugins/src/main/kotlin/com/picocode/PicoCodeToolWindowContent.ktWrappingEditorPane(custom JEditorPane for proper width tracking and wrapping)JBColor,HTMLEditorKitmarkdownToHtml()Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.