Skip to content

Commit

Permalink
Fix #456: Setting fold icon background doesn't take effect immediately
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbylight committed Jul 24, 2022
1 parent 27f2347 commit 15ed51d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Expand Up @@ -92,8 +92,8 @@ public SyntaxScheme(Font baseFont, boolean fontStyles) {
* Changes the "base font" for this syntax scheme. This is called by
* <code>RSyntaxTextArea</code> when its font changes via
* <code>setFont()</code>. This looks for tokens that use a derivative of
* the text area's old font (but bolded and/or italicized) and make them
* use the new font with those stylings instead. This is desirable because
* the text area's old font (but bolded and/or italicized) and makes them
* use the new font with those styles instead. This is desirable because
* most programmers prefer a single font to be used in their text editor,
* but might want bold (say for keywords) or italics.
*
Expand Down
Expand Up @@ -647,6 +647,7 @@ public void setFoldIconArmedBackground(Color bg) {
*/
public void setFoldIconBackground(Color bg) {
foldIconBackground = bg;
repaint();
}


Expand Down

0 comments on commit 15ed51d

Please sign in to comment.