From 4bc80943272b031e41a7047f795d85a04682cbd6 Mon Sep 17 00:00:00 2001 From: ruki Date: Tue, 16 Jan 2018 22:37:14 +0800 Subject: improve select view --- xmake/core/ui/button.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xmake/core/ui/button.lua') diff --git a/xmake/core/ui/button.lua b/xmake/core/ui/button.lua index fdbfcbe64..f906e12d8 100644 --- a/xmake/core/ui/button.lua +++ b/xmake/core/ui/button.lua @@ -67,7 +67,7 @@ function button:draw(transparent) local textattr = self:textattr_val() -- selected? - if self:state("selected") then + if self:state("selected") and self:state("focused") then textattr = {textattr, "reverse"} end -- cgit v1.3.1