From 80f226fffcab51f8e46caa48e9dd3a134ca87dd0 Mon Sep 17 00:00:00 2001 From: Sven Göthel Date: Mon, 5 Feb 2024 16:44:57 +0100 Subject: GraphUI MediaPlayer: Elevate the ctrlSlider a little (and add it behind ctrlBlend) to remove the occlusion by the blending box --- src/graphui/classes/com/jogamp/graph/ui/widgets/MediaPlayer.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/graphui/classes/com/jogamp/graph/ui') diff --git a/src/graphui/classes/com/jogamp/graph/ui/widgets/MediaPlayer.java b/src/graphui/classes/com/jogamp/graph/ui/widgets/MediaPlayer.java index 31ba5305f..4495570e2 100644 --- a/src/graphui/classes/com/jogamp/graph/ui/widgets/MediaPlayer.java +++ b/src/graphui/classes/com/jogamp/graph/ui/widgets/MediaPlayer.java @@ -148,6 +148,7 @@ public class MediaPlayer extends Widget { ctrlSlider.getBar().setColor(0.3f, 0.3f, 0.3f, 0.7f); ctrlSlider.getKnob().setColor(0.6f, 0.6f, 1f, 1f); ctrlSlider.setActiveKnobColorMod(new Vec4f(0.1f, 0.1f, 1, 1)); + ctrlSlider.move(0, 0, zEpsilon); } ctrlSlider.setName("mp.slider"); @@ -321,13 +322,14 @@ public class MediaPlayer extends Widget { } ); } }); - this.addShape( ctrlSlider.setVisible(false) ); ctrlBlend = new Rectangle(renderModes & ~Region.AA_RENDERING_MASK, aratio, ctrlCellHeight, 0); ctrlBlend.setName("ctrl.blend").setInteractive(false); ctrlBlend.setColor(0, 0, 0, AlphaBlend); this.addShape( ctrlBlend.setVisible(false) ); + this.addShape( ctrlSlider.setVisible(false) ); + final float toolTipScaleY = 0.4f; ctrlGroup = new Group(new GridLayout(ctrlCellWidth, ctrlCellHeight, Alignment.FillCenter, Gap.None, 1)); ctrlGroup.setName("ctrlGroup").setInteractive(false); -- cgit v1.2.3