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)