Skip to content

Commit 12dce37

Browse files
authored
Merge pull request #327 from afester/richtextDemoCSS
Fixed text background property in richtext demo
2 parents 888cb3c + ae07912 commit 12dce37

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • richtextfx-demos/src/main/java/org/fxmisc/richtext/demo/richtext

richtextfx-demos/src/main/java/org/fxmisc/richtext/demo/richtext/TextStyle.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ public String toCss() {
246246

247247
if(backgroundColor.isPresent()) {
248248
Color color = backgroundColor.get();
249-
sb.append("-fx-background-fill: " + cssColor(color) + ";");
249+
sb.append("-rtfx-background-color: " + cssColor(color) + ";");
250250
}
251251

252252
return sb.toString();

0 commit comments

Comments
 (0)