mirror of
https://athene2.informatik.unibw-muenchen.de/progproj/gruppen-ht24/Gruppe-02.git
synced 2025-08-04 06:20:43 +02:00
auswahllogik im dropdown implementiert
This commit is contained in:
@@ -258,3 +258,30 @@ selector("menu-button", "pp") {
|
||||
buttonCommands = stdButtonCommands
|
||||
}
|
||||
|
||||
// Style for Selector text
|
||||
selector("selector.item.label") {
|
||||
color = color(0, 0, 0, 1) // Black text
|
||||
fontSize = 16 // Optional: Adjust the text size if needed
|
||||
textHAlignment = HAlignment.Left // Optional: Align text to the left
|
||||
insets = new Insets3f(2, 2, 2, 2) // Optional: Add padding around text
|
||||
}
|
||||
// Style the popup container background
|
||||
selector("selector.popup") {
|
||||
background = new QuadBackgroundComponent(new ColorRGBA(1, 1, 1, 0.8f)) // Translucent white background
|
||||
insets = new Insets3f(5, 5, 5, 5) // Padding inside the popup container
|
||||
}
|
||||
|
||||
// Style the text of dropdown options
|
||||
selector("selector.item.label") {
|
||||
color = color(0, 0, 0, 1) // Black text
|
||||
fontSize = 16 // Optional: Adjust font size
|
||||
textHAlignment = HAlignment.Left // Align text to the left
|
||||
insets = new Insets3f(2, 5, 2, 5) // Add padding for each option
|
||||
}
|
||||
|
||||
// Style the hover state of dropdown options
|
||||
selector("selector.item.label", "hover") {
|
||||
color = color(1, 1, 1, 1) // White text when hovered
|
||||
background = new QuadBackgroundComponent(new ColorRGBA(0.2f, 0.6f, 1.0f, 0.9f)) // Highlighted background
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user