fix: tone down buffering indicator

closes #339
This commit is contained in:
tomasklaen
2022-10-25 17:32:35 +02:00
parent c00e296953
commit f776bf39eb

View File

@@ -28,9 +28,9 @@ function BufferingIndicator:on_prop_cache_underrun() self:decide_enabled() end
function BufferingIndicator:render()
local ass = assdraw.ass_new()
ass:rect(0, 0, display.width, display.height, {color = bg, opacity = 0.3})
local size = round(40 + math.min(display.width, display.height) / 8)
local opacity = (Elements.menu and not Elements.menu.is_closing) and 0.3 or nil
local opts = {rotate = (state.render_last_time * 2 % 1) * -360, color = fg, opacity = opacity}
local size = round(30 + math.min(display.width, display.height) / 10)
local opacity = (Elements.menu and not Elements.menu.is_closing) and 0.3 or 0.8
local opts = {rotate = (state.render_last_time * 1.75 % 1) * -360, color = fg, opacity = opacity}
ass:icon(display.width / 2, display.height / 2, size, 'autorenew', opts)
request_render()
return ass