about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2023-10-16 22:59:04 -0700
committerKartik K. Agaram <vc@akkartik.com>2023-10-16 22:59:04 -0700
commitf61976c61a29a82feaec740ba09bbec51ce55ba9 (patch)
treeaef77a6457c8f215aad487e51f6d66551c23c0a3
parent4b3f3595266729a16a2a5bdb2a480576d332c14c (diff)
downloadview.love-f61976c61a29a82feaec740ba09bbec51ce55ba9.tar.gz
use color alpha in button backgrounds
-rw-r--r--button.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/button.lua b/button.lua
index 55e4b1e..4dfd036 100644
--- a/button.lua
+++ b/button.lua
@@ -12,7 +12,7 @@ function button(State, name, params)
   if State.button_handlers == nil then
     State.button_handlers = {}
   end
-  love.graphics.setColor(params.bg.r, params.bg.g, params.bg.b)
+  love.graphics.setColor(params.bg.r, params.bg.g, params.bg.b, params.bg.a)
   love.graphics.rectangle('fill', params.x,params.y, params.w,params.h, 5,5)
   if params.icon then params.icon(params) end
   table.insert(State.button_handlers, params)