aboutsummaryrefslogtreecommitdiffstats
path: root/src/demos
diff options
context:
space:
mode:
authorSven Göthel <[email protected]>2024-01-07 21:20:02 +0100
committerSven Göthel <[email protected]>2024-01-07 21:20:02 +0100
commitc2452b211dc3f347dbffaac4e6c35b3c3e8c6d65 (patch)
tree9a0f6b2a196cbdcbca9dbe0ce19bb77bfad16b2a /src/demos
parentd80762bdaf79a852cde2391479bb066968ae573c (diff)
GraphUI Button.setLabelColor(..): Add alpha channel and variant w/ Vec4f for flexibility
Diffstat (limited to 'src/demos')
-rw-r--r--src/demos/com/jogamp/opengl/demos/graph/ui/UISceneDemo20.java2
-rw-r--r--src/demos/com/jogamp/opengl/demos/graph/ui/UIShapeDemo01.java2
-rw-r--r--src/demos/com/jogamp/opengl/demos/graph/ui/util/Tooltips.java2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/demos/com/jogamp/opengl/demos/graph/ui/UISceneDemo20.java b/src/demos/com/jogamp/opengl/demos/graph/ui/UISceneDemo20.java
index eaff6bf78..ef45465cd 100644
--- a/src/demos/com/jogamp/opengl/demos/graph/ui/UISceneDemo20.java
+++ b/src/demos/com/jogamp/opengl/demos/graph/ui/UISceneDemo20.java
@@ -602,7 +602,7 @@ public class UISceneDemo20 implements GLEventListener {
((Button)button).setSpacing(symSpacing, fixedSymSize);
button.setID(BUTTON_QUIT);
button.setColor(0.7f, 0.3f, 0.3f, 1.0f);
- ((Button)button).setLabelColor(1.2f, 1.2f, 1.2f);
+ ((Button)button).setLabelColor(1.2f, 1.2f, 1.2f, 1.0f);
button.setPressedColorMod(1.1f, 0.0f, 0.0f, 1.0f);
button.addMouseListener(new Shape.MouseGestureAdapter() {
@Override
diff --git a/src/demos/com/jogamp/opengl/demos/graph/ui/UIShapeDemo01.java b/src/demos/com/jogamp/opengl/demos/graph/ui/UIShapeDemo01.java
index 61f420d81..a7909a169 100644
--- a/src/demos/com/jogamp/opengl/demos/graph/ui/UIShapeDemo01.java
+++ b/src/demos/com/jogamp/opengl/demos/graph/ui/UIShapeDemo01.java
@@ -180,7 +180,7 @@ public class UIShapeDemo01 implements GLEventListener {
final float sz1_w = 1/8f;
final float sz2 = 1/20f;
button = new Button(renderModes, font, "Click me!", sz1_w, sz1_w/2f);
- button.setLabelColor(0.0f,0.0f,0.0f);
+ button.setLabelColor(0.0f,0.0f,0.0f, 1.0f);
/** Button defaults !
button.setLabelColor(1.0f,1.0f,1.0f);
button.setButtonColor(0.6f,0.6f,0.6f);
diff --git a/src/demos/com/jogamp/opengl/demos/graph/ui/util/Tooltips.java b/src/demos/com/jogamp/opengl/demos/graph/ui/util/Tooltips.java
index fc3b75009..2152a6ad0 100644
--- a/src/demos/com/jogamp/opengl/demos/graph/ui/util/Tooltips.java
+++ b/src/demos/com/jogamp/opengl/demos/graph/ui/util/Tooltips.java
@@ -81,7 +81,7 @@ public class Tooltips {
.setPerp().scale(l_sxy, l_sxy, 1).move(0, 0, 10*zEps)
.setColor(0.97f, 0.97f, 0.97f, 0.92f).setBorder(0.05f).setBorderColor(0, 0, 0, 1)
.setInteractive(false);
- buttonLabel.setLabelColor(0, 0, 0);
+ buttonLabel.setLabelColor(0, 0, 0, 1.0f);
buttonLabel.setSpacing(Button.DEFAULT_SPACING_X, Button.DEFAULT_SPACING_X);
final Shape s = buttonLabel;
scene.invoke(false, (final GLAutoDrawable drawable) -> {