aboutsummaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authortakase1121 <20792268+takase1121@users.noreply.github.com>2021-03-20 01:04:07 +0000
committertakase1121 <20792268+takase1121@users.noreply.github.com>2021-03-20 01:04:07 +0000
commit5e8444b2b104fc3175507aefe1b25dafb4ab97bd (patch)
tree82a07940b36e9d5e90cdec890dd578140b618b0c /data
parent93753634f5a311869c63dd27c8fa00b2163616bf (diff)
downloadlite-xl-5e8444b2b104fc3175507aefe1b25dafb4ab97bd.tar.gz
lite-xl-5e8444b2b104fc3175507aefe1b25dafb4ab97bd.zip
rename tooltip_alpha_step to tooltip_alpha_rate
Diffstat (limited to 'data')
-rw-r--r--data/plugins/treeview.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/data/plugins/treeview.lua b/data/plugins/treeview.lua
index 0e222525..5e16ce55 100644
--- a/data/plugins/treeview.lua
+++ b/data/plugins/treeview.lua
@@ -11,7 +11,7 @@ local tooltip_offset = style.font:get_height("A")
local tooltip_border = 1
local tooltip_delay = 0.5
local tooltip_alpha = 255
-local tooltip_alpha_step = 1
+local tooltip_alpha_rate = 1
local function get_depth(filename)
@@ -236,7 +236,7 @@ function TreeView:update()
local duration = system.get_time() - self.tooltip.begin
if self.hovered_item and self.tooltip.x and duration > tooltip_delay then
- self:move_towards(self.tooltip, "alpha", tooltip_alpha, tooltip_alpha_step)
+ self:move_towards(self.tooltip, "alpha", tooltip_alpha, tooltip_alpha_rate)
else
self.tooltip.alpha = 0
end