Skip to content
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

Default foreground font colour doesn't apply to folded code preview in RSyntaxTextArea #593

Closed
Chr1sps opened this issue Jan 17, 2025 · 0 comments
Assignees
Labels
Milestone

Comments

@Chr1sps
Copy link

Chr1sps commented Jan 17, 2025

Description
When you change the foreground text colour in an RSyntaxTextArea, the colour doesn't apply to
the folded code preview when hovering over the fold indicator.

Steps to reproduce
Specific steps to reproduce the behavior:

  1. Create an RSyntaxTextArea.
  2. Set the foreground (via setForeground(Color)) to a custom value
    (default foreground colour is black).
  3. Install a fold parser in the text area.
  4. Collapse a fold region in the text area.
  5. Hover over the fold indicator on the gutter in order for the preview to show up.

Expected behavior
The preview text's default foreground colour is the same as the one set to the text area.

Actual behavior
The preview text's default foreground colour doesn't change and stays black.

Screenshots
Image
Image

Library version
3.5.2

Java version
Oracle OpenJDK 21.0.3 (build 21.0.3+7-LTS-152)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants