Skip to content

Commit 5684edf

Browse files
author
Andy Goryachev
committed
8371080: RichTextArea: missing styles in Caspian
Reviewed-by: aghaisas
1 parent 02756a8 commit 5684edf

File tree

1 file changed

+80
-1
lines changed
  • modules/javafx.controls/src/main/resources/com/sun/javafx/scene/control/skin/caspian

1 file changed

+80
-1
lines changed

modules/javafx.controls/src/main/resources/com/sun/javafx/scene/control/skin/caspian/caspian.css

Lines changed: 80 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2009, 2024, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2009, 2025, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -4275,3 +4275,82 @@ to the top and bottom -fx-padding values of the parent toolbar. */
42754275
.alert.warning.dialog-pane {
42764276
-fx-graphic: url("dialog-warning.png");
42774277
}
4278+
4279+
/*******************************************************************************
4280+
* *
4281+
* Rich Text Area (Incubator) *
4282+
* *
4283+
******************************************************************************/
4284+
4285+
.rich-text-area {
4286+
-fx-text-fill: -fx-text-inner-color;
4287+
-fx-highlight-fill: derive(-fx-control-inner-background,-20%);
4288+
-fx-highlight-text-fill: -fx-text-inner-color;
4289+
-fx-prompt-text-fill: derive(-fx-control-inner-background,-30%);
4290+
-fx-background-color:
4291+
linear-gradient(to bottom, derive(-fx-text-box-border, -10%), -fx-text-box-border),
4292+
linear-gradient(from 0px 0px to 0px 5px, derive(-fx-control-inner-background, -9%), -fx-control-inner-background);
4293+
-fx-background-insets: 0, 1;
4294+
-fx-background-radius: 3, 2;
4295+
-fx-padding: 0;
4296+
-fx-content-padding: 4 8 4 8;
4297+
}
4298+
4299+
.rich-text-area:disabled {
4300+
-fx-opacity: 0.4;
4301+
}
4302+
4303+
.rich-text-area:focused {
4304+
-fx-highlight-fill: -fx-accent;
4305+
-fx-highlight-text-fill: white;
4306+
-fx-background-color:
4307+
-fx-focus-color,
4308+
-fx-control-inner-background,
4309+
-fx-faint-focus-color,
4310+
linear-gradient(from 0px 0px to 0px 5px, derive(-fx-control-inner-background, -9%), -fx-control-inner-background);
4311+
-fx-background-insets: -0.2, 1, -1.4, 3;
4312+
-fx-background-radius: 3, 2, 4, 0;
4313+
-fx-prompt-text-fill: transparent;
4314+
}
4315+
4316+
.rich-text-area .caret {
4317+
-fx-stroke: black;
4318+
}
4319+
4320+
.rich-text-area .caret-line {
4321+
-fx-stroke: null;
4322+
-fx-fill: derive(-fx-accent,115%);
4323+
}
4324+
4325+
.rich-text-area .selection-highlight {
4326+
-fx-stroke: null;
4327+
-fx-fill: derive(-fx-accent,70%);
4328+
}
4329+
4330+
.rich-text-area .left-side {
4331+
-fx-background-color: rgba(127,127,127,0.1);
4332+
}
4333+
4334+
.rich-text-area .right-side {
4335+
-fx-background-color: rgba(127,127,127,0.1);
4336+
}
4337+
4338+
.rich-text-area .line-number-decorator {
4339+
-fx-font-family: Monospace;
4340+
-fx-font-size: 90%;
4341+
-fx-min-height:1;
4342+
-fx-pref-height:1;
4343+
-fx-padding: 0 1 0 1;
4344+
}
4345+
4346+
.line-number-decorator .text {
4347+
-fx-bounds-type: visual;
4348+
}
4349+
4350+
.rich-text-area .content {
4351+
-fx-cursor: text;
4352+
}
4353+
4354+
.code-area .content {
4355+
-fx-cursor: text;
4356+
}

0 commit comments

Comments
 (0)