mirror of
https://athene2.informatik.unibw-muenchen.de/progproj/gruppen-ht24/Gruppe-02.git
synced 2025-01-19 02:36:14 +01:00
modified toolbar button behaviour
This commit is contained in:
parent
b67379a6c3
commit
333f27a016
@ -300,10 +300,17 @@ selector("selector.item.label", "hover") {
|
|||||||
|
|
||||||
def enabledCommandToolbar = new Command<Button>() {
|
def enabledCommandToolbar = new Command<Button>() {
|
||||||
void execute(Button source) {
|
void execute(Button source) {
|
||||||
if (source.isEnabled())
|
if (source.isEnabled()){
|
||||||
source.setColor(ColorRGBA.White)
|
source.setColor(ColorRGBA.White)
|
||||||
else
|
def orangeBackground = new QuadBackgroundComponent(color(1, 0.5, 0, 1)); // Orange background
|
||||||
source.setColor(ColorRGBA.Gray)
|
source.setBackground(orangeBackground);
|
||||||
|
} else{
|
||||||
|
source.setColor(ColorRGBA.White)
|
||||||
|
def grayBackground = new QuadBackgroundComponent(ColorRGBA.Gray); // Gray background
|
||||||
|
source.setBackground(grayBackground);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user