Add more visual feedback for button states (#8916)
authorHugues Ross <hugues.ross@gmail.com>
Sat, 12 Oct 2019 16:44:23 +0000 (12:44 -0400)
committerSmallJoker <SmallJoker@users.noreply.github.com>
Sat, 12 Oct 2019 16:44:23 +0000 (18:44 +0200)
commit69a2099c04527404f2d0942f2088b3d22dd75b5a
tree8d6fcc7dd688ace290b50f171dc319ccb68e5a5e
parent894008ce6fa02aed05f1ac12e0d7bc62e2476359
Add more visual feedback for button states (#8916)

- Add style properties for overriding the the hovered/pressed state
  - By default, hovered buttons are a lighter version of the base color
  - By default, pressed buttons are a darker version of the base color
- Add hovered bg image support for image buttons (style property)
doc/lua_api.txt
games/minimal/mods/test/formspec.lua
src/gui/StyleSpec.h
src/gui/guiButton.cpp
src/gui/guiButton.h
src/gui/guiConfirmRegistration.cpp
src/gui/guiFormSpecMenu.cpp
src/gui/guiKeyChangeMenu.cpp
src/gui/guiPasswordChange.cpp
src/gui/guiVolumeChange.cpp