Re: Looked-up color fails for -fx-background-color in JavaFX CSS file

2022-05-18 Thread John Hendrikx
I've tried the attached code as well, and I've been unable to reproduce it. I even modified the code a bit to clear and set the stylesheet every frame, and it runs fine. Also used the debugger a bit to see what's going on in CssStyleHelper#calculateValue but didn't see any obvious flaws. If yo

Re: Looked-up color fails for -fx-background-color in JavaFX CSS file

2022-05-18 Thread Davide Perini
Yes, I'm sorry, that was the issue. Thanks Davide Il 18/05/2022 14:10, Kevin Rushforth ha scritto: Hi Davide, Are you referring to https://bugs.openjdk.java.net/browse/JDK-8268657 ? I just tried it again, and it works fine for me. -- Kevin On 5/18/2022 4:12 AM, Davide Perini wrote: Hi all

Re: Looked-up color fails for -fx-background-color in JavaFX CSS file

2022-05-18 Thread Kevin Rushforth
Hi Davide, Are you referring to https://bugs.openjdk.java.net/browse/JDK-8268657 ? I just tried it again, and it works fine for me. -- Kevin On 5/18/2022 4:12 AM, Davide Perini wrote: Hi all, someone else opened an issue in past on this problem. I have the exact same problem: https://mail.op

Re: Looked-up color fails for -fx-background-color in JavaFX CSS file

2022-05-18 Thread John Hendrikx
Could you share the program that reproduces this, as I didn't find an issue nor a sample program in the link you shared. You mentioned an issue was closed? Which issue? --John On 18/05/2022 13:12, Davide Perini wrote: Hi all, someone else opened an issue in past on this problem. I have the e

Looked-up color fails for -fx-background-color in JavaFX CSS file

2022-05-18 Thread Davide Perini
Hi all, someone else opened an issue in past on this problem. I have the exact same problem: https://mail.openjdk.java.net/pipermail/openjfx-dev/2021-June/030723.html Kevin closed the issue because it was not able to reproduce but I can reproduce it on JavaFX 18.0.1 Can you double check it pl

Looked-up color fails for -fx-background-color in JavaFX CSS file

2021-06-08 Thread Duquette, Will (US 397J)
Howdy! I'm migrating a code-base from JavaFX 8 to JavaFX 11, and I'm seeing some weird behavior. I have some CSS that looks like this (in part) .root { -theme-button: #0679DE; } .button-primary { -fx-background-color: -theme-button; } It's been working great in JavaF

Re: [EXTERNAL] Looked-up color fails for -fx-background-color in JavaFX CSS file

2021-06-08 Thread Kevin Rushforth
lper calculateValue WARNING: Caught 'java.lang.ClassCastException: class java.lang.String cannot be cast to class javafx.scene.paint.Paint (java.lang.String is in module java.base of loader 'bootstrap'; javafx.scene.paint.Paint is in module javafx.graphics@11.0.11 of loader 'platform')'

Re: [EXTERNAL] Looked-up color fails for -fx-background-color in JavaFX CSS file

2021-06-08 Thread Duquette, Will (US 397J)
7;m seeing some weird behavior. I have some CSS that looks like this (in part) .root { -theme-button: #0679DE; } .button-primary { -fx-background-color: -theme-button; } It's been working great in JavaFX 8 for quite a long while. When I load the same

Re: -fx-background-radius problem

2014-06-10 Thread Jeff Martin
This is on 8u5 b13. Running with SW on Mac didn't reproduce the problem. Here is the jira: Jira: -fx-background-radius not rendering on Parallels Windows jeff On Jun 9, 2014, at 6:18 PM, Kevin Rushforth wrote: > Since you said: > >> On Parallels Windows it d

Re: -fx-background-radius problem

2014-06-09 Thread Kevin Rushforth
, can you try it with "-Dprism.order=sw" on Mac and see if the same bug happens? -- Kevin Jeff Martin wrote: Has anyone seen a problem with -fx-background-radius on Windows? When I run Windows using Parallels (on a Mac), -fx-background-radius styles seem to get ignored. Here is my s

-fx-background-radius problem

2014-06-09 Thread Jeff Martin
Has anyone seen a problem with -fx-background-radius on Windows? When I run Windows using Parallels (on a Mac), -fx-background-radius styles seem to get ignored. Here is my sample code: // Create label with background color and radius Label label = new Label("Te

Re: "-fx-background"

2014-02-18 Thread Tom Schindl
ones are css properties > easier. > > > On Wed, Feb 19, 2014 at 12:11 AM, Pedro Duque Vieira < > pedro.duquevie...@gmail.com> wrote: > >> Hi, >> >> Inside the javafx sdk in modena.css I see this property "-fx-background" >> being used several tim

Re: "-fx-background"

2014-02-18 Thread Pedro Duque Vieira
s are css properties easier. On Wed, Feb 19, 2014 at 12:11 AM, Pedro Duque Vieira < pedro.duquevie...@gmail.com> wrote: > Hi, > > Inside the javafx sdk in modena.css I see this property "-fx-background" > being used several times. This is not documented in the css do

"-fx-background"

2014-02-18 Thread Pedro Duque Vieira
Hi, Inside the javafx sdk in modena.css I see this property "-fx-background" being used several times. This is not documented in the css document for javafx8: http://download.java.net/jdk8/jfxdocs/javafx/scene/doc-files/cssref.html#cell What does it do? Thanks in advance, -- P

hg: openjfx/8/graphics/rt: RT-28692: implement curve radii syntax from CSS background and borders module level 3 for -fx-background-radius and -fx-border-radius.

2013-11-04 Thread hang . vo
Changeset: ed14640dd11c Author:David Grieve Date: 2013-11-04 20:57 -0500 URL: http://hg.openjdk.java.net/openjfx/8/graphics/rt/rev/ed14640dd11c RT-28692: implement curve radii syntax from CSS background and borders module level 3 for -fx-background-radius and -fx-border-radius

-fx-background-insets and percentage...

2013-07-17 Thread Gerrit Grunwald
Just wondering if someone else also have the problem that using percentage in -fx-background-insets doesn't work? Means: -fx-background-insets: 0, 1%, 5%, 10% The statement above doesn't work but if I saw it right on the JavaFX CSS docu page this should work...right? Gerrit

Re: Overriding caspian.css -fx-background

2013-07-17 Thread David Grieve
with -fx-background. */ -fx-background: #f4f4f4; and /* A bright blue for highlighting/accenting objects. For example: selected * text; selected items in menus, lists, trees, and tables; progress bars; * default buttons. */ -fx-accent: #0093ff; So if you want to c

Overriding caspian.css -fx-background

2013-07-17 Thread John Hendrikx
lated to an (undocumented??) property -fx-background -- I cannot find what this does, but it seems to specify a background color, just like -fx-background-color although they're often used in combination, like so: .list-view:focused > .virtual-flow > .clipped-container &