From 69b68a69756eef6a692ca05219ac350925231d38 Mon Sep 17 00:00:00 2001 From: Yvonne Schmidt Date: Mon, 18 Nov 2024 17:08:58 +0100 Subject: [PATCH] =?UTF-8?q?toolbar=20style=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../resources/Interface/Lemur/pp-styles.groovy | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/Projekte/jme-common/src/main/resources/Interface/Lemur/pp-styles.groovy b/Projekte/jme-common/src/main/resources/Interface/Lemur/pp-styles.groovy index 36ee17e..e39c101 100644 --- a/Projekte/jme-common/src/main/resources/Interface/Lemur/pp-styles.groovy +++ b/Projekte/jme-common/src/main/resources/Interface/Lemur/pp-styles.groovy @@ -20,6 +20,8 @@ def sliderBgColor = color(0.5, 0.75, 0.75, 1) def gradientColor = color(0.5, 0.75, 0.85, 0.5) def tabbuttonEnabledColor = color(0.4, 0.45, 0.5, 1) def solidWhiteBackground = new QuadBackgroundComponent(color(1, 1, 1, 1)) // Solid white +def greyBackground = color(0.8, 0.8, 0.8, 1) // Grey background color +def redBorderColor = color(1, 0, 0, 1) // Red border color @@ -61,6 +63,22 @@ selector("container", "pp") { background.setColor(bgColor) } +selector("toolbar") { + // Set the grey background + background = new QuadBackgroundComponent(greyBackground) + + // Add a red border using a TbtQuadBackgroundComponent + def redBorder = TbtQuadBackgroundComponent.create( + texture(name: "/com/simsilica/lemur/icons/bordered-gradient.png", + generateMips: false), + 1, 1, 1, 1, 1, + 1f, false) + redBorder.color = redBorderColor + background = greyBackground + + // Optional: Set padding inside the toolbar + insets = new Insets3f(10, 10, 10, 10) +} selector("slider", "pp") { background = gradient.clone() background.setColor(bgColor)