Setting the alpha of a color individually?
- 
 @d-healey 
 This doesn't seem to work, am I doing something wrong?if (value == 2){ for (i = 0; i < 128; i++) { Engine.setKeyColour(i, 0x0); } local Ens2 = [36, 38, 40, 43, 48, 50, 52, 55, 60, 62, 64, 67, 84]; for (i = 0; i < Ens2.length; i++) { Engine.setKeyColour(Ens2[i], Colours.withAlpha(Colours.blue, 0.3)); }; } 
- 
 @CatABC You don't need to put the reset within the if statement, it can go before all of your keyboard colouring code. 
- 
 @d-healey Unfortunately, he still has the same result. My guess is that because I used a button to trigger the color change, when the button value does not change, it will continue to keep the button callback result. 
 What should I write in the else of the button to make it return to the color before it changed?
- 
 @CatABC can you make a minimal snippet that shows the problem? 
- 
 @d-healey ChangeColor.zip 
 The code snippet didn't seem to show the problem, so I uploaded a project, and along the way I found the source of the problem. When the button is in a Panel, it causes the problem.
- 
 @d-healey There is no problem switching with Combobox, but there is a problem with switching with preset browsers 
- 
 @CatABC This is what I see in your project, looks like it's working?  
- 
 @d-healey Oh, sorry, I forgot to save the latest data when I was testing the code snippet, 
 ChangeColor2.zip
  
- 
 @CatABC Turn off saveInPreset for your button. 
- 
 @d-healey Ahaha,god,It's so simple 
 Feeling mine so stupid。,Thanks very much David, you solved my problem again.     

